/* ============================================================
   NTIC Solution, feuille de style du site
   Palette : fond #0a1320 / #0f1b2d ; accents dans les jetons :root
   ci-dessous. C'est le seul endroit à modifier pour changer la couleur
   Typo : IBM Plex Sans (titres) + Plus Jakarta Sans (texte)
   ============================================================ */

/* ------------------------------------------------------------
   Jetons de couleur d'accent
   ------------------------------------------------------------
   Orange de la campagne, repris du visuel de Belgacem Guemida.
   C'est le seul endroit à modifier pour changer la couleur du site :
   plus aucune valeur d'accent n'est écrite en dur ailleurs.

   Deux familles, non interchangeables : ce qui est lisible sur le
   fond marine ne l'est pas forcément sur les sections claires
   (#produits, #partenaires). Contrastes mesurés, et comparés au bleu
   qu'ils remplacent. Tous progressent :

     --accent            #f64800  5,19:1 sur #0a1320   (bleu : 4,14)
                                  4,81:1 sur #0f1b2d   (bleu : 3,84)
     --accent-soft       #ff7d44  7,34:1 sur #0a1320   (bleu : 6,85)
     --accent-pale       #ffb08f 10,52:1 sur #0a1320   (bleu : 10,51)
     --accent-link       #ff9e75  9,23:1 sur #0a1320   (bleu : 9,20)
     --accent-on-light   #c23505  4,95:1 sur #eef3fa   (bleu : 4,04)

   Cette dernière ligne corrige un échec : l'eyebrow des sections
   claires était sous le minimum WCAG AA de 4,5:1, et n'y échappait
   pas par la clause « texte large » puisqu'il fait 13,5px.

   --accent-on-light-soft ferme le dégradé des pastilles d'icônes sur
   fond clair. #ff6120 porte le blanc des pictogrammes à 3,01:1, au
   seuil des 3:1 exigés pour un objet graphique ; le bleu #4d9fff
   qu'il remplace était à 2,72:1.

   Les variantes -rgb portent le triplet seul, pour rgba().
   ------------------------------------------------------------ */
:root {
    /* Sur fond sombre */
    --accent: #f64800;
    --accent-rgb: 246, 72, 0;
    --accent-soft: #ff7d44;
    --accent-soft-rgb: 255, 125, 68;
    --accent-pale: #ffb08f;
    --accent-link: #ff9e75;

    /* Sur sections claires */
    --accent-on-light: #c23505;
    --accent-on-light-rgb: 194, 53, 5;
    --accent-on-light-soft: #ff6120;

}

/* ------------------------------------------------------------
   Jetons de fond
   ------------------------------------------------------------
   Un seul endroit à modifier pour régler la clarté générale du site.

   Piège à connaître : #0f1b2d servait à DEUX choses opposées, fond des
   sections sombres et couleur du TEXTE sur les sections claires. Les
   deux sont séparés ici (--bg-2 et --ink) pour qu'éclaircir les fonds
   n'éclaircisse pas le texte des sections claires, ce qui le rendrait
   illisible. Même séparation pour les triplets -rgb.

   Les fonds sombres ont été éclaircis d'environ 87 % de luminance à
   teinte et saturation constantes. Le fond principal passe de 0,6 % à
   1,2 % de clarté perçue : toujours franchement sombre, mais il cesse
   de se lire comme du noir. C'est le maximum possible sans retoucher
   les gris de texte ; au cran suivant, rgba(234,241,251,0.5) tombe
   sous le minimum WCAG AA de 4,5:1.
   ------------------------------------------------------------ */
:root {
    /* Fonds sombres */
    --bg: #0f1d30;
    --bg-rgb: 15, 29, 48;
    --bg-2: #162742;
    --bg-2-rgb: 22, 39, 66;
    --bg-3: #1c345d;
    --bg-footer: #0b1626;
    --bg-fait: #172a45;

    /* Sections claires */
    --light-1: #eef3fa;
    --light-2: #e7eef8;
    --ink: #0f1b2d;
    --ink-rgb: 15, 27, 45;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html, body { background: var(--bg); }

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: #eaf1fb;
    overflow-x: hidden;
}

/* Navigation par ancre : 108px = navbar (72px) + 36px d'air constant
   au-dessus du titre, quel que soit le padding fluide de la section. */
section[id] { scroll-margin-top: calc(108px - clamp(64px, 9vw, 104px)); }

::selection { background: rgba(var(--accent-rgb), 0.35); color: #fff; }

/* 0.55 et non 0.32 : en dessous, le contraste sur le fond sombre tombe à
   ~2.8:1 et échoue au minimum WCAG AA de 4.5:1. */
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.55); }

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 3px;
    border-radius: 4px;
}

img { display: block; }

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

/* ------------------------------------------------------------
   Navbar
   ------------------------------------------------------------ */
#mainNav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(var(--bg-rgb), 0);
    border-bottom: 1px solid rgba(255, 255, 255, 0);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background .4s ease, box-shadow .4s ease, border-color .4s ease;
}

#mainNav.scrolled {
    background: rgba(var(--bg-rgb), 0.82);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

#mainNav nav {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    flex-shrink: 0;
}

/* Ombre neutre et non bleue : la marque est elle-même bleue, sur une
   barre bleu sombre. Un halo bleu empâtait la silhouette au lieu de la
   détacher. Le neutre convient aussi à webinaire.html, dont l'accent
   est orange. */
.nav-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.nav-brand span {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -.01em;
    font-size: 18px;
    color: #fff;
}

.nav-brand .accent { color: var(--accent-soft); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a[data-nav] {
    position: relative;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14.5px;
    font-weight: 500;
    padding: 9px 14px;
    transition: color .25s;
}

.nav-links a[data-nav]::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-soft);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .3s;
}

.nav-links a[data-nav]:hover { color: #fff; }

.nav-links a[data-nav].active { color: #fff; }
.nav-links a[data-nav].active::after { transform: scaleX(1); }

.nav-cta {
    margin-left: 8px;
    text-decoration: none;
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.4);
    transition: transform .25s, box-shadow .25s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(var(--accent-rgb), 0.55);
}

/* Burger (mobile) */
#burgerBtn {
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

#burgerBtn .burger-box {
    display: block;
    width: 20px;
    height: 14px;
    position: relative;
}

#burgerBtn .burger-box span {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all .3s;
    transform-origin: center;
}

#burgerBtn .burger-box span:nth-child(1) { top: 0; }
#burgerBtn .burger-box span:nth-child(2) { top: 6px; }
#burgerBtn .burger-box span:nth-child(3) { top: 12px; }

#mainNav.menu-open #burgerBtn .burger-box span:nth-child(1) { top: 6px; transform: rotate(45deg); }
#mainNav.menu-open #burgerBtn .burger-box span:nth-child(2) { opacity: 0; }
#mainNav.menu-open #burgerBtn .burger-box span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Menu mobile */
#mobileMenu {
    display: none;
    padding: 8px clamp(20px, 5vw, 48px) 22px;
    flex-direction: column;
    gap: 4px;
    background: rgba(var(--bg-rgb), 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#mainNav.menu-open #mobileMenu { display: flex; }

#mobileMenu a {
    text-decoration: none;
    color: #eaf1fb;
    font-size: 16px;
    font-weight: 500;
    padding: 13px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#mobileMenu .menu-cta {
    text-align: center;
    margin-top: 10px;
    color: #fff;
    font-weight: 600;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    border-bottom: none;
}

@media (max-width: 880px) {
    .nav-links { display: none; }
    #burgerBtn { display: grid; }
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 120px clamp(20px, 5vw, 48px) 70px;
    background: radial-gradient(120% 90% at 80% 0%, var(--bg-3) 0%, var(--bg-2) 45%, var(--bg) 100%);
    overflow: hidden;
}

/* Halo unique de la page. Les cinq autres (hero-glow-2, services,
   references, contact) ont ete retires : des aplats flous pulses
   derriere chaque section sont un marqueur de page generee. Celui-ci
   reste, statique, pour donner du relief au hero. */
.hero-glow-1 {
    position: absolute;
    top: -120px; right: -80px;
    width: 540px; height: 540px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.32), transparent 65%);
    filter: blur(40px);
    pointer-events: none;
}

.hero-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(var(--bg-rgb), 0.55) 100%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(var(--accent-soft-rgb), 0.12);
    border: 1px solid rgba(var(--accent-soft-rgb), 0.28);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--accent-pale);
    margin-bottom: 28px;
}

.hero-badge .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent-soft);
    box-shadow: 0 0 10px var(--accent-soft);
}

.hero h1 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(2.7rem, 6.2vw, 5.2rem);
    line-height: 1.04;
    letter-spacing: -.015em;
    margin: 0 0 22px;
    max-width: 16ch;
    text-wrap: balance;
    color: #fff;
}

.hero h1 .gradient-text {
    background: linear-gradient(120deg, var(--accent-soft), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.6;
    color: rgba(234, 241, 251, 0.74);
    max-width: 60ch;
    margin: 0 0 38px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 64px;
}

.btn-primary-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 30px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    box-shadow: 0 14px 34px rgba(var(--accent-rgb), 0.45);
    transition: transform .25s, box-shadow .25s;
}

.btn-primary-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(var(--accent-rgb), 0.6);
}

.btn-ghost-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #eaf1fb;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 30px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: background .25s, border-color .25s, transform .25s;
}

.btn-ghost-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-3px);
}

/* ------------------------------------------------------------
   Sections : structure commune
   ------------------------------------------------------------ */
.section {
    position: relative;
    padding: clamp(64px, 9vw, 104px) clamp(20px, 5vw, 48px);
}

.section-head {
    max-width: 720px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.eyebrow {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 16px;
}

.section-light .eyebrow { color: var(--accent-on-light); }

.section h2 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -.01em;
    margin: 0 0 18px;
    color: #fff;
}

.section-lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(234, 241, 251, 0.66);
    margin: 0;
}

.section-light { color: var(--ink); }
.section-light h2 { color: var(--ink); }
.section-light .section-lead { color: #50607a; }

/* ------------------------------------------------------------
   Services (sombre)
   ------------------------------------------------------------ */
#services { background: var(--bg-2); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
    gap: 22px;
}

.service-card {
    position: relative;
    padding: 38px 32px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .35s;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(var(--accent-soft-rgb), 0.5);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(var(--accent-soft-rgb), 0.25);
}

.service-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-soft-rgb), 0.1));
    border: 1px solid rgba(var(--accent-soft-rgb), 0.3);
    margin-bottom: 24px;
    color: var(--accent-soft);
}

.service-card h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: 1.45rem;
    margin: 0 0 12px;
    color: #fff;
}

.service-tagline {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(234, 241, 251, 0.62);
    margin: 0 0 22px;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.service-card li {
    display: flex;
    gap: 11px;
    font-size: 14.5px;
    color: rgba(234, 241, 251, 0.8);
}

.service-card li svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ------------------------------------------------------------
   Produits (clair)
   ------------------------------------------------------------ */
#produits { background: linear-gradient(180deg, var(--light-1) 0%, var(--light-2) 100%); }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    padding: 34px 28px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(var(--ink-rgb), 0.07);
    box-shadow: 0 10px 30px rgba(var(--ink-rgb), 0.06);
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 50px rgba(var(--accent-on-light-rgb), 0.18);
}

.product-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent-on-light), var(--accent-on-light-soft));
    color: #fff;
    margin-bottom: 22px;
    box-shadow: 0 8px 20px rgba(var(--accent-on-light-rgb), 0.35);
}

.product-card h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0 0 10px;
    color: var(--ink);
}

.product-card p {
    font-size: .96rem;
    line-height: 1.55;
    color: #50607a;
    margin: 0;
}

/* ------------------------------------------------------------
   Références (sombre)
   ------------------------------------------------------------ */
#references { background: var(--bg); overflow: hidden; }

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-bottom: 60px;
}

.reference-card {
    padding: 34px 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: transform .35s, border-color .35s;
}

.reference-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--accent-soft-rgb), 0.4);
}

.reference-mono {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-soft);
    margin-bottom: 14px;
}

.reference-card h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0 0 10px;
    color: #fff;
}

.reference-card p {
    font-size: .98rem;
    line-height: 1.55;
    color: rgba(234, 241, 251, 0.62);
    margin: 0;
}

.quote-card {
    position: relative;
    padding: clamp(36px, 6vw, 64px);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), rgba(var(--accent-soft-rgb), 0.05));
    border: 1px solid rgba(var(--accent-soft-rgb), 0.25);
    overflow: hidden;
}

.quote-mark {
    position: absolute;
    top: 18px; left: 30px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 9rem;
    line-height: 1;
    color: rgba(var(--accent-soft-rgb), 0.16);
    pointer-events: none;
}

.quote-card blockquote {
    position: relative;
    margin: 0;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(1.3rem, 2.6vw, 1.9rem);
    line-height: 1.4;
    color: #fff;
    max-width: 30ch;
    text-wrap: balance;
}

.quote-author {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.quote-avatar {
    width: 54px; height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: #fff;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.4);
}

.quote-name { font-weight: 700; font-size: 1.05rem; color: #fff; }
.quote-role { font-size: .92rem; color: rgba(234, 241, 251, 0.6); }

/* ------------------------------------------------------------
   Partenaires (clair)
   ------------------------------------------------------------ */
#partenaires { background: linear-gradient(180deg, var(--light-2) 0%, var(--light-1) 100%); }

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.partner-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 30px 28px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(var(--ink-rgb), 0.07);
    box-shadow: 0 8px 24px rgba(var(--ink-rgb), 0.05);
}

.partner-icon {
    width: 48px; height: 48px;
    flex-shrink: 0;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(var(--accent-on-light-rgb), 0.1);
    color: var(--accent);
}

.partner-card h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: 1.12rem;
    margin: 0 0 8px;
    color: var(--ink);
}

.partner-card p {
    font-size: .94rem;
    line-height: 1.55;
    color: #50607a;
    margin: 0;
}

/* ------------------------------------------------------------
   Contact (sombre)
   ------------------------------------------------------------ */
#contact {
    background: radial-gradient(120% 100% at 20% 0%, var(--bg-3) 0%, var(--bg-2) 50%, var(--bg) 100%);
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: clamp(36px, 6vw, 72px);
    align-items: start;
}

.contact-intro {
    font-size: 1.08rem;
    line-height: 1.6;
    color: rgba(234, 241, 251, 0.7);
    margin: 0 0 38px;
    max-width: 44ch;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: center;
    text-decoration: none;
}

.contact-icon {
    width: 48px; height: 48px;
    flex-shrink: 0;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(var(--accent-soft-rgb), 0.12);
    border: 1px solid rgba(var(--accent-soft-rgb), 0.25);
    color: var(--accent-soft);
}

/* 0,62 et non 0,5 : a 0,5 ce gris tombait a 3,76:1 sur le haut du
   degrade de la section contact, sous le minimum WCAG AA. */
.contact-item-label { font-size: 13px; color: rgba(234, 241, 251, 0.62); }
.contact-item-value { font-size: 1.02rem; font-weight: 600; color: #fff; }

/* Formulaire */
.contact-form-card {
    padding: clamp(28px, 4vw, 44px);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 18px;
}

.form-field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(234, 241, 251, 0.8);
    margin-bottom: 8px;
}

.input-wrap { position: relative; }

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 14px 42px 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .25s;
}

.form-field textarea {
    padding-right: 16px;
    resize: vertical;
}

/* Focus visible au clavier ; les états valid/invalid (plus bas) priment */
.form-field input:focus,
.form-field textarea:focus { border-color: rgba(var(--accent-soft-rgb), 0.7); }

.form-field.valid input,
.form-field.valid textarea { border-color: #3ddc97; }

.form-field.invalid input,
.form-field.invalid textarea { border-color: rgba(255, 133, 133, 0.7); }

.field-check {
    position: absolute;
    right: 14px;
    top: 15px;
    display: none;
}

.form-field.valid .field-check { display: block; }

.field-error {
    display: none;
    font-size: 12.5px;
    color: #ff8585;
    margin-top: 6px;
}

.form-field.invalid .field-error { display: block; }

.form-submit {
    margin-top: 6px;
    cursor: pointer;
    width: 100%;
    padding: 16px;
    border-radius: 13px;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    box-shadow: 0 12px 30px rgba(var(--accent-rgb), 0.45);
    transition: transform .25s, box-shadow .25s, opacity .25s;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(var(--accent-rgb), 0.6);
}

.form-submit:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
}

/* Piège à robots : masqué à l'œil et aux lecteurs d'écran, mais toujours
   soumis avec le formulaire. Pas de display:none, certains robots ignorent
   précisément les champs ainsi masqués. */
.form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-privacy {
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(234, 241, 251, 0.62);
    text-align: center;
    margin: 14px 0 0;
}

.form-privacy a { color: var(--accent-link); }

.form-server-error {
    display: none;
    font-size: 13.5px;
    color: #ff8585;
    text-align: center;
    margin: 10px 0 0;
}

/* État succès */
#formSuccess {
    display: none;
    text-align: center;
    padding: 30px 10px;
}

.success-badge {
    width: 72px; height: 72px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(61, 220, 151, 0.14);
    border: 1px solid rgba(61, 220, 151, 0.4);
    color: #3ddc97;
}

#formSuccess h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0 0 10px;
    color: #fff;
}

#formSuccess p {
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(234, 241, 251, 0.66);
    margin: 0 0 24px;
}

#resetFormBtn {
    cursor: pointer;
    color: var(--accent-soft);
    font-weight: 600;
    font-size: 15px;
    background: none;
    border: none;
    font-family: inherit;
}

.contact-form-card.submitted #contactForm { display: none; }
.contact-form-card.submitted #formSuccess { display: block; }

/* ------------------------------------------------------------
   Mentions légales (sombre, compact)
   ------------------------------------------------------------ */
/* Section claire. C'est le plus gros bloc du site (environ 3 000
   caracteres) et il fermait la page par une traversee sombre de plus
   de 4 000 caracteres avec contact et le footer. Le basculer ramene
   la page a 57 % sombre contre 86 %, et du texte juridique long se
   lit mieux sur fond clair. Il porte aussi .section-light dans le
   HTML, qui prend en charge le corps de texte et le h2. */
#mentions-legales {
    background: linear-gradient(180deg, var(--light-1) 0%, var(--light-2) 100%);
}

#mentions-legales .legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(24px, 4vw, 48px);
}

#mentions-legales h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 26px 0 10px;
    color: var(--ink);
}

#mentions-legales p {
    font-size: .94rem;
    line-height: 1.6;
    color: #50607a;
    margin: 0 0 6px;
}

#mentions-legales .legal-grid > div > h3:first-child { margin-top: 0; }

/* --accent-on-light et non --accent-soft : l'orange clair des fonds
   sombres tombe a 2,4:1 sur #eef3fa. Celui-ci donne 4,95:1. */
#mentions-legales a { color: var(--accent-on-light); text-decoration: underline; }
#mentions-legales a:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
footer {
    background: var(--bg-footer);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 44px clamp(20px, 5vw, 48px);
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.footer-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.footer-brand span {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: rgba(234, 241, 251, 0.85);
}

.footer-copy { font-size: 13.5px; color: rgba(234, 241, 251, 0.62); }

.footer-legal {
    font-size: 13.5px;
    color: rgba(234, 241, 251, 0.6);
    text-decoration: none;
    transition: color .25s;
}

.footer-legal:hover { color: var(--accent-soft); }

/* ------------------------------------------------------------
   Retour en haut
   ------------------------------------------------------------ */
#backToTop {
    position: fixed;
    bottom: 26px; right: 26px;
    z-index: 900;
    width: 50px; height: 50px;
    border-radius: 14px;
    /* Fond sombre et non aplat orange : ce carré de 50px flotte en
       permanence au-dessus du contenu, c'était la deuxième plus grande
       surface d'orange saturé de la page. La bordure et la flèche
       gardent l'accent. La flèche est à 6,87:1 et la bordure, opaque,
       à 5,19:1 sur le fond : au-delà des 3:1 qu'exige WCAG 1.4.11 pour
       délimiter une commande. En rgba(...,0.55) elle ne donnait que
       2,26:1 et le bouton n'avait plus de contour identifiable. */
    border: 1px solid var(--accent);
    background: rgba(var(--bg-2-rgb), 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--accent-soft);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    transition: transform .25s, box-shadow .25s, opacity .3s, visibility .3s;
    opacity: 0;
    visibility: hidden;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.6);
    border-color: var(--accent-soft);
}

/* ------------------------------------------------------------
   Animations d'apparition
   ------------------------------------------------------------ */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
}

[data-reveal].revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
