/* ============================================
   ACCUEIL.CSS
   ============================================ */


/* ============================================
   1. HERO — WRAPPER
   ============================================ */

.accueil-hero-wrapper {
    position: relative;
    min-height: 92vh;
    background-color: #1B3A8C;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: 100px 60px 80px;
}

.accueil-hero-wrapper > * {
    position: relative;
    z-index: 1;
}


/* ============================================
   2. HERO — FOND ABSOLU
   ============================================ */

.accueil-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.accueil-hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(184,149,106,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184,149,106,0.025) 1px, transparent 1px);
    background-size: 80px 80px;
}


/* ============================================
   3. HERO — CONTENU
   ============================================ */

.accueil-hero-subtitle-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.accueil-hero-subtitle-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, #B8956A, transparent);
}

.accueil-hero-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    color: #FBF8F3;
    opacity: 0.7;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}


/* ============================================
   4. HERO — COLONNE DROITE (image + stats)
   ============================================ */

.ama-hero-col-right {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ama-hero-col-right .accueil-hero-stats {
    background-color: #071A4A;
    max-width: 100%;
    width: 100%;
    margin: 0;
    gap: 1px;
}

.ama-hero-col-right .ahs-stat {
    background-color: #0D2D6E;
    padding: 1.8rem 1rem;
}

.ama-hero-col-right .ahs-n {
    font-size: clamp(1.6rem, 2vw, 2.2rem);
    margin: 0 0 0.6rem 0;
}

.ama-hero-col-right .ahs-l {
    font-size: 0.78rem;
    line-height: 1.4;
}


/* ============================================
   5. HERO — STATS (usage global)
   ============================================ */
.accueil-hero-stats {
    display: flex;
    gap: 1px;
    background-color: #B8956A;
    max-width: 700px!important;
    margin: 0 auto;
}

.ahs-stat {
    background-color: #ebe4da !important;
    flex: 1;
    padding: 0.7rem 0.9rem;
    text-align: center;
}

.ahs-n {
    font-family: 'Bodoni Moda', Georgia, serif !important;
    font-style: italic !important;
    color: #6B1C23 !important;
    font-size: clamp(1.3rem, 2vw, 1.8rem) !important;
    margin: 0 0 0.3rem 0 !important;
}

.ahs-l {
    font-family: 'Lato', sans-serif !important;
    font-size: 1rem !important;
    color: #10183a !important;
    opacity: 0.85;
    margin: 0 !important;
}

/* ============================================
   6. FOOTER
   ============================================ */

.footer-logo img {
    filter: brightness(0) invert(1);
}
/* ============================================
   6. FORMATIONS
   ============================================ */

.accueil-formations-grille {
    padding-left: 0 !important;
    padding-right: 0 !important;
}


/* ============================================
   7. PARTENAIRES — BANDEAU DÉFILANT
   ============================================ */

.accueil-partenaires {
    background-color: #FBF8F3;
    padding: 20px 0 50px;
    overflow: hidden;
}

.accueil-partenaires-track-wrapper {
    overflow: hidden;
    width: 100%;
}

.accueil-partenaires-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: partenaires-scroll 150s linear infinite;
}

.accueil-partenaires-track a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s;
}

.accueil-partenaires-track a img {
    height: 100px;
    width: 180px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 1;
    transition: filter 0.3s;
}

.accueil-partenaires-track a.logo-large img {
    height: 100px;
    width: 220px;
}

.accueil-partenaires-track a:hover {
    opacity: 0.5;
}

.accueil-partenaires-track a:hover img {
    filter: grayscale(100%) sepia(50%) hue-rotate(340deg) saturate(200%);
}

@keyframes partenaires-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ============================================
   8. TÉMOIGNAGES — CARROUSEL
   ============================================ */

.ama-temoignages {
    padding: 56px 24px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.ama-carrousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.ama-carrousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.ama-carousel-card {
    flex: 0 0 calc(50% - 10px);
    background: #FBF8F3;
    border-radius: 6px;
    padding: 32px 56px;
    box-sizing: border-box;
    text-align: center;
    min-height: 307px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow:
        0 4px 12px rgba(7, 26, 74, 0.15),
        0 16px 40px rgba(7, 26, 74, 0.25);
}

.ama-card-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: #B8956A !important;
    line-height: 0.8;
    margin: 0 0 16px !important;
    opacity: 0.45;
    text-align: center;
}


.ama-card-text {
    font-family: 'Lato', sans-serif !important;
    font-size: 1.1rem;
    color: #36454F !important;
    line-height: 1.7;
    margin: 0 0 20px !important;
}
.ama-card-sep {
    width: 36px;
    height: 1px;
    background: #B8956A;
    display: block;
    margin: 0 auto 16px !important;
}

.ama-card-auteur {
    font-family: 'Lato', sans-serif !important;
    font-size: 1.1rem;
    font-weight: 700 !important;
    color: #6B1C23 !important;
    margin: 0 0 6px !important;
}

.ama-card-promo {
    font-family: 'Lato', sans-serif !important;
    font-size: 0.92rem;
    color: #36454F !important;
    margin: 0 0 10px !important;
}

.ama-card-poste {
    font-family: 'Lato', sans-serif !important;
    font-size: 0.92rem;
    color: #B8956A !important;
    letter-spacing: 0.06em;
    margin: 0 !important;
}

.ama-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.ama-nav-btn-prev,
.ama-nav-btn-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(251, 248, 243, 0.25);
    background: transparent;
    color: #FBF8F3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.ama-nav-btn-prev:hover,
.ama-nav-btn-next:hover {
    background: rgba(184, 149, 106, 0.2);
    border-color: #B8956A;
}

.ama-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ama-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(251, 248, 243, 0.25);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
}

.ama-dot.active {
    background: #B8956A;
    transform: scale(1.4);
}


/* ============================================
   9. RESPONSIVE — TABLETTE (max 1024px)
   ============================================ */

@media (max-width: 1024px) {
    .accueil-hero-wrapper {
        padding: 60px 30px;
    }
    .ama-hero-col-right .ahs-stat {
        padding: 1.4rem 0.8rem;
    }
    .ama-temoignages {
        padding: 48px 20px;
    }
    .ama-carousel-card {
        padding: 24px 28px;
    }
    .ama-card-text {
        font-size: 1rem;
    }
}


/* ============================================
   10. RESPONSIVE — MOBILE (max 768px)
   ============================================ */

@media (max-width: 768px) {
    .hero {
        padding-left: 40px!important;
        padding-right: 20px!important;
       
    }
    .ama-hero-col-right {
        display: none;
    }
    .accueil-hero-stats {
        display: flex !important;
        flex-wrap: wrap !important;
        max-width: 100% !important;
        width: 100% !important;
        gap: 0 !important;
        background-color: #071A4A !important;
    }
    .ahs-stat {
        flex: 0 0 50% !important;
        width: 50% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 16px 10px !important;
        border: none !important;
        background-color: #ebe4da !important;
    }
    .accueil-partenaires-track {
        gap: 40px;
        animation-duration: 40s;
    }
    .accueil-partenaires-track a img,
    .accueil-partenaires-track a.logo-large img {
        height: 35px;
        width: auto;
    }
    .ama-temoignages {
        padding: 40px 16px;
    }
    .ama-carousel-card {
        flex: 0 0 100%;
        padding: 28px 24px;
    }
    .ama-card-text {
        font-size: 1rem;
    }
    .ama-card-auteur {
        font-size: 0.95rem;
    }
}


/* ============================================
   11. RESPONSIVE — GRAND ÉCRAN (min 1921px)
   ============================================ */

@media (min-width: 1921px) {
    .accueil-hero-stats {
        max-width: 1100px;
    }
    .ama-hero-col-right .ahs-stat {
        padding: 2.2rem 1.2rem;
    }
    .ama-hero-col-right .ahs-n {
        font-size: 2.4rem;
    }
    .ama-hero-col-right .ahs-l {
        font-size: 0.85rem;
    }
    .ama-temoignages {
        padding: 72px 48px;
    }
    .ama-carousel-card {
        padding: 36px 56px;
    }
    .ama-card-text {
        font-size: 1.3rem;
    }
    .ama-card-auteur {
        font-size: 1.2rem;
    }
    .ama-card-promo,
    .ama-card-poste {
        font-size: 1rem;
    }
}

/* Desktop — côte à côte */
.hero-buttons {
  flex-direction: row !important;
}

.hero-btn {
  width: 37% !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Tablette et mobile — l'un sous l'autre */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  .hero-btn {
    width: 100% !important;
    white-space: normal !important;
  }

  .hero-buttons .wp-block-button {
    width: 100% !important;
  }

  .hero-buttons .wp-block-button__link {
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}