/* =========================
   HOME / PAGE D’ACCUEIL
========================= */

.homepage {
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HERO HOME === */
.home-hero {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    gap: 2rem;
    align-items: stretch;
    justify-content: center;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* === CARROUSEL === */
.swiper {
    flex: 3;
    min-width: 340px;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.swiper-slide {
    height: 100%;
}

.swiper-image {
    position: relative;
}

.swiper-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.swiper-slide:hover .swiper-image img {
    transform: scale(1.05);
}

.slide-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.2) 40%,
        transparent
    );
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    color: #fff;
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.slide-overlay h3 {
  color: #fff;
  font-size: 1.4rem;
  margin: 0;
  text-decoration: none;
  line-height: 1.3;
    max-width: 85%;
    text-align: center;
}
.slide-overlay a {

  text-decoration: none;
}

.slide-overlay .slide-excerpt {
    font-size: 0.95rem;
    opacity: 0.85;
    margin: 0;
}

.slide-overlay .btn {
    align-self: flex-start;
    background-color: #0e918c;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.slide-overlay .btn:hover {
    background-color: #0a706b;
}

/* === BLOC INTRO OFFCLASS === */
.intro-offclass {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f9fafb;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.intro-offclass h2 {
    font-size: 1.6rem;
    color: #00383c;
    margin-bottom: 0.8rem;
}

.intro-offclass p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1.2rem;
}

.intro-offclass a.btn {
    align-self: flex-start;
    background-color: #0e918c;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
}

.intro-offclass a.btn:hover, a.btn {
    background-color: #0a706b;
}

/* === MINI QUIZ HOME === */
.mini-quiz-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.mini-quiz-item {
    flex: 1 1 140px;
    max-width: 210px;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.mini-quiz-item:hover {
    transform: scale(1.03);
}

.mini-quiz-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.mini-quiz-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.quiz-title-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 8px;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.mini-quiz-thumb:hover .quiz-title-hover {
    opacity: 1;
}
.mini-quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.mini-quiz-header h2 {
    margin: 0;
}
.see-all-item {
    display: flex;
}

.see-all-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.see-all-card {
    background: linear-gradient(135deg, #2b2d42, #3a0ca3);
    border-radius: 12px;
    height: 100%;
    min-height: 260px; /* même hauteur que les autres */
    
    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;

    transition: all 0.3s ease;
}

.see-all-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.see-all-text {
    padding: 20px;
}

/* Mobile */
@media (max-width: 768px) {
    .mini-quiz-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .quiz-title-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 8px;
    font-size: 14px;
    text-align: center;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}
}
a.btn {
    display: inline-block;
    background-color: #0e918c;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
}
