/* =========================
      GÉNÉRAL
   ============================ */
* {
    font-family: 'Libre Baskerville', serif;
}

body {
    margin: 0;
    padding: 0;
    padding-top: 70px;
    font-family: 'Libre Baskerville', serif;
    background-color: #F5F0E8;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Libre Baskerville', serif;
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: 0.7em;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.7rem;
    font-weight: 600;
}

h4 {
    font-size: 1.3rem;
    font-weight: 600;
}

.lead {
    font-size: 1.15rem;
    margin-left: 20px;
    margin-right: 20px;
}

.text-justify {
    text-align: justify;
}

.fs-24 {
    font-size: 2rem;
}

.animate {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

hr {
    width: 25%;
    border: 1.5px solid black;
}

.scroll-top-indicator {
    position: fixed;
    bottom: 20px;
    right: 50px;
    font-size: 1.2rem;
    background: #000000;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    color: #f5eaea;
    display: block;
}

.scroll-top-indicator:hover {
    opacity: .5;
    transition: 0.7s;
}

/* =========================
              HEADER & NAVBAR
           ============================ */
header {
    background-color: #F5F0E8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: inherit;
}

header nav {
    padding: 10px 0;
}

header .img-brand {
    margin-left: auto;
    margin-right: auto;
}

.navbar-nav {
    gap: 12px;
    text-align: center;
    padding: 0;
}

header nav {
    padding: 6px 0;
}

header .active {
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #e6c98a 0%, #f7e9c2 100%);
    border-radius: 6px;
    transition: background 0.3s, color 0.5s;
}

.navbar-toggler {
    position: absolute;
    right: 15px;
    top: 45px;
    z-index: 1030;
}

.navbar-collapse {
    position: static;
    padding: 0;
    background-color: transparent;
}

.navbar {
    padding-left: 0;
    min-height: auto;
}


body.navbar-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.navbar-collapse.show {
    position: static;
    margin-top: 0 !important;
}

.progress-container {
    position: fixed;
    top: 120px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: #393939;
    z-index: 2000;
    display: flex;
    align-items: center;
}

.progress-bar {
    height: 100%;
    background-color: #D69F05;
    width: 0;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* =========================
              SECTION QUI SOMMES-NOUS
           ============================ */
#qui-sommes-nous {
    padding: 80px 0;
    margin-top: 30px;
    scroll-margin-top: 100px;
}

#qui-sommes-nous h3 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 3rem;
    color: #1a1a1a;
    text-align: center;
    margin-top: 0rem;
    font-family: 'Libre Baskerville', serif;
}

#qui-sommes-nous h2 {
    scroll-margin-top: 100px;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Libre Baskerville', serif;
}

#qui-sommes-nous .text-justify p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
    margin-bottom: 1.5rem;
}

#qui-sommes-nous p,
#qui-sommes-nous .col-md-7 p {
    font-size: 1rem;
    line-height: 1.875;
    margin-top: -80px;
}

#qui-sommes-nous .col-12>p {
    font-size: 1.1rem;
    line-height: 1.875;
}

.tdm-carousel {
    width: 100%;
}

.tdm-carousel-indicators {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.tdm-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #bbb;
    margin: 0 4px;
    opacity: 0.7;
    transition: background 0.3s, opacity 0.3s;
}

.tdm-carousel-indicator.active {
    background: #333;
    opacity: 1;
}

.tdm-carousel-inner {
    width: 100%;
}

.tdm-carousel-item {
    text-align: center;
}

.tdm-carousel-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 0 auto;
}

.academy-carousel-title {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.carousel-portrait-img {
    width: auto;
    height: 420px;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 3/4;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: box-shadow 0.3s;
}

.carousel-portrait-img:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.carousel-item.active {
    animation: fadeInSlide 0.6s ease-in-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0.8;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #bbb;
    border: none;
    margin: 0 16px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: #1a1a1a;
    opacity: 1;
    transform: scale(1.4);
}

/* =========================
              SECTION INNOVATION
           ============================ */
#innovation {
    min-height: 60vh;
    scroll-margin-top: 100px;
}

#innovation .row {
    min-height: 60vh;
}

#innovation h2 {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    color: #1a1a1a;
    font-family: 'Libre Baskerville', serif;
}

#innovation img {
    width: 100%;
    max-width: 900px;
    height: 400px;
    object-fit: cover;
    display: block;
}

#innovation .col-lg-6.d-flex.flex-column {
    padding-left: 68px;
}

/* =========================
              SECTION ATELIER
           ============================ */
#atelier {
    min-height: 100vh;
    scroll-margin-top: 100px;
    padding: 80px 0;
}

#atelier .row {
    min-height: 70vh;
    align-items: center;
}

#atelier .container h2 {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    color: #1a1a1a;
    font-family: 'Libre Baskerville', serif;
}

#atelier p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444;
    text-align: justify;
}

#atelier p:last-of-type {
    font-size: 1rem;
    color: #666;
}

#atelierCarousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

.atelier-carousel-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    transform: none;
}

.atelier-carousel-img:hover {
    transform: none;
}

.atelier-carousel-caption {
    color: #333;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}

#atelierCarousel .carousel-item .atelier-carousel-caption {
    width: 70%;
    margin: 0 auto;
    margin-left: -5px;
    word-break: break-word;
    display: block;
}

#atelierCarousel .carousel-inner .carousel-item {
    transition: transform 0.6s ease-in-out;
}

#atelierCarousel .carousel-item img {
    transition: none;
    transform: scale(1);
}

/* =========================
              SECTION EVENEMENTS
           ============================ */
#evenements {
    scroll-margin-top: 100px;
}

#evenements .container {
    min-height: 70vh;
}

#evenements h2 {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    color: #1a1a1a;
    font-family: 'Libre Baskerville', serif;
}

#evenements .lead {
    text-align: justify;
    margin-left: 20px;
    margin-right: 20px;
}

/* =========================
              SECTION ACADEMY
           ============================ */
#academy {
    scroll-margin-top: 100px;
}

#academy h2,
#academy-2 h2 {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    color: #1a1a1a;
    font-family: 'Libre Baskerville', serif;
}

.academy-carousel-wrapper {
    height: 100vh;
}

.academy-carousel-inner img,
.academy-carousel-img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.academy-carousel-caption {
    text-align: center;
    margin-top: 1rem;
}

.academy-carousel-title {
    font-size: 1.2rem;
    font-weight: 600;
}

#academyCarousel .carousel-inner {
    margin-top: -200px;
}

/* =========================
              SECTION CONTACT
           ============================ */
#contact {
    scroll-margin-top: 100px;
}

#contact .img-fluid {
    width: auto;
    margin-left: 0%;
    margin-top: 0px;
    margin-bottom: auto;
    max-height: 80vh;
    border-radius: 5px;
}

#contact .card {
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    background: #f8f6f2;
}

#contact h3.text-center {
    font-weight: 700;
    font-family: 'Libre Baskerville', serif;
}

#contact .text-center.mb-4 {
    color: #444;
    font-size: 1.05rem;
}

#contact .btn {
    font-size: 1rem;
}

#contact .text-baseline {
    font-size: 0.98rem;
    color: #666;
}

/* MAPS EMBEDED */
#maps {
    padding: 20px;
    text-align: center;
}

#maps .embed-map-responsive {
    display: inline-block;
    width: 100%;
    max-width: 600px;
    /* Ajustez cette valeur selon vos besoins */
}

#maps .embed-map-container {
    position: relative;
    width: 100%;
    padding-bottom: 60%;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

#maps .embed-map-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 14px;
}

/* =========================
              FOOTER
           ============================ */
.footer {
    width: 100%;
    background-color: #959593;
    color: #2d3633;
    font-size: 0.98rem;
    border-top: 1px solid #ccc;
    font-family: 'Libre Baskerville', serif;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

footer {
    background-color: #9c9b99;
    color: white;
}

.footer .icon {
    text-decoration: none;
    display: inline-block;
    margin: 15px 4px 0 4px;
}

.footer .icon:hover {
    transform: scale(1.3);
    transition: transform 1.5s, opacity 0.5s;
}

.footer .icon img {
    vertical-align: middle;
}

.footer .footer-title {
    font-weight: 500;
    font-size: 1.25rem;
}

.footer-link {
    color: #2d3633;
    text-decoration: none;
    font-weight: 500;
}

.footer .footer-links-container {
    margin-top: 15px;
}

.footer .copyright {
    font-size: 0.92rem;
    color: #555;
}

.footer .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.footer .row .col-12 {
    text-align: center;
    margin-top: 1rem;
}