/* natives-website — CSS vanilla, zéro build.
   Design 2026 sur l'identité d'origine : bleus du logo, pastille, photos,
   one-pager. Hero navy avec aurora animée + texture géométrique d'origine,
   typo display resserrée, cartes arrondies à ombres douces, reveals au scroll. */

/* Polices auto-hébergées (subsets latin, cf. public/assets/fonts/).
   Raleway est une police variable : un seul fichier couvre 300 → 700. */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/lato-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/lato-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/assets/fonts/raleway-var.woff2') format('woff2');
}

:root {
    --ink: #1e293b;
    --ink-strong: #0f172a;
    --muted: #5d6a7a;
    --paper: #ffffff;
    --surface: #f6f8fb;
    --line: rgba(15, 23, 42, 0.08);
    --navy: #0a1020;
    --navy-2: #0f1d3a;
    /* Bleus du logo natives (dégradé azur → cyan) */
    --accent: #2193d6;
    --accent-deep: #1878be;
    --accent-light: #35b4e8;
    --grad: linear-gradient(135deg, var(--accent-deep), var(--accent-light));
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
    --shadow-lg: 0 30px 70px -25px rgba(15, 23, 42, 0.30);
    --shadow-accent: 0 20px 50px -18px rgba(33, 147, 214, 0.45);
    --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 {
    font-family: 'Raleway', 'Lato', sans-serif;
    color: var(--ink-strong);
    line-height: 1.15;
    margin: 0 0 0.55em;
    font-weight: 650;
    letter-spacing: -0.02em;
}
p { margin: 0 0 1em; }
a { color: var(--accent-deep); }
img { max-width: 100%; height: auto; }
address { font-style: normal; }
::selection { background: rgba(53, 180, 232, 0.28); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--accent-deep);
    color: #fff;
    padding: 0.6rem 1.1rem;
    border-radius: 0 0 10px 0;
    text-decoration: none;
    font-weight: 700;
}
.skip-link:focus { left: 0; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container-narrow { max-width: 740px; }

/* ---------- En-tête (transparent sur le hero, verre sombre au scroll) ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
    background: rgba(10, 16, 32, 0.85);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 30px -12px rgba(0, 0, 0, 0.5);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}
.brand { text-decoration: none; display: inline-flex; align-items: center; }
.brand img { height: 42px; width: auto; }
.brand-text {
    font-family: 'Raleway', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
}
.brand-dot { color: var(--accent-light); }
.site-header nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.4rem;
}
.site-header nav a {
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 550;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}
.site-header nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Pages intérieures (légales) : header toujours plein, contenu décalé */
.page-legale { padding-top: 8.5rem; }
body:has(.page-legale) .site-header { background: var(--navy); }

/* Ancres du one-page : ne pas passer sous le header fixe */
section[id] { scroll-margin-top: 4.5rem; }

/* Header mobile : logo + nav compacts et centrés (le header fixe est plus haut) */
@media (max-width: 700px) {
    .site-header .container {
        flex-direction: column;
        justify-content: center;
        gap: 0.3rem;
        padding-top: 0.7rem;
        padding-bottom: 0.6rem;
    }
    .site-header nav { justify-content: center; gap: 0.1rem 0.1rem; }
    .site-header nav a { font-size: 0.85rem; padding: 0.28rem 0.6rem; }
    .brand img { height: 32px; }
    section[id] { scroll-margin-top: 7rem; }
    .hero { padding-top: 9rem; }
    .page-legale { padding-top: 10.5rem; }
}

/* ---------- Hero : navy + aurora animée + texture d'origine ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(180deg, var(--navy) 0%, #0d1830 55%, var(--navy-2) 100%);
    overflow: hidden;
    padding: 7rem 0 4.5rem;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/img/slider-background.webp') center / cover no-repeat;
    opacity: 0.30;
    will-change: transform;
}
/* Halos : dégradés à retombée douce (pas de filter:blur — trop coûteux au rendu,
   il plombait TBT et Speed Index sur mobile) ; animation compositée uniquement. */
.hero::after {
    content: '';
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(48% 40% at 24% 30%, rgba(24, 120, 190, 0.42) 0%, rgba(24, 120, 190, 0.18) 45%, transparent 72%),
        radial-gradient(52% 44% at 78% 68%, rgba(53, 180, 232, 0.28) 0%, rgba(53, 180, 232, 0.12) 45%, transparent 72%);
    pointer-events: none;
    will-change: transform;
}
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero .pastille { height: 96px; width: auto; margin-bottom: 2rem; }
.hero h1 {
    color: #fff;
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 4.1rem);
    letter-spacing: -0.028em;
    margin-bottom: 0.35em;
}
.hero h1 .grad {
    background: linear-gradient(120deg, #7cc9f2, var(--accent-light) 55%, #9adcff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub {
    font-family: 'Raleway', sans-serif;
    font-weight: 340;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.4rem;
}
.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 0;
}
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 1.6rem;
    transform: translateX(-50%);
    width: 26px; height: 26px;
    border-left: 2px solid rgba(255, 255, 255, 0.55);
    border-bottom: 2px solid rgba(255, 255, 255, 0.55);
    rotate: -45deg;
    z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
    /* Délai de 2,5 s sur les boucles du hero : la page est visuellement stable
       au chargement (Speed Index), l'œil ne voit pas la différence. */
    .hero::before { animation: kenburns 28s ease-in-out 2.5s infinite alternate; }
    @keyframes kenburns {
        from { transform: scale(1); }
        to   { transform: scale(1.07); }
    }
    .hero::after { animation: aurora 16s ease-in-out 2.5s infinite alternate; }
    @keyframes aurora {
        from { transform: translate3d(-3%, -2%, 0) scale(1); }
        to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
    }
    .hero .pastille { animation: float 6s ease-in-out 2.5s infinite; }
    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50%      { transform: translateY(-8px); }
    }
    .scroll-cue { animation: cue 2.2s ease-in-out infinite; }
    @keyframes cue {
        0%, 100% { transform: translate(-50%, 0);   opacity: 0.55; }
        50%      { transform: translate(-50%, 8px); opacity: 1; }
    }
    /* Apparitions au scroll (classe .in posée par le script du layout) */
    [data-reveal] {
        opacity: 0;
        transform: translateY(26px);
        transition: opacity 0.65s ease, transform 0.65s ease;
    }
    [data-reveal].in { opacity: 1; transform: none; }
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-weight: 620;
    font-size: 1rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    border-radius: 12px;
    padding: 0.85rem 1.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
                border-color 0.2s ease, color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--grad);
    color: #fff;
    border: 0;
    box-shadow: var(--shadow-accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 26px 60px -18px rgba(33, 147, 214, 0.55); }
.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.12); }
.btn-border {
    border: 1.5px solid var(--accent-deep);
    color: var(--accent-deep);
    background: transparent;
}
.btn-border:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-accent); }

/* ---------- Sections & titres ---------- */
.section {
    padding: 6rem 0;
    /* Rendu différé des sections hors écran (perf mobile) */
    content-visibility: auto;
    contain-intrinsic-size: auto 700px;
}
.section-alt { background: var(--surface); }
.heading-block { text-align: center; margin-bottom: 3.5rem; }
.heading-block h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 0.8rem;
}
.heading-block h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    border-radius: 3px;
    background: var(--grad);
}
.heading-block p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---------- Projets ---------- */
.projet {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    flex-wrap: wrap;
}
.projet-texte { flex: 2 1 320px; }
.projet-texte h3 { font-size: 1.6rem; }
.projet-texte h3 img { max-height: 60px; width: auto; }
.projet-accroche {
    font-family: 'Raleway', sans-serif;
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}
.projet-visuel { flex: 3 1 380px; text-align: right; }
.projet-visuel img {
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg), var(--shadow-accent);
    transition: transform 0.35s ease;
}
.projet-visuel img:hover { transform: translateY(-6px) scale(1.01); }

/* ---------- Équipe ---------- */
.equipe-grid {
    display: flex;
    justify-content: center;
    gap: 4.5rem;
    flex-wrap: wrap;
    text-align: center;
}
.membre-photo {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    border: 5px solid #fff;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.membre:hover .membre-photo { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-lg); }
.membre-initiales {
    background: var(--grad);
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    line-height: 180px;
    text-align: center;
}
.membre-nom {
    margin-top: 1.3rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 620;
    font-size: 1.08rem;
    color: var(--ink-strong);
}
.membre-nom span { font-weight: 400; color: var(--muted); font-size: 0.95rem; }

/* ---------- Presse ---------- */
.presse-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.2rem 3.5rem;
    flex-wrap: wrap;
}
.presse-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    text-decoration: none;
    transition: transform 0.25s ease;
}
.presse-item:hover { transform: translateY(-3px); }
.presse-item img {
    max-height: 56px;
    width: auto;
    filter: grayscale(1) opacity(0.6);
    transition: filter 0.25s ease;
}
.presse-item:hover img { filter: none; }
.presse-item span {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    color: var(--muted);
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 0.55rem 1.5rem;
    transition: color 0.2s, border-color 0.2s;
}
.presse-item:hover span { border-color: var(--accent); color: var(--accent-deep); }

/* ---------- Contact (panneau CTA sombre) ---------- */
.contact-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, #10254a 100%);
    color: #fff;
    border-radius: var(--r-lg);
    padding: 4.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.contact-panel::after {
    content: '';
    position: absolute;
    inset: -15%;
    background:
        radial-gradient(44% 48% at 22% 28%, rgba(24, 120, 190, 0.38) 0%, rgba(24, 120, 190, 0.16) 45%, transparent 72%),
        radial-gradient(48% 52% at 80% 74%, rgba(53, 180, 232, 0.24) 0%, rgba(53, 180, 232, 0.10) 45%, transparent 72%);
    pointer-events: none;
}
.contact-panel > * { position: relative; z-index: 1; }
.contact-panel h2 {
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin-bottom: 0.4em;
}
.contact-panel .contact-sub {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
}
.contact-line { font-size: 1.1rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 1.6rem; }

/* ---------- Légal ---------- */
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.15rem; margin-top: 2em; color: var(--accent-deep); }

/* ---------- Pied de page ---------- */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-cols {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem 3rem;
    flex-wrap: wrap;
}
.footer-cols address { text-align: right; line-height: 1.8; }
.site-footer strong { color: #fff; }
.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: #fff; }
.footer-legal { display: flex; gap: 1.4rem; margin-top: 0.7rem; }

@media (max-width: 640px) {
    .projet-visuel, .footer-cols address { text-align: left; }
    .section { padding: 4.5rem 0; }
    .contact-panel { padding: 3.5rem 1.5rem; }
}

/* ---------- Dark mode (préférence système) ----------
   Le hero, le header, le panneau contact et le footer sont déjà sombres ;
   seuls les tokens des sections claires basculent. */
@media (prefers-color-scheme: dark) {
    :root {
        --paper: #0c1220;
        --surface: #101a2e;
        --ink: #c7d0dd;
        --ink-strong: #eef3fa;
        --muted: #93a3b8;
        --line: rgba(255, 255, 255, 0.10);
        --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
        --shadow-lg: 0 30px 70px -25px rgba(0, 0, 0, 0.65);
    }
    a { color: var(--accent-light); }
    .section-alt { border-block: 1px solid var(--line); }
    /* Logos presse (encres sombres) : pastille claire pour rester lisibles */
    .presse-item img {
        background: #f4f6f9;
        padding: 0.55rem 0.9rem;
        border-radius: 12px;
        filter: grayscale(1) opacity(0.85);
    }
    .presse-item:hover img { filter: none; }
    .btn-border { border-color: var(--accent-light); color: var(--accent-light); }
    .btn-border:hover { background: var(--accent-light); color: #0a1020; box-shadow: var(--shadow-accent); }
    .membre-photo { border-color: #1b2740; }
    .legal h2 { color: var(--accent-light); }
}
