/* ----------------------------------------------------------
   REGLAGES GÉNÉRAUX
---------------------------------------------------------- */
body {
    scroll-padding-top: 4.5rem;
    position: relative;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.page-section {
    padding: 4rem 0;
}

.section-heading {
    font-size: 2.1rem;
    font-weight: 700;
}

.divider-custom-line {
    width: 70px;
    height: 3px;
    background: #882D17;
    margin: 0.5rem auto 1.5rem auto;
    border-radius: 4px;
}

.bg-alt-1 { background:#ffffff; }
.bg-alt-2 { background:#f7f7f7; }

/* === HERO (nouveau header) ==================================== */

.hero {
  position: relative;
  background-image: url("../img/header-bg.webp"); /* chemin identique à l'ancien masthead */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding-top: 10.5rem;   /* comme ton ancien .masthead */
  padding-bottom: 6rem;
  text-align: center;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  z-index: 1; /* passe au-dessus de l’overlay */
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 3.25rem;
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5rem;
  margin-bottom: 25px;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 17rem;
    padding-bottom: 12.5rem;
  }
  .hero-title {
    font-size: 4.5rem;
    line-height: 4.5rem;
    margin-bottom: 4rem;
  }
  .hero-subtitle {
    font-size: 2.25rem;
    line-height: 2.25rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 1100px) {
  .hero {
    padding-top: 20rem;
    padding-bottom: 12.5rem;
  }
}

/* ----------------------------------------------------------
   COURS
---------------------------------------------------------- */
.course-card {
    transition: transform .25s ease, box-shadow .25s ease;
}
.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.course-icon i {
    font-size: 2.6rem;
    color: #882D17;
}

/* ----------------------------------------------------------
   SPECTACLES
---------------------------------------------------------- */
.spectacle-img-wrapper {
    overflow: hidden;
    border-radius: .5rem .5rem 0 0;
}

.spectacle-img {
    transition: transform .35s ease, opacity .35s;
}

.card:hover .spectacle-img {
    transform: scale(1.06);
    opacity: .95;
}

/* ----------------------------------------------------------
   COMÉDIENS
---------------------------------------------------------- */
.com-card {
    transition: transform .25s ease, box-shadow .25s ease;
    background:#fff;
}
.com-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.com-photo-wrapper {
    position: relative;
    width:160px;
    height:160px;
    margin:auto;
    border-radius:50%;
    overflow:hidden;
}

.com-photo {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:opacity .25s ease;
}

.com-photo.hover { opacity:0; }
.com-card:hover .com-photo.hover { opacity:1; }
.com-card:hover .com-photo.primary { opacity:0; }

/* ----------------------------------------------------------
   MODALS
---------------------------------------------------------- */
.modal-content {
    border-radius: .7rem;
    padding: 1rem 1.5rem;
}

.modal-body img {
    border-radius: .5rem;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 700;
}
/* === Boutons aux couleurs de la charte ======================= */

.btn-primary {
  background-color: #882D17;
  border-color: #882D17;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #6c2211; /* légèrement plus foncé au survol */
  border-color: #6c2211;
}

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active {
  color: #000;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: #882D17;
  border-color: #882D17;
}




/* ============================================================
   COURS - Nouvelle version moderne
============================================================ */

.course-card-modern {
    background: #fff;
    border-radius: 0.75rem;
    padding: 2rem 1.6rem;
    text-align: center;
    border: 1px solid #e5e5e5;
    transition: all .25s ease;
}
.course-card-modern:hover {
    transform: translateY(-4px);
    border-color: #882D17;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Icône */
.course-icon-modern {
    width: 75px;
    height: 75px;
    background: rgba(136,45,23,0.10);
    color: #882D17;
    border-radius: 50%;
    display: flex;
    align-items:center;
    justify-content:center;
    font-size: 2.3rem;
    margin-bottom: 1rem;
}

/* Titre */
.course-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

/* Description */
.course-desc {
    font-size: 0.95rem;
    line-height: 1.4rem;
    min-height: 65px;
}

/* Boutons */
.btn-course {
    background-color: #882D17;
    color: #fff;
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    transition: all .2s ease;
}

.btn-course:hover {
    background-color: #6c2211;
    color: #fff;
}
/* ============================================================
   COURS — Proposition E (blocs éditoriaux)
============================================================ */

.cours-section {
    max-width: 900px;
    margin: auto;
}

.cours-bloc {
    padding: 1rem 0;
}

.cours-titre {
    font-size: 1.8rem;
    font-weight: 700;
    color: #882D17;
    margin-bottom: 0.5rem;
}

.cours-texte {
    font-size: 1rem;
    line-height: 1.6rem;
}

/* Séparateur discret */
.cours-sep {
    border: none;
    border-top: 2px solid #e5e5e5;
    margin: 2.5rem 0;
    width: 40%;
    margin-left: auto;
    margin-right: auto;
    opacity: .8;
}

/* Bouton outline couleur CDC */
.btn-course-outline {
    border: 2px solid #882D17;
    color: #882D17;
    background: transparent;
    padding: .45rem .9rem;
    font-weight: 600;
    border-radius: .5rem;
    transition: all .2s ease;
}

.btn-course-outline:hover {
    background: #882D17;
    color: #fff;
}

/* Bouton principal */
.btn-course {
    background-color: #882D17;
    color: #fff;
    font-weight: 600;
    padding: .6rem 1.2rem;
    border-radius: .5rem;
    transition: all .2s ease;
}

.btn-course:hover {
    background-color: #6c2211;
    color: #fff;
}
.btn-bio {
    border: 2px solid #882D17;
    color: #882D17;
    font-weight: 600;
    border-radius: .5rem;
    padding: .4rem .9rem;
    transition: 0.2s;
}

.btn-bio:hover {
    background-color: #882D17;
    color: #fff;
}

/* --- OFFCANVAS Comédiens : Style amélioré --- */

/* Largeur desktop */
@media (min-width: 992px) {
    .bio-panel {
        width: 50% !important;
        max-width: 650px;
    }
}

/* Titre */
.bio-title {
    font-size: 2rem;
    font-weight: 800;
    color: #882D17;
    letter-spacing: 1px;
    margin: 0;
}


/* Texte */
.bio-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #333;
    text-align: justify;
}

/* Paragraphes espacés */
.bio-text p {
    margin-bottom: 1.2rem;
}

/* Offcanvas background + padding */
.bio-panel .offcanvas-body {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

/* Animation douce */
.bio-panel {
    transition: transform .35s ease-in-out;
}

/* ============================================================
   COURS — Optimisation mobile
============================================================ */

/* Par défaut, mobile-first : tout centré */
.cours-bloc,
.cours-bloc-alt,
.cours-titre,
.cours-texte,
.cours-actions {
    text-align: center !important;
}

/* Marge entre les boutons en mobile */
.cours-actions .btn {
    display: inline-block;
    width: auto;
    margin-bottom: .5rem;
}

/* Réduction des marges pour petits écrans */
@media (max-width: 576px) {
    .cours-section {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .cours-titre {
        font-size: 1.5rem;
    }

    .cours-texte {
        font-size: 0.95rem;
        line-height: 1.45rem;
    }

    .cours-sep {
        width: 60%;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}

/* Version desktop : on réactive l’alternance */
@media (min-width: 768px) {

    /* Bloc enfants → aligné à gauche */
    .cours-bloc {
        text-align: left !important;
    }offcanvas

    /* Bloc adultes → aligné à droite */
    .cours-bloc-alt {
        text-align: right !important;
    }

    /* Alignement des boutons Desktop */
    .cours-bloc-alt .cours-actions {
        text-align: right !important;
    }
}
/* === COMÉDIENS — Offcanvas version ======================== */

.actor-card {
    border-radius: 0.75rem;
    transition: transform .2s ease, box-shadow .2s ease;
    background: #fff;
}
.actor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
}

/* Photo carré moderne */
.actor-photo {
    width: 100%;
    max-width: 260px;    /* taille sur desktop */
    height: 260px;       /* carré parfait */
    object-fit: cover;
    border-radius: 1rem; /* coins arrondis légers */
    border: 4px solid #882D17; /* rappel couleur charte */
    display: block;
    margin-left: auto;
    margin-right: auto;
}   

/* Mobile : réduit légèrement la taille */
@media (max-width: 576px) {
    .actor-photo {
        max-width: 200px;
        height: 200px;
    }
}


.offcanvas-body img {
    border-radius: 0.5rem;
}

/* Offcanvas version large (50% de l'écran sur desktop) */
@media (min-width: 992px) {
    .offcanvas-end {
        width: 50% !important;
        max-width: none !important;
    }
}
/* ============================================================
   SECTION CONTACT — Version Fun & Clean
============================================================ */

/* Fond léger avec effet de vague */
#contact {
    background: linear-gradient(135deg, #fff 0%, #f7f2f1 35%, #fef9f8 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}



/* Titre */
#contact .section-heading {
    color: #882D17;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* Sous-titre */
#contact .section-subheading {
    font-size: 1rem;
    max-width: 700px;
    margin: auto;
    line-height: 1.6rem;
    color: #6c6c6c !important;
}

/* Card-like form container */
#contact form {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}

/* Champs du formulaire */
#contact .form-control {
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #e7d4cf;
    transition: all .25s ease;
    background-color: #fff;
}

/* Focus */
#contact .form-control:focus {
    border-color: #882D17;
    box-shadow: 0 0 8px rgba(136, 45, 23, 0.25);
}

/* Zone de texte */
#contact textarea.form-control {
    min-height: 160px;
}

/* Bouton envoyer */
#contact .btn-primary {
    background-color: #882D17;
    border: none;
    padding: 0.9rem 2.4rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0.75rem;
    transition: transform .2s ease, background-color .2s ease;
}

#contact .btn-primary:hover {
    background-color: #6c2211;
    transform: translateY(-2px);
}

/* Animation légère sur les inputs quand ils apparaissent */
#contact .form-group {
    animation: fadeSlideUp .6s ease forwards;
    opacity: 0;
}

#contact .form-group:nth-child(1) { animation-delay: .1s; }
#contact .form-group:nth-child(2) { animation-delay: .2s; }
#contact .form-group:nth-child(3) { animation-delay: .3s; }
#contact textarea { animation-delay: .4s; }

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ============================================================
   FOOTER — Version unie couleur CDC (#882D17)
============================================================ */

.footer {
    background-color: #882D17; /* couleur de référence */
    color: #fff;
    font-size: 0.95rem;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Boutons réseaux sociaux */
.footer .btn-dark {
    background-color: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 0.5rem;
    transition: background-color .2s ease, transform .2s ease;
}

/* Hover réseaux sociaux */
.footer .btn-dark:hover {
    background-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Alignement et adaptation mobile */
@media (max-width: 768px) {
    .footer {
        text-align: center;
    }

    .footer .btn-dark {
        margin-bottom: 0.5rem;
    }
}
/* ============ BOUTON FIXE ================= */

.mega-btn-fixed {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 6000;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Icône hamburger */

.mega-icon {
    position: relative;
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s ease;
}

.mega-icon::before,
.mega-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s ease;
}

.mega-icon::before { top: -8px; }
.mega-icon::after { top: 8px; }

/* Croix */

.mega-btn-fixed.active .mega-icon {
    background: transparent;
}

.mega-btn-fixed.active .mega-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.mega-btn-fixed.active .mega-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ========= MEGA MENU ======= */

.mega-menu {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px);
    z-index: 5000;
    display: none;
    opacity: 0;
    transition: opacity .35s ease;
}

.mega-menu.open {
    display: block;
    opacity: 1;
}

/* Contenu */

.mega-inner {
    max-width: 650px;
    margin: 80px auto;
    padding: 2rem;
    text-align: center;
    color: #fff;
}

.mega-title a {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 800;
    text-decoration: none;
}

.mega-links {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.mega-links li {
    margin: .6rem 0;
}

.mega-links a {
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    transition: .2s;
}

.mega-links a:hover {
    color: #882D17;
}

.mega-cat {
    margin-top: 1.8rem;
    font-weight: 700;
    color: #882D17;
    font-size: 1.5rem;
}

.mega-cta {
    display: inline-block;
    margin-top: 2rem;
    padding: .9rem 2rem;
    background: #882D17;
    color: #fff;
    border-radius: .6rem;
    font-weight: 700;
    text-decoration: none;
}

.mega-cta:hover {
    background: #6c2211;
}

/* --- Réseaux sociaux dans le méga menu --- */

.mega-social {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.mega-social .social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    transition: .25s ease;
}

.mega-social .social-link:hover {
    background: #882D17;
    transform: translateY(-3px);
    color: #fff;
}

/* === HEADER SIMPLE =================================================== */

.header-simple {
    background: #882D17; /* couleur de ta charte */
    padding-top: 6rem;
    padding-bottom: 4rem;
    color: #fff;
}

.header-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.header-divider {
    width: 70px;
    height: 4px;
    background: #fff;
    border-radius: 3px;
    margin-top: 1rem;
}

/* === SECTIONS PLUS PROPRES ========================================== */

.page-section {
    padding: 4rem 0;
}

.section-heading {
    font-weight: 800;
    color: #882D17;
}

.section-subtitle {
    color: #6c6c6c;
    font-size: 1.05rem;
}

/* === CARTES MODERNES ================================================ */

.card-modern {
    border: none;
    border-radius: 0.75rem;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}

.card-modern h5 {
    color: #882D17;
    font-weight: 700;
}

/* Masterclass list */
.mc-card {
    border-left: 4px solid #882D17;
    border-radius: 0.5rem;
    padding: 1.2rem 1.5rem;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.mc-card small {
    color: #6c6c6c;
}

/* Compétences */
.comp-card {
    border-radius: 0.75rem;
    padding: 1.6rem;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.comp-card h5 {
    color: #882D17;
    font-weight: 700;
}

/* Liens CV */
.comp-card a {
    text-decoration: none;
    font-weight: 600;
    color: #882D17;
}

.comp-card a:hover {
    color: #6c2211;
}

/* Bullets */
.comp-card li {
    margin-bottom: .3rem;
}

/* Titres de blocs */
.block-title {
    font-weight: 800;
    font-size: 1.9rem;
    color: #882D17;
}

/* === CARDS MODERNES ========================================= */

/* Cours list */
.cours-card {
    border-left: 4px solid #882D17;
    border-radius: 0.5rem;
    padding: 1.6rem;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    height: 100%;
}

.cours-card h3 {
    color: #882D17;
    font-weight: 700;
}

.cours-card ul li {
    margin-bottom: .3rem;
}

/* CTA bouton */
.btn-cours-cta {
    background: #882D17;
    border: none;
    border-radius: .6rem;
    padding: .7rem 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: auto;
    display: inline-block;
    color:#fff;
}

.btn-cours-cta:hover {
    background: #6c2211;
    color: #fff;
}

/* --- Spectacles Slider --- */
/* --- Réduction largeur du contenu --- */
.spectacle-slide {
    max-width: 900px;     /* réduit la largeur totale */
    margin: auto;         /* centre le bloc */
    padding: 20px 0;
}

/* Image */
.spectacle-img {
    width: 100%;
    border: 5px solid #882D17;
    border-radius: 1rem;
    object-fit: cover;
}

/* Titre */
.spectacle-title {
    font-size: 2rem;
    font-weight: 800;
    color: #882D17;
    margin-bottom: 1rem;
}

/* Texte */
.spectacle-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

/* Bouton */
.btn-spectacle {
    background-color: #882D17;
    color: #fff;
    font-weight: 600;
    border-radius: .5rem;
    padding: .6rem 1.4rem;
}
.btn-spectacle:hover {
    background-color: #6c2211;
}

/* --- Flèches Swiper épaisses et couleur du site --- */
.swiper-button-prev,
.swiper-button-next {
    color: #882D17;
    width: 55px;
    height: 55px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 2.8rem;
    font-weight: 900;      /* rend les flèches plus épaisses */
}

/* Mobile centré */
@media (max-width: 992px) {
    .spectacle-slide {
        max-width: 100%;
        text-align: center;
    }
    .spectacle-title {
        margin-top: 1rem;
    }
    .btn-spectacle {
        margin: auto;
    }
}
