/* ============================================================
   NIVANO — components.css
   Composants partagés (présents sur ≥ 3 pages) :
   logo, nav, boutons, hero-court, tl;dr, section-intro,
   faq, cta-final, footer, fr-stamp, badge-new.
   ============================================================ */

/* ==== LOGO SVG ==== */
.logo-svg { height: 32px; width: auto; display: block; transition: opacity 0.2s; }
.logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.logo-link:hover .logo-svg { opacity: 0.85; }
.logo-svg-dark .wordmark { fill: var(--creme); }

/* ==== BADGE NEW ==== */
.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--rose-fonce);
    color: white;
    border-radius: 100px;
    font-family: 'Onest', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    vertical-align: middle;
    margin-left: 8px;
}

/* ==== NAVIGATION ==== */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 252, 247, 0.60);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid var(--ligne);
}
.nav-inner { max-width: 1320px; margin: 0 auto; padding: 18px 36px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; }
.nav-links { display: flex; gap: 40px; align-items: center; }

/* ==== DRAPEAU FRANÇAIS (fil rouge nav + footer) ==== */
.flag-fr { display: inline-flex; align-items: center; margin-left: 12px; }
.flag-fr svg {
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 0 0.5px rgba(26, 22, 20, 0.06);
}
.fr-stamp .flag-fr { margin-left: 0; margin-right: 8px; }
.fr-stamp .flag-fr svg { width: 18px; height: 12px; box-shadow: 0 0 0 0.5px rgba(246, 240, 230, 0.18); }
.nav-text-link { color: var(--noir); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-text-link.is-current { color: var(--rose-fonce); }
.nav-text-link::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--rose-fonce); transition: width 0.3s; }
.nav-text-link.is-current::after { width: 100%; }
.nav-text-link:hover::after { width: 100%; }
.nav-text-link:hover { color: var(--rose-fonce); }

/* ==== BUTTONS ==== */
.btn {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 13px 24px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    white-space: nowrap;
}
.btn-primary { background: var(--noir); color: var(--creme); }
.btn-primary:hover { background: var(--rose-fonce); color: white; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--noir); border: 1.5px solid var(--noir); }
.btn-ghost:hover { background: var(--noir); color: var(--creme); }
.btn-large { padding: 17px 32px; font-size: 15px; }
.btn-cream { background: var(--creme); color: var(--noir); }
.btn-cream:hover { background: white; transform: translateY(-1px); }

/* ==== HERO COURT ==== */
.hero-court {
    padding: 80px 36px 40px;
    max-width: 1320px;
    margin: 0 auto;
    position: relative;
}
.hero-court-inner { max-width: 920px; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 48px;
    color: var(--gris);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.hero-eyebrow .num { font-family: 'Onest', sans-serif; font-weight: 600; color: var(--rose-fonce); }
.hero-eyebrow .sep { width: 24px; height: 1px; background: var(--noir); opacity: 0.3; }

.hero-court h1 {
    font-size: clamp(44px, 6vw, 80px);
    font-weight: 500;
    line-height: 0.96;
    color: var(--noir);
    letter-spacing: -0.035em;
    margin-bottom: 36px;
}
.hero-court h1 .line { display: block; overflow: hidden; }
.hero-court h1 .line span {
    display: block;
    opacity: 0;
    transform: translateY(100%);
    animation: revealUp 0.9s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.hero-court h1 .line:nth-child(1) span { animation-delay: 0.1s; }
.hero-court h1 .line:nth-child(2) span {
    animation-delay: 0.22s;
    font-family: 'Familjen Grotesk', sans-serif;
    font-style: italic;
    color: var(--rose-fonce);
    font-weight: 500;
}
.hero-court h1 em {
    font-family: 'Familjen Grotesk', sans-serif;
    font-style: italic;
    font-weight: 500;
    color: var(--rose-fonce);
}

@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    to { opacity: 1; }
}

.hero-court-tagline {
    font-size: 20px;
    color: var(--gris);
    max-width: 720px;
    margin-bottom: 40px;
    line-height: 1.5;
    font-weight: 400;
    opacity: 0;
    animation: fadeIn 0.8s 0.5s forwards;
}
.hero-court-tagline strong { color: var(--noir); font-weight: 600; }

.hero-court-cta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 0.8s 0.7s forwards;
}
.hero-court-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 28px;
    font-size: 13px;
    color: var(--gris);
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 0.8s 0.85s forwards;
}
.hero-court-meta .dot { width: 4px; height: 4px; background: var(--rose-fonce); border-radius: 50%; display: inline-block; }

/* ==== TL;DR ==== */
.tldr { max-width: 1320px; margin: 40px auto 0; padding: 0 36px 80px; }
.tldr-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    padding: 32px 36px;
    background: var(--creme-clair);
    border: 1px solid var(--ligne);
    border-left: 3px solid var(--rose-fonce);
    border-radius: 14px;
    align-items: start;
}
.tldr-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--rose-fonce);
    padding-top: 4px;
}
.tldr-label::before { content: '№ '; opacity: 0.6; }
.tldr-text { font-size: 16px; color: var(--noir-doux); line-height: 1.65; }
.tldr-text strong { color: var(--noir); font-weight: 600; }
.tldr-text em {
    font-family: 'Familjen Grotesk', sans-serif;
    font-style: italic;
    color: var(--rose-fonce);
    font-weight: 500;
}

/* ==== SECTION INTRO COMMON ==== */
.section-intro-block {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    margin-bottom: 80px;
    align-items: end;
}
.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gris);
}
.section-eyebrow .marker { display: inline-block; width: 28px; height: 1px; background: var(--rose-fonce); }
.section-num {
    font-family: 'Onest', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--rose-fonce);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}
.section-title-big {
    font-size: clamp(38px, 5.5vw, 64px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.035em;
    color: var(--noir);
}
.section-intro-text { font-size: 18px; color: var(--gris); line-height: 1.55; max-width: 520px; }

/* ==== FAQ ==== */
.faq-section { padding: 120px 36px; max-width: 1320px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; margin-top: 40px; }
.faq-item { border-top: 1px solid var(--ligne); transition: padding 0.3s; }
.faq-item:last-child { border-bottom: 1px solid var(--ligne); }
.faq-item details { padding: 32px 0; }
.faq-item details[open] summary .faq-icon { transform: rotate(45deg); }
.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    cursor: pointer;
    list-style: none;
    font-family: 'Onest', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--noir);
    letter-spacing: -0.02em;
    line-height: 1.3;
    transition: color 0.2s;
}
.faq-item summary:hover { color: var(--rose-fonce); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
    font-family: 'Onest', sans-serif;
    font-size: 26px;
    font-weight: 300;
    color: var(--rose-fonce);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
    flex-shrink: 0;
    line-height: 1;
}
.faq-answer { padding-top: 20px; max-width: 800px; font-size: 16px; color: var(--gris); line-height: 1.7; }
.faq-answer strong { color: var(--noir); font-weight: 600; }
.faq-answer em {
    font-family: 'Familjen Grotesk', sans-serif;
    font-style: italic;
    color: var(--rose-fonce);
    font-weight: 500;
}

/* ==== CTA FINAL ==== */
.cta-final { background: var(--rose-pale); padding: 140px 36px; position: relative; overflow: hidden; }
.cta-final::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: var(--rose-fonce);
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(40px);
}
.cta-final::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: var(--rose);
    border-radius: 50%;
    opacity: 0.18;
    filter: blur(60px);
}
.cta-inner { max-width: 1100px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--rose-fonce);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 32px;
    font-weight: 600;
}
.cta-eyebrow::before,
.cta-eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--rose-fonce); }
.cta-title {
    font-size: clamp(48px, 6vw, 88px);
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: -0.04em;
    color: var(--noir);
    margin-bottom: 36px;
}
.cta-title em {
    font-family: 'Familjen Grotesk', sans-serif;
    font-style: italic;
    color: var(--rose-fonce);
    font-weight: 500;
}
.cta-subtitle {
    font-size: 20px;
    color: var(--noir-doux);
    line-height: 1.5;
    max-width: 640px;
    margin: 0 auto 48px;
    opacity: 0.75;
}
.cta-btn-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.cta-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    color: var(--noir-doux);
    flex-wrap: wrap;
}
.cta-meta strong { font-weight: 600; color: var(--noir); }
.cta-meta .price-tag {
    font-family: 'Onest', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--noir);
}
.cta-meta .price-tag em {
    font-family: 'Familjen Grotesk', sans-serif;
    font-style: italic;
    color: var(--rose-fonce);
    font-weight: 500;
}
.cta-meta .dot-sep { display: inline-block; width: 4px; height: 4px; background: var(--rose-fonce); border-radius: 50%; }

/* ==== FOOTER ==== */
footer { background: var(--noir); color: var(--creme); padding: 100px 36px 40px; }
.footer-inner { max-width: 1320px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 80px; margin-bottom: 80px; }
.footer-brand p { margin-top: 24px; font-size: 14px; color: rgba(246, 240, 230, 0.55); line-height: 1.6; max-width: 320px; }
.footer-col h5 {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--rose);
    margin-bottom: 20px;
    font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(246, 240, 230, 0.7); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--rose); }
.footer-col a.is-current { color: var(--rose); }
/* Ligne 1 — copyright + drapeau FR */
.footer-legal-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 28px;
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 24px;
    flex-wrap: wrap;
}
.footer-copyright { font-size: 14px; color: var(--gris-clair); }
.footer-copyright a {
    color: var(--creme);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.2s ease;
}
.footer-copyright a:hover { border-bottom-color: var(--rose); }

/* Ligne 2 — liens légaux + date */
.footer-legal-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    font-size: 13px;
    color: var(--gris-clair);
}
.footer-legal-top a {
    color: var(--gris-clair);
    text-decoration: none;
    background: none;
    padding: 0;
    transition: color 0.2s ease;
}
.footer-legal-top a:hover { color: var(--creme); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal-sep { color: var(--gris-clair); opacity: 0.5; user-select: none; }
.footer-update { color: var(--gris-clair); }

@media (max-width: 640px) {
    .footer-legal-top { flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer-legal-bottom { justify-content: flex-start; gap: 8px; font-size: 12px; }
}
.fr-stamp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border: 1px solid rgba(246, 240, 230, 0.15);
    border-radius: 100px;
    font-family: 'Onest', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(246, 240, 230, 0.6);
}

/* ==== RESPONSIVE COMMUN ==== */
@media (max-width: 1024px) {
    .section-intro-block { grid-template-columns: 1fr; gap: 48px; }
    .tldr-card { grid-template-columns: 1fr; gap: 16px; padding: 24px 28px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .nav-links .nav-text-link { display: none; }
    .hero-court { padding: 56px 24px 32px; }
    .tldr,
    .faq-section,
    .cta-final { padding-left: 24px; padding-right: 24px; }
    .faq-item summary { font-size: 18px; gap: 24px; }
    .footer-top { grid-template-columns: 1fr; gap: 48px; }
}
