/* ============================================
   DahuTrek — Design System CSS
   Variables centralisées & styles partagés
   ============================================ */

/* ---------- VARIABLES ---------- */
:root {
    /* Couleurs primaires */
    --color-primary: #FCC61A;
    --color-primary-dark: #E5B417;
    --color-primary-light: #FEF3C7;
    --color-accent: #F5A623;

    /* Fonds */
    --color-bg: #F5F0E8;
    --color-bg-warm: #F8E7B5;
    --color-bg-section: #EDE8DC;
    --color-white: #ffffff;
    --color-black: #000000;
    
    /* Texte */
    --color-text: #1a1a1a;
    --color-text-secondary: #4b5563;
    --color-text-muted: #6b7280;
    --color-text-light: #9ca3af;

    /* Bordures */
    --color-border: #d4cfc5;
    --color-border-gold: rgba(252, 198, 26, 0.20);

    /* Transparences gold */
    --color-gold-10: rgba(252, 198, 26, 0.1);
    --color-gold-20: rgba(252, 198, 26, 0.2);

    /* Navigation */
    --nav-bg: rgba(248, 231, 181, 0.95);
    --nav-height: 88px;

    /* Typographie */
    --font-family: 'Rokkitt', Georgia, serif;
}

/* ---------- FONT FACE ---------- */
@font-face {
    font-family: 'Rokkitt';
    src: url('../fonts/Rokkitt-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

/* ---------- RESET & BASE ---------- */
body.dahutrek-child *,
body.dahutrek-child *::before,
body.dahutrek-child *::after {
    box-sizing: border-box;
}

body.dahutrek-child {
    font-family: var(--font-family) !important;
    background-color: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* Override Divi global styles */
body.dahutrek-child #page-container,
body.dahutrek-child #main-content,
body.dahutrek-child #et-main-area {
    background-color: transparent;
    font-family: var(--font-family);
}

body.dahutrek-child h1,
body.dahutrek-child h2,
body.dahutrek-child h3,
body.dahutrek-child h4,
body.dahutrek-child h5,
body.dahutrek-child h6 {
    font-family: var(--font-family) !important;
    color: var(--color-text);
}

/* --- Override : texte blanc sur images/overlays --- */
/* Hero carousel homepage */
.hero-carousel h1,
.hero-carousel h2,
.hero-carousel p,
.hero-carousel a.border-white {
    color: #ffffff !important;
}
.hero-carousel p.text-white\/90 {
    color: rgba(255,255,255,0.9) !important;
}

/* Rando showcase overlay (homepage cards) */
.rando-showcase h3 {
    color: #ffffff !important;
}
.rando-showcase p {
    color: rgba(255,255,255,0.7) !important;
}

/* CTA parallax bandeau */
section.relative h2.text-white,
section.relative h2[style*="text-white"] {
    color: #ffffff !important;
}

/* Bandeau CTA général — texte sur fond image */
.bg-black\/50 + .relative h2,
.bg-black\/50 ~ .relative h2 {
    color: #ffffff !important;
}

/* Hero événement single-event */
header.relative h1 {
    color: #ffffff !important;
}

/* Nos Randos cards — titres sur image */
.bg-gradient-to-t h3 {
    color: #ffffff !important;
}

body.dahutrek-child p,
body.dahutrek-child li,
body.dahutrek-child a,
body.dahutrek-child span,
body.dahutrek-child input,
body.dahutrek-child button,
body.dahutrek-child textarea,
body.dahutrek-child select {
    font-family: var(--font-family) !important;
}

/* ---------- NAVIGATION ---------- */
.nav-logo {
    height: 8rem;
    width: auto;
    margin: -20px 0;
    object-fit: contain;
}

.text-style-uppercase {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    font-size: 0.75rem;
}

.hover-slide-underline {
    position: relative;
    overflow: hidden;
}

.hover-slide-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.35s ease;
}

.hover-slide-underline:hover::after {
    width: 100%;
}

.hover-slide-underline:hover {
    color: var(--color-black) !important;
}

.active-underline {
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 4px;
    color: var(--color-black);
}

.btn-angular-border {
    background: transparent;
    color: var(--color-black);
    padding: 8px 24px;
    border: 2px solid var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
}

.btn-angular-border:hover {
    background: var(--color-primary);
    color: var(--color-black);
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu.open {
    max-height: 400px;
}

/* ---------- FOOTER ---------- */
.footer-logo {
    height: 10rem;
    width: auto;
    object-fit: contain;
    max-width: none;
    margin: -2.5rem -3rem;
}

.assoc-logo {
    height: 3rem;
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.assoc-logo:hover {
    opacity: 1;
}

/* ---------- COMPOSANTS PARTAGES ---------- */
.partner-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-family);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.section-bar {
    width: 4rem;
    height: 2px;
    background: var(--color-primary);
    margin-bottom: 2rem;
}

/* ---------- LIENS ---------- */
body.dahutrek-child a {
    text-decoration: none;
    color: inherit;
}

/* ---------- NEWSLETTER EMBED (widget StatsLive) ---------- */
.footer-col-newsletter .newsletter-embed,
.footer-col-newsletter .newsletter-embed form > div,
.footer-col-newsletter .newsletter-embed > *:first-child {
    margin-top: 0 !important;
}

/* ---------- RESPONSIVE FOOTER MOBILE ---------- */
@media (max-width: 767px) {
    .footer-col-brand {
        text-align: center;
    }

    .footer-col-brand .footer-logo {
        margin: -2.5rem auto;
        display: block;
    }

    .footer-col-brand .social-icons {
        justify-content: center;
    }

    .footer-col-navcontact {
        text-align: center;
    }

    .footer-col-newsletter {
        text-align: center;
    }

    .footer-col-newsletter form {
        max-width: 320px;
        margin: 0 auto;
    }

    .footer-certifs {
        justify-content: center;
    }
}

/* ---------- FADE-UP ANIMATION ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
