/* ============================================================
   PAGES LÉGALES & INFORMATIONS — L'as du goût
   ============================================================
   Styles pour :
     - Mentions légales
     - Politique de confidentialité
     - Informations complémentaires
   ============================================================ */


/* ============================================================
   HERO — En-tête éditorial des pages légales
   ============================================================
   Design volontairement différent du .section-header-specialite
   (cartes catalogue). Style éditorial épuré, typographique.
   ============================================================ */

.legal-hero {
    text-align: center;
    padding: 50px 30px 40px;
    margin-bottom: 20px;
    position: relative;
    animation: legalFadeIn 0.8s ease-out;
}

/* ── Ligne fine dorée en haut ── */
.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(212, 175, 55, 0.15) 15%,
        rgba(212, 175, 55, 0.5) 50%,
        rgba(212, 175, 55, 0.15) 85%,
        transparent
    );
}

/* ── Ligne fine dorée en bas ── */
.legal-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(212, 175, 55, 0.15) 15%,
        rgba(212, 175, 55, 0.5) 50%,
        rgba(212, 175, 55, 0.15) 85%,
        transparent
    );
}

/* ── Titre principal ── */
.legal-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-texte-principal);
    margin: 0 0 6px;
    line-height: 1.2;
}

/* Aucune ligne dorée auto-générée par main.css */
.legal-hero h1::after {
    display: none;
}

/* ── Ornement fleuron décoratif ── */
.legal-hero-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 18px auto 20px;
    max-width: 280px;
}

.legal-hero-ornament .ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4));
}

.legal-hero-ornament .ornament-line:last-child {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.4), transparent);
}

.legal-hero-ornament .ornament-diamond {
    width: 8px;
    height: 8px;
    background: var(--c-or-vif);
    transform: rotate(45deg);
    flex-shrink: 0;
    opacity: 0.7;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

/* ── Sous-titre ── */
.legal-hero p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--c-or-doux);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
    opacity: 0.85;
}


/* ── Responsive legal-hero ── */
@media (max-width: 768px) {
    .legal-hero {
        padding: 35px 20px 30px;
        margin-bottom: 14px;
    }

    .legal-hero h1 {
        font-size: 1.8rem;
        letter-spacing: 0.12em;
    }

    .legal-hero p {
        font-size: 0.95rem;
    }

    .legal-hero-ornament {
        max-width: 200px;
        gap: 12px;
        margin: 14px auto 16px;
    }

    .legal-hero-ornament .ornament-diamond {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    .legal-hero {
        padding: 28px 16px 24px;
    }

    .legal-hero h1 {
        font-size: 1.45rem;
        letter-spacing: 0.08em;
    }

    .legal-hero p {
        font-size: 0.88rem;
    }
}


/* ── Conteneur principal de la page légale ── */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 0;
}

/* ── Bandeau d'alerte "En cours de rédaction" ── */
.legal-notice-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.03));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-left: 4px solid var(--c-or-vif);
    border-radius: 16px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: apparitionHaut 0.8s ease-out;
}

.legal-notice-banner .notice-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.12);
    border-radius: 12px;
    color: var(--c-or-vif);
}

.legal-notice-banner .notice-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--c-or-vif);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legal-notice-banner p {
    margin: 0;
    color: var(--c-or-doux);
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.6;
}


/* ── Section individuelle (chaque article de loi) ── */
.legal-section {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.7), rgba(18, 18, 18, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    padding: 32px 36px;
    margin-bottom: 24px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
    animation: legalFadeIn 0.6s ease-out backwards;
}

/* Décalage progressif de l'animation */
.legal-section:nth-child(1)  { animation-delay: 0.05s; }
.legal-section:nth-child(2)  { animation-delay: 0.1s; }
.legal-section:nth-child(3)  { animation-delay: 0.15s; }
.legal-section:nth-child(4)  { animation-delay: 0.2s; }
.legal-section:nth-child(5)  { animation-delay: 0.25s; }
.legal-section:nth-child(6)  { animation-delay: 0.3s; }
.legal-section:nth-child(7)  { animation-delay: 0.35s; }
.legal-section:nth-child(8)  { animation-delay: 0.4s; }
.legal-section:nth-child(9)  { animation-delay: 0.45s; }
.legal-section:nth-child(10) { animation-delay: 0.5s; }

/* Reflet doré subtil en haut à gauche */
.legal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.06), transparent 70%);
    pointer-events: none;
}

.legal-section:hover {
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.04);
    transform: translateY(-2px);
}


/* ── Titre de section légale ── */
.legal-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.legal-section-title .section-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.legal-section:hover .section-icon {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.1));
    transform: scale(1.05);
}

.legal-section-title .section-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--c-or-vif);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legal-section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    background: linear-gradient(135deg, var(--c-or-doux), var(--c-or-vif));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.3;
}

/* Override du margin-bottom global de h2 dans main.css */
.legal-section-title h2::after {
    display: none;
}


/* ── Contenu textuel des sections légales ── */
.legal-section-content {
    color: var(--c-texte-secondaire);
    font-size: 0.95rem;
    line-height: 1.85;
}

.legal-section-content p {
    margin-bottom: 14px;
    font-size: inherit;
    max-width: 100%;
}

.legal-section-content p:last-child {
    margin-bottom: 0;
}

.legal-section-content strong {
    color: var(--c-texte-principal);
    font-weight: 600;
}

.legal-section-content em.placeholder {
    color: var(--c-or-doux);
    font-style: italic;
}

.legal-section-content a {
    color: var(--c-or-doux);
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 198, 120, 0.3);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.legal-section-content a:hover {
    color: var(--c-or-vif);
    border-bottom-color: var(--c-or-vif);
}

/* ── Cartes d'établissements (siège + établissements secondaires) ── */
.legal-etablissements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 20px 0 16px;
}

.legal-etab-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 16px 18px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.legal-etab-card:hover {
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.04);
}

.legal-etab-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: var(--c-or-vif);
    margin: 0 0 8px;
    font-weight: 600;
}

.legal-etab-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
    color: var(--c-texte-secondaire);
}

.legal-etab-card p em {
    color: var(--c-or-doux);
}


/* ── Ligne de métadonnée (date de mise à jour) ── */
.legal-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--c-texte-secondaire);
    font-size: 0.85rem;
    opacity: 0.65;
}

.legal-meta svg {
    width: 16px;
    height: 16px;
    stroke: var(--c-texte-secondaire);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ── Grille d'informations complémentaires ── */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.info-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.7), rgba(18, 18, 18, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    padding: 32px 28px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
    animation: legalFadeIn 0.6s ease-out backwards;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.06), transparent 70%);
    pointer-events: none;
}

.info-card:hover {
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.04);
    transform: translateY(-4px);
}

.info-card:nth-child(1) { animation-delay: 0.05s; }
.info-card:nth-child(2) { animation-delay: 0.1s; }
.info-card:nth-child(3) { animation-delay: 0.15s; }
.info-card:nth-child(4) { animation-delay: 0.2s; }
.info-card:nth-child(5) { animation-delay: 0.25s; }
.info-card:nth-child(6) { animation-delay: 0.3s; }
.info-card:nth-child(7) { animation-delay: 0.35s; }
.info-card:nth-child(8) { animation-delay: 0.4s; }

/* La dernière carte s'étend si le nombre de cartes est impair */
.info-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.info-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 14px;
    margin-bottom: 20px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.info-card:hover .info-card-icon {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.1));
    transform: scale(1.08);
}

.info-card-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--c-or-vif);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--c-or-doux);
    margin-bottom: 12px;
    line-height: 1.3;
}

.info-card p {
    color: var(--c-texte-secondaire);
    font-size: 0.92rem;
    line-height: 1.75;
    margin: 0;
}

.info-card a {
    color: var(--c-or-doux);
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 198, 120, 0.3);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.info-card a:hover {
    color: var(--c-or-vif);
    border-bottom-color: var(--c-or-vif);
}

/* ── Carte pleine largeur ── */
.info-card.full-width {
    grid-column: 1 / -1;
}


/* ── Navigation rapide (sommaire) ── */
.legal-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
    animation: legalFadeIn 0.5s ease-out;
}

.legal-toc a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.82rem;
    color: var(--c-texte-secondaire);
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.legal-toc a:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--c-or-doux);
    transform: translateY(-1px);
}

.legal-toc a .toc-num {
    font-weight: 700;
    color: var(--c-or-vif);
    font-size: 0.78rem;
}


/* ── Animation d'apparition ── */
@keyframes legalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   RESPONSIVE — Pages légales
   ============================================================ */

@media (max-width: 768px) {
    .legal-container {
        padding-bottom: 0;
    }

    .legal-section {
        padding: 24px 22px;
        border-radius: 16px;
        margin-bottom: 18px;
    }

    .legal-section-title {
        gap: 12px;
        margin-bottom: 14px;
    }

    .legal-section-title .section-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .legal-section-title .section-icon svg {
        width: 18px;
        height: 18px;
    }

    .legal-section-title h2 {
        font-size: 1.15rem !important;
    }

    .legal-section-content {
        font-size: 0.9rem;
    }

    .legal-notice-banner {
        padding: 16px 20px;
        gap: 14px;
        border-radius: 14px;
        margin-bottom: 28px;
    }

    .legal-notice-banner .notice-icon {
        width: 36px;
        height: 36px;
    }

    .legal-notice-banner p {
        font-size: 0.88rem;
    }

    .legal-toc {
        gap: 8px;
        margin-bottom: 28px;
    }

    .legal-toc a {
        padding: 7px 14px;
        font-size: 0.78rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .info-card {
        padding: 24px 22px;
        border-radius: 16px;
    }

    .info-card-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .legal-section {
        padding: 20px 18px;
        border-radius: 14px;
    }

    .legal-section-title h2 {
        font-size: 1.05rem !important;
    }

    .legal-notice-banner {
        flex-direction: column;
        text-align: center;
        padding: 18px 16px;
    }

    .legal-toc {
        justify-content: center;
    }

    .info-card {
        padding: 22px 18px;
    }

    .info-card h3 {
        font-size: 1.05rem;
    }
}

/* ── Texte justifié (comme dans Word) : infos complémentaires,
   mentions légales, politique de confidentialité. ── */
.legal-section-content p,
.legal-section-content li,
.info-card p {
    text-align: justify;
}
