/* ============================================
   TOKENS
============================================ */
:root {
    --cream: #ffffff;
    --ink: #16261e;
    --forest: #0b6b44;
    --forest-dark: #084d31;
    --forest-soft: #e7f3ec;
    --line: #e1e6e3;
}

/* ============================================
   RESET & BASE
============================================ */






/* ============================================
   UTILITAIRES
============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   HEADER
============================================ */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 48px;
    background-color: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo img {
    height: 48px;
    width: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.logo img:hover {
    transform: scale(1.1);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.logo-title {
    
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--ink);
}
.logo-subtitle {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--forest);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--forest);
    border-bottom-color: var(--forest);
}

.btn-explorer {
    background-color: var(--forest);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 26px;
    border-radius: 999px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-explorer:hover {
    background-color: var(--forest-dark);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--ink);
    cursor: pointer;
}

/* ============================================
   HERO
============================================ */
.hero {
    position: relative;
    min-height: 500px;
    margin: 20px 48px 40px 48px;
    border-radius: 24px;
    overflow: hidden;
    background-image: url("https://res.cloudinary.com/nyke7lhc/image/upload/v1786022187/B%C3%A9no%C3%AEt_D%C3%A8gla_bwoys8.webp") !important;
    background-size: cover;
    background-position: center 30%;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 30, 20, 0.85) 0%, rgba(8, 30, 20, 0.50) 60%, rgba(8, 30, 20, 0.20) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding: 60px 50px;
    color: #fff;
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 8px;
}
.hero-title em {
    font-style: italic;
    color: #F0D8B8;
}

.hero-date {
    font-size: 1rem;
    font-weight: 500;
    color: #cde0d7;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.hero-date i {
    margin-right: 8px;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
    
}

.hero-text p:not(.hero-date) {
    font-size: 1rem;
    color: #e0ede7;
    max-width: 550px;
    line-height: 1.6;
}

/* ============================================
   STORY SECTION
============================================ */
.story-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.story-section h2 {
    
    font-size: 2rem;
    color: #1a3a5c;
    margin-top: 50px;
    margin-bottom: 20px;
    border-bottom: 3px solid #1a3a5c;
    padding-bottom: 10px;
}

.story-section h3 {
    
    font-size: 1.5rem;
    color: #2a5a8c;
    margin-top: 35px;
    margin-bottom: 15px;
}

.story-section p {
    
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2d2d2d;
    margin-bottom: 20px;
    text-align: justify;
}

.story-section ul {
    
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2d2d2d;
    margin-bottom: 20px;
    padding-left: 30px;
}

.story-section ul li {
    margin-bottom: 10px;
}

.story-section .quote {
    font-style: italic;
    font-size: 1.15rem;
    background: #f0f4f8;
    padding: 20px 30px;
    border-left: 5px solid #1a3a5c;
    border-radius: 0 10px 10px 0;
    margin: 30px 0;
    color: #1a3a5c;
}

.story-section .quote strong {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
}

/* ============================================
   CAROUSEL 3D
============================================ */
.carousel-3d-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px 0;
    perspective: 1200px;
    overflow: hidden;
}

.carousel-3d {
    position: relative;
    width: 100%;
    height: 400px;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-3d-item {
    position: absolute;
    width: 280px;
    height: 340px;
    left: 50%;
    top: 50%;
    margin-left: -140px;
    margin-top: -170px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    backface-visibility: hidden;
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.carousel-3d-item:hover {
    transform: scale(1.05) translateZ(20px) !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 215, 0, 0.5);
}

.carousel-3d-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.carousel-3d-item .item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.carousel-3d-item:hover .item-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Contrôles du carrousel */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #1a3a5c, #2a5a8c);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 58, 92, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(26, 58, 92, 0.6);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-indicators .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(26, 58, 92, 0.3);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-indicators .dot.active {
    background: #1a3a5c;
    transform: scale(1.2);
}

.carousel-indicators .dot:hover {
    background: #1a3a5c;
}

/* ============================================
   SEARCH WIDGET
============================================ */
.search-widget-wrap {
    margin: 18px auto;
    padding: 0 20px;
    max-width: 1200px;
}

/* ============================================
   FAQ
============================================ */







.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}






/* ============================================
   FOOTER
============================================ */
footer.pied {
    background-color: #16261e;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
footer.pied a {
    color: #aad4c2;
    text-decoration: none;
}
footer.pied a:hover {
    color: #fff;
}
footer.pied input[type="email"] {
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    width: 280px;
    max-width: 80%;
    outline: none;
    
}
footer.pied input[type="email"]:focus {
    box-shadow: 0 0 0 3px rgba(11, 107, 68, 0.3);
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.btn-newsletter {
    background-color: var(--forest);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 26px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    
}
.btn-newsletter:hover:not(:disabled) {
    background-color: var(--forest-dark);
    transform: translateY(-1px);
}
.btn-newsletter:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

footer.pied .logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}
footer.pied .logo-title {
    color: #fff;
}
footer.pied .logo-subtitle {
    color: #aad4c2;
}
.footer-credit {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 4px;
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.footer-nav a {
    color: #aad4c2;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-nav a:hover {
    color: #fff;
}

/* ============================================
   RESPONSIVE
============================================ */

/* --- TABLETTE (≤ 1024px) --- */
@media (max-width: 1024px) {
    .site-header {
        padding: 16px 32px;
    }
    .main-nav ul {
        gap: 20px;
    }
    .hero {
        margin: 16px 32px 32px 32px;
        min-height: 420px;
    }
    .hero-content {
        max-width: 640px;
        padding: 48px 40px;
    }
    .hero-title {
        font-size: 2.4rem;
    }
    .story-section {
        padding: 16px;
    }
    .story-section h2 {
        font-size: 1.8rem;
    }
    .story-section h3 {
        font-size: 1.3rem;
    }
    .carousel-3d {
        height: 350px;
    }
    .carousel-3d-item {
        width: 250px;
        height: 310px;
        margin-left: -125px;
        margin-top: -155px;
    }
    
}

/* --- MOBILE / MENU BURGER (≤ 768px) --- */
@media (max-width: 768px) {
    .site-header {
        padding: 14px 20px;
    }
    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 20px 0;
    }
    .menu-toggle {
        display: block;
    }
    .hero {
        min-height: 360px;
        margin: 12px 16px 24px 16px;
        border-radius: 16px;
    }
    .hero-content {
        padding: 32px 24px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-text p:not(.hero-date) {
        font-size: 0.95rem;
    }
    .story-section {
        padding: 12px;
    }
    .story-section h2 {
        font-size: 1.6rem;
        margin-top: 35px;
    }
    .story-section h3 {
        font-size: 1.2rem;
    }
    .story-section p,
    .story-section ul {
        font-size: 0.95rem;
    }
    .story-section .quote {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .carousel-3d {
        height: 320px;
    }
    .carousel-3d-item {
        width: 220px;
        height: 280px;
        margin-left: -110px;
        margin-top: -140px;
    }
    .carousel-3d-item .item-caption {
        font-size: 0.75rem;
        padding: 10px 15px;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    
    
    
    footer.pied {
        padding: 32px 16px;
    }
}

/* --- PETIT MOBILE (≤ 480px) --- */
@media (max-width: 480px) {
    .site-header {
        padding: 12px 16px;
    }
    .logo img {
        height: 38px;
    }
    .logo-title {
        font-size: 0.95rem;
    }
    .logo-subtitle {
        font-size: 0.5rem;
    }
    .btn-explorer {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .hero {
        min-height: 300px;
        border-radius: 12px;
        margin: 8px 12px 18px 12px;
    }
    .hero-content {
        padding: 20px 16px;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .hero-date {
        font-size: 0.85rem;
    }
    .hero-text p:not(.hero-date) {
        font-size: 0.85rem;
        max-width: 100%;
    }

    .story-section {
        padding: 8px;
    }
    .story-section h2 {
        font-size: 1.3rem;
        margin-top: 30px;
        padding-bottom: 8px;
    }
    .story-section h3 {
        font-size: 1.05rem;
        margin-top: 25px;
    }
    .story-section p,
    .story-section ul {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    .story-section ul {
        padding-left: 20px;
    }
    .story-section .quote {
        font-size: 0.9rem;
        padding: 12px 16px;
        margin: 20px 0;
    }

    .carousel-3d-wrapper {
        margin: 30px auto;
        padding: 10px 0;
    }
    .carousel-3d {
        height: 260px;
    }
    .carousel-3d-item {
        width: 170px;
        height: 220px;
        margin-left: -85px;
        margin-top: -110px;
        border-width: 2px;
    }
    .carousel-3d-item .item-caption {
        font-size: 0.65rem;
        padding: 8px 10px;
    }
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    .carousel-controls {
        gap: 15px;
        margin-top: 20px;
    }
    .carousel-indicators .dot {
        width: 10px;
        height: 10px;
    }

    
    
    
    
    
    
    

    footer.pied {
        padding: 24px 12px;
    }
    footer.pied input[type="email"] {
        width: 100%;
        max-width: 100%;
        font-size: 0.9rem;
        padding: 10px 14px;
    }
    .newsletter-form {
        width: 100%;
        flex-direction: column;
    }
    .btn-newsletter {
        width: 100%;
        padding: 10px;
        font-size: 0.85rem;
    }
    .footer-nav {
        gap: 14px;
    }
    .footer-nav a {
        font-size: 0.85rem;
    }
    .footer-credit {
        font-size: 0.7rem;
    }
}

/* ============================================
   CORRECTIONS DIVERSES
============================================ */

/* S'assurer que le contenu principal est centré */
.main-content {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 48px;
}

/* Correction pour les titres dans le carrousel */
.carousel-3d-wrapper h2 {
    text-align: center;
    
    font-size: 2rem;
    color: #1a3a5c;
    margin-bottom: 10px;
}

.carousel-3d-wrapper p {
    text-align: center;
    
    color: #555;
    margin-bottom: 20px;
}

/* Responsive pour les titres du carrousel */
@media (max-width: 768px) {
    .carousel-3d-wrapper h2 {
        font-size: 1.6rem;
    }
    .carousel-3d-wrapper p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .carousel-3d-wrapper h2 {
        font-size: 1.3rem;
    }
    .carousel-3d-wrapper p {
        font-size: 0.8rem;
        padding: 0 10px;
    }
}

/* Correction pour la barre de recherche */
.search-widget-wrap .search {
    display: flex;
    align-items: center;
    background: #f5f7f6;
    border-radius: 999px;
    padding: 4px 4px 4px 18px;
    border: 1px solid #e0e8e4;
    transition: box-shadow 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
}

.search-widget-wrap .search:focus-within {
    box-shadow: 0 0 0 3px rgba(11, 107, 68, 0.2);
    border-color: var(--forest);
}

.search-widget-wrap .search i {
    color: #888;
    font-size: 0.9rem;
}

.search-widget-wrap .search input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 0.9rem;
    background: transparent;
    outline: none;
    
    min-width: 100px;
}

.search-widget-wrap .search button {
    background: var(--forest);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 24px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s ease;
    
    white-space: nowrap;
}

.search-widget-wrap .search button:hover {
    background: var(--forest-dark);
}

@media (max-width: 480px) {
    .search-widget-wrap .search {
        padding: 3px 3px 3px 14px;
        border-radius: 999px;
    }
    .search-widget-wrap .search input {
        font-size: 0.8rem;
        padding: 8px 10px;
    }
    .search-widget-wrap .search button {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
    .search-widget-wrap .search i {
        font-size: 0.8rem;
    }
}