/* =====================================================
   Château La Gordonne — main.css
   Thème enfant Divi
   Tokens extraits du CSS source du site Symfony original
   ===================================================== */

/* ─── Variables — tokens officiels lagordonne.com ──── */
:root {
    /* Palette officielle Château La Gordonne / Vranken */
    --lg-rose:        #d60064;   /* couleur primaire : boutons, titres, footer, accents */
    --lg-rose-clair:  #e8338a;   /* hover */
    --lg-rose-fonce:  #a8004e;   /* active / pressed */
    --lg-blanc:       #ffffff;
    --lg-noir:        #000000;
    --lg-texte:       #212529;   /* texte corps */
    --lg-texte-alt:   #333333;
    --lg-gris-clair:  #efefef;   /* fond disclaimers / section abus */
    --lg-gris-bg:     #fafafa;
    --lg-overlay:     rgba(33, 33, 33, 0.8);
    --lg-overlay-med: rgba(0, 0, 0, 0.5);

    /* Typographies — identiques au site original */
    --font-titre:    'Oswald', sans-serif;     /* navigation, titres, footer */
    --font-corps:    'Raleway', sans-serif;    /* corps de texte, boutons */

    /* Boutons — style pilule original */
    --lg-btn-radius: 30px;

    /* Espacements */
    --lg-section-py: clamp(3rem, 6vw, 7rem);
    --lg-container:  1320px;
    --lg-px:         clamp(1.5rem, 5vw, 3rem);

    /* Transitions */
    --lg-ease:     cubic-bezier(0.25, 0.1, 0.25, 1);
    --lg-ease-in:  cubic-bezier(0.4, 0, 1, 1);
    --lg-ease-out: cubic-bezier(0, 0, 0.2, 1);
    --lg-duration: 0.6s;
}

/* ─── Reset ciblé Divi ────────────────────────────── */
body {
    font-family: var(--font-corps);
    background-color: var(--lg-blanc);
    color: var(--lg-texte);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

#page-container { padding: 0 !important; }
.et_pb_section { padding: var(--lg-section-py) 0; }

/* ─── Typographie globale ─────────────────────────── */
h1, h2, h3, h4, h5, h6,
.et_pb_module_header,
.et_pb_title_container h1 {
    font-family: var(--font-titre);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lg-texte);
}

/* Tailles — calquées sur les vw du site original converti en clamp */
h1 { font-size: clamp(1.8rem, 2.5vw, 3rem);  line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 2vw, 2.2rem);  line-height: 1.2;  }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.6rem); }
h4 { font-size: clamp(1rem, 1.2vw, 1.3rem); }

p {
    font-family: var(--font-corps);
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    line-height: 1.85;
    color: var(--lg-texte);
}

a {
    color: var(--lg-rose);
    text-decoration: none;
    transition: color var(--lg-duration) var(--lg-ease);
}
a:hover { color: var(--lg-rose-clair); }

/* ─── Boutons — style pilule original ────────────── */
.lg-btn,
.et_pb_button {
    display: inline-block;
    font-family: var(--font-corps);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.5em 2.5em;
    background-color: var(--lg-rose);
    color: var(--lg-blanc) !important;
    border: none;
    border-radius: var(--lg-btn-radius);
    transition: background var(--lg-duration) var(--lg-ease);
    cursor: pointer;
}
.lg-btn:hover,
.et_pb_button:hover {
    background-color: var(--lg-rose-fonce);
    color: var(--lg-blanc) !important;
}

/* Variante outline */
.lg-btn--outline {
    background: transparent;
    border: 1px solid var(--lg-rose);
    color: var(--lg-rose) !important;
}
.lg-btn--outline:hover {
    background: var(--lg-rose);
    color: var(--lg-blanc) !important;
}

/* Divi : supprime la flèche animée native */
.et_pb_button::after { display: none !important; }

/* ─── Navigation Divi ─────────────────────────────── */
#main-header {
    background-color: transparent !important;
    transition: background-color 0.4s var(--lg-ease), box-shadow 0.4s var(--lg-ease);
}
#main-header.scrolled {
    background-color: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(8px);
}

#main-header .nav li a,
#main-header ul.nav li a {
    font-family: var(--font-titre);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--lg-blanc) !important;
    transition: color var(--lg-duration) var(--lg-ease);
}
#main-header .nav li a:hover,
#main-header ul.nav li a:hover {
    color: var(--lg-rose) !important;
}

#main-header .logo_container img {
    max-height: 60px;
}

/* ─── Footer ──────────────────────────────────────── */
#main-footer,
.et_pb_footer_columns_outer {
    background-color: var(--lg-rose);
    font-family: var(--font-titre);
    color: var(--lg-blanc);
}
#main-footer a,
.et_pb_footer_columns_outer a {
    color: var(--lg-blanc);
}
#main-footer a:hover,
.et_pb_footer_columns_outer a:hover {
    color: rgba(255,255,255,0.75);
}
#footer-bottom {
    background-color: var(--lg-rose-fonce);
    font-family: var(--font-titre);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.footer-top p{font-size:16px;font-family:var(--font-titre);}

.footer-bottom .menu-footer ul{align-items:flex-end!important;flex-direction:column;}
.footer-bottom .menu-footer ul a{font-size:16px;}

/* ─── Section "abus d'alcool" (disclaimer légal) ─── */
.lg-disclaimer {
    background-color: var(--lg-gris-clair);
    font-family: var(--font-titre);
    font-size: 0.75rem;
    text-align: center;
    padding: 0.4em 1em;
    letter-spacing: 0.05em;
    color: var(--lg-texte-alt);
}

/* ─── AGE GATE ────────────────────────────────────── */
.lg-age-gate {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lg-age-gate__overlay {
    position: absolute;
    inset: 0;
    background: var(--lg-blanc);
}

.lg-age-gate__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 3rem clamp(1.5rem, 8vw, 5rem);
    max-width: 620px;
    width: 100%;
    text-align: center;
    animation: lg-fade-in 0.7s var(--lg-ease) both;
}

.lg-age-gate__logo img,
.lg-age-gate__logo svg {
    max-width: 300px;
    max-height: 120px;
    width: auto;
    height: auto;
}
.lg-age-gate__site-name {
    font-family: var(--font-titre);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--lg-texte);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lg-age-gate__subtitle {
    font-family: var(--font-corps);
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--lg-texte-alt);
    max-width: 500px;
    margin: 0 auto;
}

.lg-age-gate__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

/* Bouton age gate — style original : pilule rose */
.lg-age-gate__btn {
    display: inline-block;
    font-family: var(--font-corps);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.4em 2.5em;
    border-radius: var(--lg-btn-radius);
    cursor: pointer;
    transition: background var(--lg-duration) var(--lg-ease),
                color var(--lg-duration) var(--lg-ease);
    min-width: 250px;
    text-align: center;
    border: none;
}
.lg-age-gate__btn--primary {
    background-color: var(--lg-rose);
    color: var(--lg-blanc) !important;
}
.lg-age-gate__btn--primary:hover {
    background-color: var(--lg-rose-fonce);
    color: var(--lg-blanc) !important;
}
.lg-age-gate__btn--secondary {
    background: transparent;
    color: var(--lg-texte-alt);
    font-size: 0.6875rem;
    text-decoration: underline;
}
.lg-age-gate__btn--secondary:hover {
    color: var(--lg-noir);
}

.lg-age-gate__lang {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-titre);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.35);
}
.lg-age-gate__lang a {
    color: rgba(0,0,0,0.35);
    transition: color var(--lg-duration) var(--lg-ease);
}
.lg-age-gate__lang a:hover,
.lg-age-gate__lang a.is-active {
    color: var(--lg-rose);
}

.lg-age-gate.is-leaving {
    pointer-events: none;
    animation: lg-fade-out 0.8s var(--lg-ease-in) forwards;
}

/* ─── INTRO ANIMÉE ────────────────────────────────── */
.lg-intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lg-intro__media {
    position: absolute;
    inset: 0;
}
.lg-intro__video,
.lg-intro__image,
.lg-intro__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lg-intro__placeholder {
    background: var(--lg-noir);
}
.lg-intro__overlay {
    position: absolute;
    inset: 0;
    background: var(--lg-overlay-med);
}

.lg-intro__content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: lg-fade-in 1.5s var(--lg-ease) 0.5s both;
}
.lg-intro__logo img,
.lg-intro__logo svg {
    max-width: 240px;
    filter: brightness(0) invert(1);
}

/* Bouton "Passer l'introduction" — style original */
.lg-intro__skip {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-titre);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color var(--lg-duration) var(--lg-ease);
    animation: lg-fade-in 1s var(--lg-ease) 1.5s both;
    white-space: nowrap;
}
.lg-intro__skip:hover { color: var(--lg-blanc); }

.lg-intro__skip-line {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
    animation: lg-line-pulse 2s var(--lg-ease) infinite;
}

.lg-intro.is-leaving {
    pointer-events: none;
    animation: lg-fade-out 1s var(--lg-ease-in) forwards;
}

/* ─── Scroll lock ─────────────────────────────────── */
body.lg-locked { overflow: hidden; }

/* ─── Animations ──────────────────────────────────── */
@keyframes lg-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes lg-fade-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}
@keyframes lg-line-pulse {
    0%, 100% { opacity: 0.7; transform: scaleY(1); }
    50%       { opacity: 1;   transform: scaleY(0.75); }
}

/* ─── Surcharges Divi Modules ─────────────────────── */

/* Titres de modules */
.et_pb_module_header,
.et_pb_blurb_title {
    font-family: var(--font-titre);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Zone texte */
.et_pb_text_inner {
    font-family: var(--font-corps);
}

/* Couleur d'accentuation Divi */
.et_pb_section .et_pb_text .et-l--body h2,
.et_pb_section .et_pb_text .et-l--body h3 {
    color: var(--lg-rose);
}

/* ─── Responsive Divi ─────────────────────────────── */
@media (max-width: 980px) {
    .et_pb_section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
    .lg-age-gate__btn { min-width: 220px; }
}

@media (max-width: 640px) {
    .lg-age-gate__inner { gap: 2rem; }
    .lg-age-gate__btn { min-width: 100%; }
    .lg-intro__skip { bottom: 1.5rem; }
}
