/* ========================================
   LAYOUT — Header, Hero, Stats, Sections, Plan, Footer
   ======================================== */

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--speed) var(--ease);
    border-bottom: 1px solid transparent;
}
.header.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 10, 0.92);
    border-bottom: 1px solid var(--border);
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.logo-link { display: flex; align-items: center; gap: 14px; }
.logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: brightness(1.1);
    transition: transform var(--speed) var(--ease);
}
.logo-link:hover .logo { transform: rotate(-5deg) scale(1.05); }
.logo-text {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--white);
}

/* NAV */
.nav-list { display: flex; gap: 8px; align-items: center; }
.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 16px;
    color: var(--text);
    position: relative;
    white-space: nowrap;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%;
    width: 0; height: 1px;
    background: var(--wood-light);
    transform: translateX(-50%);
    transition: width var(--speed) var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 50%; }

.nav-app {
    border: 1px solid var(--steel-dark);
    border-radius: 2px;
    padding: 10px 18px !important;
    color: var(--steel) !important;
    transition: all var(--speed) var(--ease);
}
.nav-app::after { display: none; }
.nav-app:hover { border-color: var(--wood-light); color: var(--wood-light) !important; }

.nav-cta {
    background: var(--wood-light);
    color: var(--black) !important;
    border-radius: 2px;
    padding: 10px 22px !important;
    font-weight: 600;
    transition: all var(--speed) var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--white); transform: translateY(-2px); }

/* BURGER */
.burger {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 110;
}
.burger span {
    display: block;
    width: 28px; height: 2px;
    background: var(--white);
    transition: all var(--speed) var(--ease);
    transform-origin: center;
}
.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 80px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    animation: heroZoom 20s ease-in-out infinite alternate;
    filter: grayscale(0.3) brightness(0.45);
    will-change: transform;
}
@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10,10,10,0.65) 0%, rgba(10,10,10,0.4) 50%, var(--black) 100%),
        radial-gradient(ellipse at center, transparent 30%, rgba(10,10,10,0.7) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}
.hero-logo {
    width: 200px;
    margin: 0 auto 32px;
    filter: drop-shadow(0 10px 40px rgba(0,0,0,0.8)) brightness(1.1);
    animation: fadeInDown 1s var(--ease) 0.3s both;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(44px, 9vw, 120px);
    line-height: 0.95;
    letter-spacing: 4px;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.8);
    animation: fadeInUp 1s var(--ease) 0.5s both;
}
.hero-slogan {
    font-family: var(--font-heading);
    font-size: clamp(16px, 2.4vw, 22px);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--wood-light);
    margin-bottom: 22px;
    animation: fadeInUp 1s var(--ease) 0.6s both;
}
.hero-subtitle {
    font-size: clamp(15px, 1.6vw, 19px);
    color: var(--text);
    max-width: 660px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 1s var(--ease) 0.7s both;
}
/* (Le bandeau de réassurance .hero-trust est défini dans sections.css) */
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s var(--ease) 0.9s both;
}
/* Indicateur « SCROLL » : placé DANS le flux, sous les boutons, avec une marge
   garantie → il ne peut JAMAIS chevaucher .hero-actions (plus de position
   absolue qui se superposait au contenu sur certaines hauteurs d'écran).
   Réduit en taille et masqué lorsque la hauteur d'écran est insuffisante. */
.hero-scroll {
    margin: 56px auto 0;
    text-align: center;
    pointer-events: none;       /* ne capte aucun clic destiné aux boutons */
    animation: fadeIn 2s var(--ease) 1.5s both;
}
.hero-scroll span {
    display: block;
    width: 1px; height: 34px;
    margin: 0 auto 8px;
    background: linear-gradient(to bottom, transparent, var(--steel-2));
    animation: scrollLine 2s ease-in-out infinite;
}
.hero-scroll p {
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--steel-3);
}
/* Masquer l'indicateur quand la place verticale manque (sinon il allonge
   inutilement le hero sous la ligne de flottaison) : écrans peu hauts. */
@media (max-height: 820px) {
    .hero-scroll { display: none; }
}
@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- STATS ---------- */
.stats {
    background: var(--black-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 60px 0;
    position: relative;
}
.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(184, 137, 92, 0.03) 100%);
    pointer-events: none;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
    position: relative;
}
.stat { border-right: 1px solid var(--border); padding: 0 20px; }
.stat:last-child { border-right: none; }
.stat-num {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 80px);
    color: var(--wood-light);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: 2px;
}
.stat-label {
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-mute);
}

/* ---------- SECTIONS ---------- */
.section { padding: var(--section-pad) 0; }
.section-dark { background: var(--black-2); position: relative; }
.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M0 0L100 100M100 0L0 100' stroke='%23222' stroke-width='0.5'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}
.section-head { text-align: center; margin-bottom: 70px; position: relative; }
.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--wood-light);
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid var(--wood-dark);
    border-radius: 2px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.5vw, 64px);
    line-height: 1.05;
    letter-spacing: 3px;
    color: var(--white);
    margin-bottom: 16px;
}
.section-sub { font-size: 17px; color: var(--text-mute); max-width: 640px; margin: 0 auto; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

/* PRESENTATION */
.presentation-text .lead {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.5;
}
.presentation-text p { margin-bottom: 24px; color: var(--text); }
.feature-list { margin-top: 28px; }
.feature-list li {
    padding: 14px 0 14px 32px;
    position: relative;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.feature-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 18px; height: 1px;
    background: var(--wood-light);
}
.feature-list li::after {
    content: '';
    position: absolute;
    left: 7px; top: calc(50% - 3px);
    width: 6px; height: 6px;
    border-right: 1px solid var(--wood-light);
    border-bottom: 1px solid var(--wood-light);
    transform: rotate(-45deg);
}
.presentation-img {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
}
.presentation-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4));
    z-index: 1;
}
.presentation-img img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    transition: transform 1s var(--ease);
}
.presentation-img:hover img { transform: scale(1.05); }

/* ---------- PLAN ---------- */
.plan-img {
    border: 1px solid var(--border-strong);
    border-radius: 2px;
    overflow: hidden;
    background: var(--black);
}
.plan-img img { width: 100%; }
.plan-info h3 {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 2px;
    color: var(--white);
    margin: 24px 0 16px;
}
.plan-info h3:first-child { margin-top: 0; }
.plan-list li {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.plan-list li strong {
    color: var(--wood-light);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1px;
}
.plan-list .plan-total {
    border-bottom: none;
    border-top: 2px solid var(--wood-dark);
    margin-top: 8px;
    padding-top: 16px;
    font-size: 18px;
}
.plan-total span, .plan-total strong { color: var(--white) !important; font-weight: 700; }
.plan-list-check li { padding-left: 28px; position: relative; }
.plan-list-check li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 14px; height: 1px;
    background: var(--wood-light);
}

/* Le FOOTER est défini dans footer.css */
