/* ══ VARIABLES — identiques à l'index ══ */
:root {
    --primary-dark:  #0a1929;
    --primary-blue:  #1e3a5f;
    --accent-blue:   #2196F3;
    --light-blue:    #4FC3F7;
    --text-dark:     #1a1a1a;
    --text-light:    #666666;
    --bg-light:      #f5f7fa;
    --bg-white:      #ffffff;
    --border-light:  #e0e6ed;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* ══ HEADER ══ */
.header {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
}

.header-container {
    max-width: 1400px; margin: 0 auto;
    padding: 1rem 3rem;
    display: flex; justify-content: space-between; align-items: center;
}

.nav-menu {
    display: flex; gap: 3rem; list-style: none; align-items: center;
}

.nav-menu a {
    color: var(--text-dark); text-decoration: none;
    font-weight: 500; font-size: .95rem; transition: color .3s;
}

.nav-menu a:hover { color: var(--accent-blue); }

.lang-switcher {
    display: flex; gap: .3rem;
    margin-left: 2rem; padding-left: 2rem;
    border-left: 1px solid var(--border-light);
}

.lang-btn {
    padding: .4rem .9rem; border: 1px solid var(--border-light);
    background: transparent; cursor: pointer; font-weight: 600;
    font-size: .85rem; border-radius: 4px; color: var(--text-light);
    font-family: 'Montserrat', sans-serif; transition: all .3s;
}

.lang-btn.active {
    background: var(--accent-blue); color: white; border-color: var(--accent-blue);
}

/* ══ PAGE HERO ══ */
.page-hero {
    margin-top: 73px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 60%, #0d3060 100%);
    padding: 5rem 3rem 4rem;
    position: relative; overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 85% 40%, rgba(33,150,243,.18) 0%, transparent 45%),
        radial-gradient(circle at 10% 70%, rgba(79,195,247,.10) 0%, transparent 40%);
    pointer-events: none;
}

.page-hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }

.breadcrumb {
    display: flex; gap: .5rem; align-items: center;
    margin-bottom: 1.5rem; flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255,255,255,.6); text-decoration: none;
    font-size: .88rem; transition: color .2s;
}

.breadcrumb a:hover { color: var(--light-blue); }
.breadcrumb span { color: rgba(255,255,255,.35); font-size: .88rem; }

.page-hero h1 {
    font-size: 2.6rem; color: white;
    margin-bottom: 1rem; line-height: 1.2;
}

.page-hero-subtitle {
    font-size: 1.05rem; color: rgba(255,255,255,.82);
    max-width: 660px; line-height: 1.85; margin-bottom: .8rem;
}

.page-hero-date {
    font-size: .82rem; color: rgba(255,255,255,.45);
    font-family: 'Montserrat', sans-serif; margin-top: .5rem;
}

/* ══ CONTENU PRINCIPAL ══ */
.policy-main {
    padding: 4rem 3rem 6rem;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* ══ SECTIONS ══ */
.policy-section {}

.policy-section h2 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--accent-blue);
    display: inline-block;
}

/* ══ CARTES ══ */
.policy-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.8rem 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.policy-card h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: .8rem;
}

.policy-card p {
    font-size: .95rem;
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: .8rem;
}

.policy-card p:last-child { margin-bottom: 0; }

.policy-card-cta {
    background: linear-gradient(135deg, rgba(33,150,243,.06), rgba(79,195,247,.04));
    border-color: rgba(33,150,243,.25);
}

.policy-card-cta a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.policy-card-cta a:hover { text-decoration: underline; }

/* ══ LISTE ══ */
.policy-list {
    list-style: none;
    margin: .8rem 0 1rem;
}

.policy-list li {
    font-size: .93rem;
    color: var(--text-dark);
    padding: .4rem 0 .4rem 1.4rem;
    position: relative;
    border-bottom: 1px dashed var(--border-light);
}

.policy-list li:last-child { border-bottom: none; }

.policy-list li::before {
    content: '→';
    position: absolute; left: 0;
    color: var(--accent-blue); font-weight: 700;
}

/* ══ TABLEAU ══ */
.policy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    margin-top: .5rem;
}

.policy-table th {
    background: var(--primary-dark);
    color: white;
    padding: .65rem 1rem;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.policy-table td {
    padding: .65rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
    vertical-align: middle;
}

.policy-table tr:nth-child(even) td { background: var(--bg-light); }
.policy-table tr:hover td { background: rgba(33,150,243,.04); }

.policy-table a {
    color: var(--accent-blue); text-decoration: none;
}

.policy-table a:hover { text-decoration: underline; }

.policy-table code {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: .15rem .45rem;
    font-size: .82rem;
    color: var(--primary-dark);
}

/* ══ BADGE BASE LÉGALE ══ */
.policy-base { margin-top: 1rem; }

.policy-badge {
    display: inline-block;
    background: rgba(33,150,243,.1);
    border: 1px solid rgba(33,150,243,.3);
    color: var(--primary-blue);
    padding: .3rem .85rem;
    border-radius: 20px;
    font-size: .78rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* ══ EMPHASE ══ */
.policy-emphasis {
    background: rgba(33,150,243,.06);
    border-left: 3px solid var(--accent-blue);
    border-radius: 0 8px 8px 0;
    padding: .9rem 1.2rem;
    font-size: .92rem !important;
    color: var(--primary-dark) !important;
    font-weight: 600;
    margin-top: 1rem;
}

/* ══ GRILLE DES DROITS ══ */
.policy-rights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.policy-right-item {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    transition: box-shadow .2s;
}

.policy-right-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.07);
}

.policy-right-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }

.policy-right-item strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: .9rem;
    color: var(--primary-dark);
    margin-bottom: .3rem;
}

.policy-right-item p {
    margin: 0 !important;
    font-size: .83rem !important;
    color: var(--text-light) !important;
    line-height: 1.55 !important;
}

/* ══ CTA CONTACT DROITS ══ */
.policy-contact-rights {
    margin-top: 1.2rem;
    padding: 1rem 1.4rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--accent-blue);
}

.policy-contact-rights p {
    font-size: .93rem !important;
    color: var(--text-dark) !important;
}

.policy-contact-rights a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.policy-contact-rights a:hover { text-decoration: underline; }

/* ══ FOOTER ══ */
.footer {
    background:
        linear-gradient(rgba(10,25,41,.92), rgba(10,25,41,.95)),
        url("images/footer_img.png");
    background-position: center, bottom center;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
    color: white;
    padding: 5rem 3rem 2rem;
}

.footer-container { max-width: 1400px; margin: 0 auto; }

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand p { color: rgba(255,255,255,.7); line-height: 1.8; }
.footer-section h4 { font-size: 1.1rem; margin-bottom: 1.5rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .8rem; }
.footer-links a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--accent-blue); }

.footer-bottom {
    display: flex; align-items: center;
    padding-top: 2rem;
    color: rgba(255,255,255,.5);
    font-size: .88rem;
}

/* ══ LANGUE HELPERS — en dernière position avant @media ══ */
.lang-content        { display: none; }
.lang-content.active { display: block; }
.lang-inline         { display: none; }
.lang-inline.active  { display: inline; }

/* ── Surcharges spécificité ─────────────────────────────────────────────────
   Ces sélecteurs ont une spécificité > (0,1,0) et écrasent .lang-content.
   On doit les forcer explicitement pour les éléments actifs.
   ─────────────────────────────────────────────────────────────────────────── */

/* .policy-section h2 = (0,1,1) > (0,1,0) */
.policy-section h2.lang-content          { display: none; }
.policy-section h2.lang-content.active   { display: inline-block; }

/* h3 dans .policy-card = (0,1,1) */
.policy-card h3.lang-content             { display: none; }
.policy-card h3.lang-content.active      { display: block; }

/* .policy-right-item strong = (0,1,1) */
.policy-right-item strong.lang-content        { display: none; }
.policy-right-item strong.lang-content.active { display: block; }

/* .policy-right-item p = (0,1,1) */
.policy-right-item p.lang-content        { display: none; }
.policy-right-item p.lang-content.active { display: block; }

/* Surcharges inline-block / inline / table-cell */
.policy-badge.lang-content.active          { display: inline-block; }
.breadcrumb a.lang-content.active          { display: inline; }
.policy-table th.lang-content.active       { display: table-cell; }
.policy-table td.lang-content.active       { display: table-cell; }

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
    .policy-rights-grid { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .page-hero h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .policy-main { padding: 3rem 1.5rem 4rem; }
    .policy-table { font-size: .78rem; }
    .policy-table th, .policy-table td { padding: .5rem .7rem; }
    .footer-main { grid-template-columns: 1fr; gap: 2rem; }
}
