/* ══════════════════════════════════════════════════
   estimationcave.com — CSS Global Partagé
   ══════════════════════════════════════════════════ */

:root {
    --bordeaux: #2D1B2E;
    --or: #C5A258;
    --or-light: #D4B76E;
    --or-pale: rgba(197, 162, 88, 0.10);
    --fond: #FAF6F0;
    --texte: #3A3035;
    --texte-light: #6B5F65;
    --blanc: #FFFFFF;
    --border: rgba(45, 27, 46, 0.08);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--fond);
    color: var(--texte);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* ── GRAIN TEXTURE ── */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.07;
    background-image: url('noise.png');
    background-repeat: repeat;
}

/* ── FOCUS VISIBLE ── */
*:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; border-radius: 2px; }
*:focus:not(:focus-visible) { outline: none; }

/* ── LIENS ── */
a { color: var(--or); text-decoration: none; transition: color 0.25s cubic-bezier(0.33, 1, 0.68, 1); }
a:hover { color: var(--bordeaux); }

/* ── LIENS TEXTE CORPS ── */
.article-body a, .about-body a, .legal-section a, .legal-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--or);
}

/* ── SKIP LINK ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--bordeaux);
    color: var(--fond);
    padding: 0.5rem 1rem;
    border-radius: 0 0 4px 4px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 1001;
    text-decoration: none;
    transition: top 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}
.skip-link:focus {
    top: 0;
    color: var(--fond);
}

/* ── NAV ── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(250, 246, 240, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bordeaux);
    text-decoration: none;
}
.nav-logo span { color: var(--or); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-back {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--or);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}
.nav-back:hover { color: var(--bordeaux); }
.nav-back svg { width: 16px; height: 16px; }

/* ── BOUTONS ── */
.btn-gold {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    background: var(--or);
    color: var(--bordeaux);
    padding: 0.65rem 1.5rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}
@media (hover: hover) {
    .btn-gold:hover {
        background: var(--or-light);
        color: var(--bordeaux);
        transform: translateY(-1px);
        box-shadow: 0 8px 30px rgba(197, 162, 88, 0.3);
    }
}
.btn-gold:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-primary {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    background: var(--bordeaux);
    color: var(--fond);
    padding: 0.65rem 1.5rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}
@media (hover: hover) {
    .btn-primary:hover {
        background: #3D2940;
        color: var(--fond);
        transform: translateY(-1px);
        box-shadow: 0 8px 30px rgba(45, 27, 46, 0.2);
    }
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ── PULSE BORDER CTA ── */
.btn-gold,
.btn-primary {
    animation: pulse-border 7s cubic-bezier(0.33, 1, 0.68, 1) infinite;
}
.btn-gold { --pulse-color: rgba(197, 162, 88, 0.35); }
.btn-primary { --pulse-color: rgba(45, 27, 46, 0.25); }
@keyframes pulse-border {
    0%, 85%, 100% { box-shadow: 0 0 0 0 var(--pulse-color); }
    92% { box-shadow: 0 0 0 6px transparent; }
}

/* ── ORNAMENTS ── */
.ornament {
    display: block;
    width: 48px;
    height: 2px;
    background: var(--or);
    margin: 1.5rem auto;
}

/* Losange doré */
.ornament-diamond {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--or);
    margin: 1.5rem auto;
    transform: rotate(45deg);
}

/* Double trait fin */
.ornament-double {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    margin: 1.5rem auto;
}
.ornament-double::before,
.ornament-double::after {
    content: '';
    display: block;
    height: 1px;
    background: var(--or);
}

/* Trois points */
.ornament-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 1.5rem auto;
}
.ornament-dots::before,
.ornament-dots::after {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--or);
}
.ornament-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--or);
}

/* Trait long fin */
.ornament-long {
    display: block;
    width: 120px;
    height: 1px;
    background: var(--or);
    margin: 1.5rem auto;
}

/* ── FOOTER ── */
.footer {
    padding: 3.5rem 0 2.5rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-col { font-size: 0.82rem; color: var(--texte-light); }

.footer-logo {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--bordeaux);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--or); }

.footer-tagline {
    font-size: 0.82rem;
    color: var(--texte-light);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.footer-email {
    font-size: 0.82rem;
    color: var(--or);
    text-decoration: none;
    transition: color 0.25s cubic-bezier(0.33, 1, 0.68, 1);
}
.footer-email:hover { color: var(--bordeaux); }

.footer-heading {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--bordeaux);
    margin-bottom: 0.75rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 0.4rem; }

.footer-links a {
    font-size: 0.82rem;
    color: var(--texte-light);
    text-decoration: none;
    transition: color 0.25s cubic-bezier(0.33, 1, 0.68, 1);
}
.footer-links a:hover { color: var(--or); }

.footer-copy {
    font-size: 0.75rem;
    color: var(--texte-light);
    opacity: 0.7;
    margin-top: 1rem;
}

/* ── HAMBURGER MOBILE ── */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    z-index: 1002;
}
.hamburger svg { width: 24px; height: 24px; stroke: var(--bordeaux); }
.hamburger .icon-close { display: none; }
.hamburger.active .icon-menu { display: none; }
.hamburger.active .icon-close { display: block; }

.nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(45, 27, 46, 0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}
.nav-overlay.active {
    opacity: 1;
}

/* ── DOUBLE-BEZEL ── */
.article-cta {
    box-shadow: inset 0 0 0 1px rgba(197, 162, 88, 0.1), 0 12px 40px rgba(45, 27, 46, 0.05);
}

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* ── ORNAMENT REVEAL ── */
.ornament.ornament-reveal {
    width: 0;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.ornament.ornament-reveal.visible {
    width: 48px;
}
.ornament-long.ornament-reveal {
    width: 0;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.ornament-long.ornament-reveal.visible {
    width: 120px;
}
.ornament-double.ornament-reveal {
    width: 0;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.ornament-double.ornament-reveal.visible {
    width: 24px;
}
.ornament-diamond.ornament-reveal {
    opacity: 0;
    transform: scale(0) rotate(45deg);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.ornament-diamond.ornament-reveal.visible {
    opacity: 1;
    transform: scale(1) rotate(45deg);
}
.ornament-dots.ornament-reveal {
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.ornament-dots.ornament-reveal.visible {
    opacity: 1;
}

/* ── BTT HOVER ── */
@media (hover: hover) {
    #btt:hover { transform: translateY(-2px); }
}

/* ── RESPONSIVE GLOBAL ── */
@media (max-width: 600px) {
    .nav-inner { padding: 0 1.25rem; height: 64px; }
    .nav-logo { font-size: 1.05rem; flex-shrink: 0; }

    .hamburger { display: block; }

    .nav-right {
        position: fixed;
        top: 0; right: -280px;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: var(--fond);
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: -4px 0 24px rgba(45, 27, 46, 0.12);
        transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
        overflow-y: auto;
    }
    .nav-right.open { right: 0; }

    .nav-right a {
        font-size: 1rem;
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--border);
        white-space: normal;
    }
    .nav-right a:last-child { border-bottom: none; }

    .nav-back { font-size: 0.95rem; }
    .nav-back svg { width: 14px; height: 14px; display: inline; }
    .nav-link { font-size: 0.95rem; }

    .nav-right .btn-gold,
    .nav-right .btn-primary {
        margin-top: 1rem;
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
        text-align: center;
        border-bottom: none;
    }

    .nav-overlay.active { display: block; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* ══════════════════════════════════════════════════
   TARTEAUCITRON — Thème estimationcave
   ══════════════════════════════════════════════════ */

/* Bandeau principal */
#tarteaucitronRoot #tarteaucitronAlertBig {
    background: var(--bordeaux) !important;
    border-top: 2px solid var(--or) !important;
    font-family: var(--font-body) !important;
    box-shadow: 0 -4px 24px rgba(45, 27, 46, 0.3) !important;
    padding: 0.6rem 2rem !important;
    border-top: 1px solid var(--or) !important;
}

#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert,
#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert strong {
    color: var(--fond) !important;
    font-family: var(--font-body) !important;
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
}

/* Bouton Accepter */
#tarteaucitronRoot #tarteaucitronPersonalize,
#tarteaucitronRoot #tarteaucitronAllAllowed {
    background: var(--or) !important;
    color: var(--bordeaux) !important;
    border: none !important;
    border-radius: 4px !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    font-size: 0.72rem !important;
    padding: 0.3rem 0.8rem !important;
    cursor: pointer !important;
    transition: background 0.25s ease !important;
}

#tarteaucitronRoot #tarteaucitronPersonalize:hover,
#tarteaucitronRoot #tarteaucitronAllAllowed:hover {
    background: var(--or-light) !important;
}

/* Bouton Refuser */
#tarteaucitronRoot #tarteaucitronAllDenied,
#tarteaucitronRoot #tarteaucitronAllDenied2,
#tarteaucitronRoot #tarteaucitronCloseAlert {
    background: rgba(250, 246, 240, 0.15) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(250, 246, 240, 0.5) !important;
    border-radius: 4px !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    font-size: 0.72rem !important;
    padding: 0.3rem 0.8rem !important;
    cursor: pointer !important;
    transition: border-color 0.25s ease, background 0.25s ease !important;
}

#tarteaucitronRoot #tarteaucitronAllDenied:hover,
#tarteaucitronRoot #tarteaucitronCloseAlert:hover {
    border-color: var(--fond) !important;
    color: #fff !important;
}

/* Bouton Personnaliser / En savoir plus */
#tarteaucitronRoot #tarteaucitronClosePanel {
    color: var(--or) !important;
    font-family: var(--font-body) !important;
    font-size: 0.8rem !important;
}

/* Bandeau mobile */
@media (max-width: 600px) {
    #tarteaucitronRoot #tarteaucitronAlertBig {
        padding: 0.6rem 0.75rem !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        text-align: center !important;
    }

    #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert,
    #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert strong {
        font-size: 0.68rem !important;
        text-align: center !important;
        display: block !important;
        margin-bottom: 0.3rem !important;
    }

    #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronPersonalize,
    #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronAllAllowed,
    #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronPersonalize2 {
        font-size: 0.65rem !important;
        padding: 0.25rem 0.7rem !important;
        margin: 0.15rem 0.2rem !important;
        display: inline-block !important;
        width: auto !important;
    }

    #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronAllDenied,
    #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronAllDenied2,
    #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronCloseAlert {
        font-size: 0.65rem !important;
        padding: 0.25rem 0.7rem !important;
        margin: 0.15rem 0.2rem !important;
        display: inline-block !important;
        width: auto !important;
        border: 1px solid rgba(250, 246, 240, 0.5) !important;
        border-radius: 4px !important;
        background: rgba(250, 246, 240, 0.15) !important;
        color: #FFFFFF !important;
        font-weight: 600 !important;
    }

    #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronPrivacyUrl,
    #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronPrivacyUrlDialog,
    #tarteaucitronRoot #tarteaucitronAlertBig a#tarteaucitronPrivacyUrl {
        display: inline !important;
        font-size: 0.6rem !important;
        margin: 0.15rem 0.2rem !important;
        padding: 0 !important;
        width: auto !important;
        white-space: nowrap !important;
    }
}

/* Icône flottante masquée */
#tarteaucitronRoot #tarteaucitronIcon {
    display: none !important;
}

/* Panel détaillé (liste des services) */
#tarteaucitronRoot #tarteaucitron {
    font-family: var(--font-body) !important;
}

#tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronTitle {
    background: var(--bordeaux) !important;
    color: var(--fond) !important;
    border: none !important;
}

#tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronTitle button {
    color: var(--fond) !important;
}

#tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronDetails {
    background: var(--fond) !important;
    color: var(--texte) !important;
}

#tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine {
    background: var(--fond) !important;
    border-color: var(--border) !important;
}

#tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronName {
    color: var(--texte) !important;
    font-family: var(--font-body) !important;
}

/* Boutons Autoriser / Refuser dans le panel */
#tarteaucitronRoot .tarteaucitronAllow {
    background: var(--or) !important;
    color: var(--bordeaux) !important;
    border-radius: 3px !important;
}

#tarteaucitronRoot .tarteaucitronDeny {
    background: rgba(45, 27, 46, 0.15) !important;
    color: var(--texte) !important;
    border-radius: 3px !important;
}

/* Header du panel */
#tarteaucitronRoot #tarteaucitron #tarteaucitronClosePanel {
    background: var(--bordeaux) !important;
    color: var(--or) !important;
}

/* Lien "En savoir plus" */
#tarteaucitronRoot a#tarteaucitronPrivacyUrl {
    color: var(--or) !important;
    text-decoration: underline !important;
}