/* Gabarit commun (template/layout) : FAQ, pages Service et pages d'erreur.
   Reprend le style des pages refondues. Les règles restent ciblées : les contenus
   de ces pages utilisent Tailwind, dont .grid, .card ou nav ne doivent pas être redéfinis. */

:root {
    --elton-blue: #1a73b5;
    --elton-red: #e5003d;
    --elton-secondary: #e7f0f7;
    --elton-dark: #333333;
    --primary-blue: #1a73b5;
    --accent: #e5003d;
    --bg-color: #ffffff;
    --bg-sections: #e7f0f7;
    --text-color: #333333;
    --nav-bg: rgba(26, 115, 181, 0.97);
    --glass-bg: rgba(26, 115, 181, 0.08);
    --glass-border: rgba(26, 115, 181, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body { max-width: 100%; overflow-x: hidden; }

body {
    top: 0 !important;
    color: var(--text-color);
    background: var(--bg-color) url('../bg-waves.svg') repeat-y center top;
    background-size: 100% auto;
    background-attachment: fixed;
}

main { background: #ffffff; }

/* Google Translate : masquer la barre native */
.skiptranslate iframe, .VIpgJd-ZVi9od-ORHb-OEVmcd, .goog-te-gadget { display: none !important; }
#google_translate_element {
    display: none !important; visibility: hidden !important;
    width: 0 !important; height: 0 !important;
    overflow: hidden !important; position: absolute !important;
}

/* Menu */
nav.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    width: 100%;
    overflow: visible;
    border-bottom: 1px solid var(--glass-border);
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
}

.logo img { background: white; border-radius: 8px; padding: 4px 10px; }

.logo { flex-shrink: 0; display: flex; align-items: center; text-decoration: none; }
.logo img { height: 70px; width: auto; }

.nav-links {
    display: flex; align-items: center; gap: 30px;
    list-style: none; margin: 0; padding: 0;
    flex: 1; justify-content: center;
    overflow: visible;
}

#lang-trigger { flex-shrink: 0; position: relative; z-index: 2; }

/* ══════════════════════════════════════════════════
   HAMBURGER
══════════════════════════════════════════════════ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: none; border: none;
    cursor: pointer; padding: 10px;
    border-radius: 10px;
    transition: background 0.2s;
    flex-shrink: 0;
    z-index: 1001;
}
.hamburger:hover { background: rgba(255,255,255,0.08); }
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: white; border-radius: 2px;
    transition: all 0.35s cubic-bezier(.77,0,.175,1);
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════
   MOBILE BREAKPOINT ≤ 1024px
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .nav-links    { display: none !important; }
    .hamburger    { display: flex !important; }
    #lang-trigger { display: none !important; }
    nav.site-nav { height: 68px; padding: 0 16px; overflow: hidden; }
    .logo img { height: 55px; }
}

/* ══════════════════════════════════════════════════
   MOBILE OVERLAY
══════════════════════════════════════════════════ */
.mob-overlay {
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    width: 100%;
    background: var(--elton-blue);
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(.77,0,.175,1);
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 60px;
}
.mob-overlay.open { transform: translateX(0); }

.mob-section { padding: 0 20px; width: 100%; }

.mob-label {
    font-size: 10px; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: rgba(255,255,255,0.22);
    padding: 22px 0 10px; display: block;
    font-family: 'Poppins', sans-serif;
}

.mob-sep { height: 1px; background: rgba(255,255,255,0.06); margin: 6px 20px; flex-shrink: 0; }

.mob-link {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 0; text-decoration: none;
    color: rgba(255,255,255,0.9) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: color 0.2s; cursor: pointer; width: 100%;
}
.mob-link:last-of-type { border-bottom: none; }
.mob-link:active { color: #e5003d !important; }

.mob-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(26,115,181,0.15);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background 0.2s;
}
.mob-link:active .mob-icon { background: rgba(229,0,61,0.15); }
.mob-icon svg {
    width: 17px; height: 17px;
    stroke: rgba(26,115,181,0.9); fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.mob-link:active .mob-icon svg { stroke: #e5003d; }

.mob-text { flex: 1; min-width: 0; }
.mob-name {
    font-size: 15px; font-weight: 600;
    font-family: 'Ubuntu', sans-serif;
    display: block; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mob-hint {
    font-size: 11px; color: rgba(255,255,255,0.3);
    margin-top: 2px; display: block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.mob-chevron {
    width: 15px; height: 15px; flex-shrink: 0;
    stroke: rgba(255,255,255,0.2); fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    transition: transform 0.25s ease;
}

.mob-badge {
    font-size: 10px; font-weight: 700; padding: 3px 8px;
    border-radius: 20px; letter-spacing: 0.5px;
    background: rgba(229,0,61,0.2); color: #ff6b8a;
    flex-shrink: 0; white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

.mob-expandable { flex-direction: column; align-items: stretch; padding: 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mob-expand-header { display: flex; align-items: center; gap: 14px; padding: 12px 0; cursor: pointer; width: 100%; }
.mob-expandable.active .mob-chevron { transform: rotate(90deg); }

.mob-sub-list { padding: 4px 0 10px 52px; display: none; width: 100%; }
.mob-sub-list.open { display: block; }
.mob-sub {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 0; text-decoration: none;
    color: rgba(255,255,255,0.4) !important;
    font-size: 13.5px; font-weight: 500;
    font-family: 'Poppins', sans-serif;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: color 0.2s; width: 100%;
}
.mob-sub:last-child { border-bottom: none; }
.mob-sub::before {
    content: ''; width: 5px; height: 5px; border-radius: 50%;
    background: rgba(26,115,181,0.5); flex-shrink: 0; transition: background 0.2s;
}
.mob-sub:active { color: #e5003d !important; }
.mob-sub:active::before { background: #e5003d; }

.mob-lang-row { display: flex; gap: 10px; padding: 12px 0 4px; width: 100%; }
.mob-lang-btn {
    flex: 1; padding: 12px 8px; border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.5);
    font-family: 'Poppins', sans-serif;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all 0.2s; text-align: center;
}
.mob-lang-btn:hover { border-color: rgba(26,115,181,0.5); color: white; }
.mob-lang-btn.active { background: #1a73b5; border-color: #1a73b5; color: white; }

.mob-cta-block { padding: 16px 20px; width: 100%; }
.mob-cta {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: #e5003d; color: white !important; border-radius: 12px;
    padding: 15px; text-decoration: none; font-weight: 700;
    font-size: 14px; letter-spacing: 0.5px; transition: background 0.2s;
    font-family: 'Ubuntu', sans-serif; width: 100%;
}
.mob-cta:active { background: #c40035; }
.mob-cta svg { width: 18px; height: 18px; stroke: white; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--elton-red);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    width: 200px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    color: var(--primary-blue);
    text-decoration: none;
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #eee;
}

.dropdown a:last-child {
    border-bottom: none;
}

.dropdown a:hover {
    color: var(--elton-red);
    padding-left: 5px;
}

.btn-client {
    background: var(--elton-red);
    color: #ffffff !important;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.btn-client:hover {
    transform: translateY(-2px);
    background: #c90036;
    box-shadow: 0 6px 20px rgba(229, 0, 61, 0.35);
}

/* Pied de page */
#footer p { font-family: 'Poppins', sans-serif; text-align: justify; }
.social-icons a:hover { background: var(--elton-red) !important; color: white !important; transform: translateY(-5px); }
.footer-link-item:hover { color: var(--elton-blue) !important; transform: translateX(5px); }
.hover-scale:hover { background: white !important; color: var(--elton-red) !important; transform: scale(1.05); }

/* Titres et apparition au défilement */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--elton-red);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active { opacity: 1; transform: translateY(0); }

/* Cartes du bloc Assistance */
#assistance .card {
    backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

#assistance .card:hover {
    transform: translateY(-8px);
    border-color: var(--elton-blue);
    box-shadow: 0 12px 30px rgba(26, 115, 181, 0.15);
}

#assistance .card a svg { display: inline-block; vertical-align: middle; }

/* Questions fréquentes */
#faq details { transition: transform 0.3s; }
#faq details:hover { transform: translateX(5px); }
#faq summary { cursor: pointer; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary svg { flex-shrink: 0; transition: transform 0.3s; }
#faq details[open] summary svg { transform: rotate(180deg); }

/* Adaptation aux écrans */
@media (max-width: 1024px) {
    nav.site-nav > a.hover-scale { display: none !important; }
}

@media (max-width: 968px) {
    #faq, #assistance { padding: 60px 5% !important; }
    #assistance .grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
    nav.site-nav { height: 70px; padding: 0 4%; }
    .logo img { height: 44px; }
    .footer-grid { grid-template-columns: 1fr !important; }
    .footer-bottom-bar { flex-direction: column !important; gap: 15px !important; text-align: center !important; }
    .section-title { font-size: 1.8rem; }
    #assistance .grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.4rem !important; }
    #faq, #assistance { padding: 40px 4% !important; }
}
