/* ==========================================================
   H3Tech - Feuille de style (mobile first)
   ========================================================== */

/* ---------- Variables ---------- */
:root {
    --noir:        #050608;
    --noir-2:      #0b0c11;
    --noir-3:      #13141b;
    --blanc:       #ffffff;
    --gris:        #a7a9b6;
    --gris-ligne:  rgba(255, 255, 255, .08);

    --rouge:       #e03a50;
    --violet:      #4a3f86;
    --degrade:     linear-gradient(180deg, var(--rouge) 0%, var(--violet) 100%);
    --degrade-h:   linear-gradient(90deg, var(--rouge) 0%, var(--violet) 100%);

    --police:      'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --header-h:    72px;
    --rayon:       14px;
    --transition:  .3s ease;
    --largeur-max: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);   /* les ancres ne passent pas sous le header */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--police);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gris);
    background-color: var(--noir);
    /* Grille de fond reprise du logo */
    background-image:
        linear-gradient(var(--gris-ligne) 1px, transparent 1px),
        linear-gradient(90deg, var(--gris-ligne) 1px, transparent 1px);
    background-size: 64px 64px;
    background-attachment: fixed;
    overflow-x: hidden;
}

body.menu-ouvert { overflow: hidden; }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

h1, h2, h3 { color: var(--blanc); line-height: 1.15; font-weight: 700; }

:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }

/* ---------- Utilitaires ---------- */
.container {
    width: 100%;
    max-width: var(--largeur-max);
    margin-inline: auto;
    padding-inline: 20px;
}

.degrade {
    background: var(--degrade);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.degrade sub {
    font-size: .5em;
    vertical-align: -.25em;
    color: var(--rouge);
    -webkit-text-fill-color: var(--rouge);
}

.surtitre {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--rouge);
    margin-bottom: 12px;
}

.trait {
    display: block;
    width: 80px;
    height: 2px;
    background: var(--blanc);
    margin: 20px 0 28px;
}

.texte-large { font-size: 1.25rem; font-weight: 300; font-style: italic; color: var(--blanc); }

p + p { margin-top: 1em; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 1000;
    padding: 8px 16px;
    background: var(--rouge);
    color: var(--blanc);
    border-radius: 6px;
}
.skip-link:focus { left: 8px; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .02em;
    cursor: pointer;
    border: 0;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn--plein {
    background: var(--degrade-h);
    color: var(--blanc);
}
.btn--plein:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(224, 58, 80, .35); }

.btn--contour {
    border: 1px solid rgba(255, 255, 255, .4);
    color: var(--blanc);
    background: transparent;
}
.btn--contour:hover { border-color: var(--blanc); background: rgba(255, 255, 255, .06); }

/* ==========================================================
   HEADER / NAVIGATION
   ========================================================== */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    z-index: 100;
    transition: background var(--transition), border-color var(--transition);
    border-bottom: 1px solid transparent;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(5, 6, 8, .85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity var(--transition);
}
.header.is-scrolled::before { opacity: 1; }
.header.is-scrolled {
    border-bottom-color: var(--gris-ligne);
}

.header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo,
.footer__logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    background: var(--degrade);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.header__logo span,
.footer__logo span {
    color: var(--blanc);
    -webkit-text-fill-color: var(--blanc);
    font-weight: 400;
    margin-left: 2px;
}

/* Burger (mobile) */
.burger {
    position: relative;
    z-index: 110;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    cursor: pointer;
}
.burger span {
    width: 26px;
    height: 2px;
    background: var(--blanc);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Menu mobile plein ecran */
.nav {
    position: fixed;
    inset: 0;
    z-index: 105;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: rgba(5, 6, 8, .97);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}
.nav.is-open { opacity: 1; visibility: visible; }

.nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}
.nav__link {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--blanc);
    position: relative;
    transition: color var(--transition);
}
.nav__link sub { font-size: .6em; }
.nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--degrade-h);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__link--cta {
    padding: 10px 24px;
    border-radius: 999px;
    background: var(--degrade-h);
}
.nav__link--cta::after { display: none; }

/* Selecteur de langue FR | EN | ES */
.langues {
    display: flex;
    align-items: center;
}
.langues li + li::before {
    content: '|';
    margin: 0 10px;
    color: rgba(255, 255, 255, .25);
}
.langues a {
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--gris);
    transition: color var(--transition);
}
.langues a:hover { color: var(--blanc); }
.langues a.is-active { color: var(--rouge); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 40px) 0 80px;
    overflow: hidden;
}
/* Halo colore */
.hero::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    top: 50%;
    right: -250px;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(224, 58, 80, .22) 0%, rgba(74, 63, 134, .12) 45%, transparent 70%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    display: grid;
    gap: 48px;
    align-items: center;
}

.hero__titre {
    font-size: clamp(2.6rem, 9vw, 5rem);
    font-weight: 800;
    letter-spacing: -.02em;
}

.hero__baseline {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 300;
    font-style: italic;
    color: var(--blanc);
    margin-top: 8px;
}

.hero__intro {
    max-width: 480px;
    margin-top: 20px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero__visuel img {
    width: 100%;
    border-radius: var(--rayon);
}

/* Indicateur de scroll */
.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-radius: 20px;
    display: none;
}
.hero__scroll span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--rouge);
    animation: scroll 1.8s infinite;
}
/* --- Hero : phrase choc sous le logo --- */
/* --- Hero : phrase choc, centree sur toute la largeur --- */
.hero__punch-bloc {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
    margin-top: 8px;
}
.hero__punch {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 4px 14px;
    color: var(--blanc);
}
.hero__punch-texte {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 300;
    font-style: italic;
}
.hero__punch-texte sub { font-size: .6em; }
.hero__punch-chiffre {
    font-size: clamp(3rem, 9vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
    background: var(--degrade);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__punch-note {
    margin-top: 8px;
    font-size: .75rem;
    font-style: italic;
    color: var(--gris);
}
.hero__punch { margin-top: 0; }
@keyframes scroll {
    0%   { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(14px); }
}

/* ==========================================================
   SECTIONS
   ========================================================== */
.section { padding: 80px 0; position: relative; }
.section--alt { background: rgba(11, 12, 17, .85); }

.section__entete { max-width: 720px; margin-bottom: 48px; }

.section__titre {
    font-size: clamp(1.9rem, 6vw, 3rem);
    font-weight: 700;
    letter-spacing: -.01em;
}

/* Grilles */
.grille { display: grid; gap: 32px; }

/* ---------- Chiffres ---------- */
.chiffres {
    display: grid;
    gap: 24px;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--gris-ligne);
}
.chiffre { text-align: center; }
.chiffre__valeur,
.chiffre__unite {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    background: var(--degrade);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.chiffre__unite { font-size: 1.5rem; }
.chiffre__label {
    margin-top: 10px;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}

/* ---------- Etapes ---------- */
.etapes { display: grid; gap: 20px; }
.etape {
    position: relative;
    padding: 32px 28px;
    border: 1px solid var(--gris-ligne);
    border-radius: var(--rayon);
    background: var(--noir-3);
    overflow: hidden;
}
.etape::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--degrade);
}
.etape__num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .25);
    margin-bottom: 16px;
}
.etape__titre { font-size: 1.25rem; margin-bottom: 8px; }

/* ---------- Cartes ---------- */
.carte {
    position: relative;
    padding: 32px 28px;
    border-radius: var(--rayon);
    background: var(--noir-3);
    border: 1px solid var(--gris-ligne);
    transition: transform var(--transition), border-color var(--transition);
}
.carte:hover { transform: translateY(-6px); border-color: rgba(224, 58, 80, .5); }

.carte__icone {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--degrade);
    margin-bottom: 20px;
}
.carte__icone svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--blanc);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.carte__titre { font-size: 1.15rem; margin-bottom: 8px; }

/* ---------- Citation ---------- */
.citation {
    padding: 40px;
    border-left: 3px solid var(--rouge);
}
.citation p {
    font-size: clamp(2.5rem, 9vw, 4.5rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.05;
    color: var(--blanc);
}
.citation footer {
    margin-top: 20px;
    font-size: .85rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--rouge);
}

/* ==========================================================
   CONTACT / FORMULAIRE
   ========================================================== */
.contact { max-width: 820px; }

.contact__form {
    padding: 32px 22px;
    border-radius: var(--rayon);
    background: var(--noir-3);
    border: 1px solid var(--gris-ligne);
}

.formulaire { display: grid; gap: 20px; }
.formulaire__ligne { display: grid; gap: 20px; }

.champ label {
    display: block;
    margin-bottom: 8px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--blanc);
}
.champ input[type="text"],
.champ input[type="email"],
.champ textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: var(--noir);
    color: var(--blanc);
    font-size: 1rem;  /* 16px minimum : evite le zoom auto sur iPhone */
    transition: border-color var(--transition), box-shadow var(--transition);
}
.champ textarea { resize: vertical; min-height: 140px; }
.champ input:focus,
.champ textarea:focus {
    outline: none;
    border-color: var(--rouge);
    box-shadow: 0 0 0 3px rgba(224, 58, 80, .2);
}

.champ--case {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
}
.champ--case input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--rouge); }
.champ--case label { margin: 0; font-weight: 400; color: var(--gris); }
.champ--case .champ__erreur { grid-column: 1 / -1; }

.champ--erreur input,
.champ--erreur textarea { border-color: #ff5a6e; }
.champ__erreur { margin-top: 6px; font-size: .8rem; color: #ff7d8d; }

.formulaire .btn { justify-self: start; }

.alerte {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: .95rem;
}
.alerte--succes { background: rgba(46, 204, 113, .12); border: 1px solid rgba(46, 204, 113, .4); color: #8ef0b5; }
.alerte--erreur { background: rgba(224, 58, 80, .12); border: 1px solid rgba(224, 58, 80, .45); color: #ff9aa6; }

/* Pot de miel anti-robot (invisible) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--gris-ligne);
    background: var(--noir);
}
.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.footer__baseline { font-style: italic; font-weight: 300; color: var(--blanc); }
.footer__copy { font-size: .8rem; }

/* ==========================================================
   APPARITION AU SCROLL (active seulement si le JS tourne)
   ========================================================== */
.js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease, transform .8s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* Tablette : 640px et plus */
@media (min-width: 640px) {
    .container { padding-inline: 32px; }
    .formulaire__ligne { grid-template-columns: 1fr 1fr; }
    .chiffres { grid-template-columns: repeat(3, 1fr); }
    .grille--3 { grid-template-columns: repeat(2, 1fr); }
    .etapes { grid-template-columns: repeat(2, 1fr); }
    .contact__form { padding: 40px; }
}

/* Ordinateur : 960px et plus */
@media (min-width: 960px) {
    :root { --header-h: 84px; }

    .burger { display: none; }

    .nav {
        position: static;
        flex-direction: row;
        gap: 36px;
        background: none;
        opacity: 1;
        visibility: visible;
    }
    .nav__list { flex-direction: row; gap: 32px; }
    .nav__link { font-size: .9rem; font-weight: 500; }
    .nav__link--cta { padding: 10px 22px; }

    .langues {
        padding-left: 28px;
        border-left: 1px solid var(--gris-ligne);
    }
    .langues a { font-size: .75rem; }

    .hero__inner { grid-template-columns: 1fr 1.1fr; }
    .hero__scroll { display: block; }

    .section { padding: 120px 0; }

    .grille--2 { grid-template-columns: 1fr 1fr; gap: 64px; }
    .grille--centre { align-items: center; }
    .grille--3 { grid-template-columns: repeat(3, 1fr); }
    .etapes { grid-template-columns: repeat(4, 1fr); }
}

/* Grand ecran : 1400px et plus */
@media (min-width: 1400px) {
    :root { --largeur-max: 1320px; }
}

/* Accessibilite : l'utilisateur a demande moins d'animations */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   DEMO ANIMEE "Comment ca fonctionne" (section Technologie)
   ========================================================== */
.demo { position: relative; }

.demo__defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* --- Scene : cadre facon "selection logiciel" --- */
.demo__scene {
    position: relative;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 4px;
    background: rgba(0, 6, 20, .6);
    min-height: 420px;
}
.demo__coin {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--rouge);
    z-index: 2;
}
.demo__coin--hg { top: -4px; left: -4px; }
.demo__coin--hd { top: -4px; right: -4px; background: var(--violet); }
.demo__coin--bg { bottom: -4px; left: -4px; }
.demo__coin--bd { bottom: -4px; right: -4px; background: var(--violet); }

/* --- Panneaux : un seul visible a la fois --- */
.demo__panneau {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, visibility .5s ease;
}
.demo__panneau.is-active { opacity: 1; visibility: visible; }

.demo__dessin { position: relative; }
.demo__dessin svg { width: 100%; height: 100%; max-height: 300px; margin: 0 auto; }

.demo__legende { text-align: center; padding-top: 8px; }
.demo__legende h3 { font-size: 1.1rem; margin-bottom: 4px; }
.demo__legende p { font-size: .9rem; font-style: italic; font-weight: 300; max-width: 520px; margin: 0 auto; }

/* Textes dans les dessins */
.demo__txt { font-family: var(--police); font-size: 15px; font-style: italic; font-weight: 300; fill: #ffffff; }
.demo__txt--gras { font-style: normal; font-weight: 600; }
.demo__txt--petit { font-size: 12px; fill: var(--gris); }

/* Badges en pilule */
.demo__badge {
    position: absolute;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 999px;
    background: rgba(0, 6, 20, .8);
    color: var(--blanc);
    font-size: .95rem;
    font-style: italic;
    white-space: nowrap;
}
.demo__badge--droite      { top: 6%; right: 4%; }
.demo__badge--droite-bas  { bottom: 6%; right: 18%; }
.demo__badge--gauche      { bottom: 6%; left: 18%; }
.demo__badge--gauche-haut { top: 10%; left: 4%; }

/* --- Onglets --- */
.demo__onglets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
}
.demo__onglet {
    position: relative;
    overflow: hidden;
    padding: 12px 10px;
    border: 1px solid var(--gris-ligne);
    border-radius: 8px;
    background: var(--noir-3);
    color: var(--gris);
    font-size: .85rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}
.demo__onglet:hover { color: var(--blanc); }
.demo__onglet.is-active { color: var(--blanc); border-color: rgba(224, 58, 80, .5); }
.demo__num { color: var(--rouge); margin-right: 6px; font-weight: 400; }

/* Barre de progression (largeur pilotee par le JS) */
.demo__barre {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--degrade-h);
    transform: scaleX(0);
    transform-origin: left;
}

/* ==========================================================
   ANIMATIONS DES DESSINS (lancees quand le panneau est actif)
   ========================================================== */

/* 2. Scan : flux de carburant + laser */
.demo__flux { stroke-dasharray: 6 82; }
.is-active .demo__flux { animation: demo-flux 1.2s linear infinite; }
@keyframes demo-flux { to { stroke-dashoffset: -88; } }

.is-active .demo__laser { animation: demo-laser 1.6s ease-in-out infinite alternate; }
@keyframes demo-laser { from { transform: translateY(0); } to { transform: translateY(115px); } }

/* 3. Analyse : les molecules apparaissent puis pulsent */
.demo__molecule { transform-box: fill-box; transform-origin: center; opacity: 0; }
.is-active .demo__molecule { animation: demo-molecule-entree .7s ease forwards, demo-molecule-pulse 2.4s ease-in-out .7s infinite; }
.is-active .demo__molecule--2 { animation-delay: .6s, 1.3s; }
.is-active .demo__molecule--3 { animation-delay: 1.2s, 1.9s; }
@keyframes demo-molecule-entree {
    from { opacity: 0; transform: scale(.4) rotate(-40deg); }
    to   { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes demo-molecule-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.08); }
}

/* 4. Mix : double helice qui defile */
.demo__adn { stroke-dasharray: 6 6; }
.is-active .demo__adn { animation: demo-adn 2s linear infinite; }
.is-active .demo__adn--2 { animation-direction: reverse; }
@keyframes demo-adn { to { stroke-dashoffset: -48; } }

/* 5. Telematique : ondes + liaison */
.demo__onde { transform-box: fill-box; transform-origin: center; }
.is-active .demo__onde { animation: demo-onde 2s ease-out infinite; }
.is-active .demo__onde--2 { animation-delay: 1s; }
@keyframes demo-onde {
    from { opacity: .9; transform: scale(1); }
    to   { opacity: 0; transform: scale(3.5); }
}
.demo__liaison { stroke-dasharray: 5 7; }
.is-active .demo__liaison { animation: demo-flux 1.5s linear infinite; }

/* 6. Certificat : la jauge monte a 85 % */
.demo__jauge { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.is-active .demo__jauge { animation: demo-jauge 2.8s cubic-bezier(.2, .7, .2, 1) .3s forwards; }
@keyframes demo-jauge { to { transform: scaleY(.85); } }

/* Pause (souris sur la demo ou demo hors ecran) */
.demo.is-paused * { animation-play-state: paused !important; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 639px) {
    .demo__badge { font-size: .8rem; padding: 4px 12px; }
    .demo__onglet { font-size: .75rem; padding: 10px 8px; }
    .demo__num { display: block; margin: 0; }
}

@media (min-width: 640px) {
    .demo__onglets { grid-template-columns: repeat(6, 1fr); }
    .demo__scene { min-height: 460px; }
}

@media (min-width: 960px) {
    .demo__badge--droite { top: 34%; right: 6%; }
    .demo__scene { min-height: 0; aspect-ratio: 16 / 8; }
    .demo__panneau { padding: 32px 40px; }
    .demo__onglet { font-size: .9rem; padding: 14px 16px; }
    .demo__legende h3 { font-size: 1.25rem; }
}

/* Moins d'animations demande : etat final affiche directement */
@media (prefers-reduced-motion: reduce) {
    .demo__molecule { opacity: 1; }
    .demo__jauge { transform: scaleY(.85); }
}

/* ==========================================================
   SECTION 03 - POURQUOI H3TECH
   ========================================================== */

/* Surlignage en degrade derriere le texte (repris de la video) */
.surligne {
    padding: 2px 10px 2px 4px;
    background: linear-gradient(90deg, rgba(224, 58, 80, .95) 0%, rgba(224, 58, 80, .7) 60%, rgba(74, 63, 134, 0) 100%);
    color: var(--blanc);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.surligne sub { font-size: .65em; }

/* --- Points cles --- */
.atouts {
    display: grid;
    gap: 20px;
}

.atout {
    position: relative;
    overflow: hidden;
    padding: 32px 28px;
    border: 1px solid var(--gris-ligne);
    border-radius: var(--rayon);
    background: var(--noir-3);
    transition: transform var(--transition), border-color var(--transition);
}
.atout:hover { transform: translateY(-6px); border-color: rgba(224, 58, 80, .5); }

/* Lisere degrade en haut de la carte, qui s'allonge au survol */
.atout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 2px;
    background: var(--degrade-h);
    transition: width .5s ease;
}
.atout:hover::before { width: 100%; }

/* Grand numero en contour */
.atout__num {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .18);
}

.atout__titre {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* --- Vehicules eligibles --- */
.eligibles {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--gris-ligne);
    text-align: center;
}
.eligibles__titre {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 40px;
}
.eligibles__grille {
    display: grid;
    gap: 32px;
}
.eligible__valeur {
    display: block;
    font-size: clamp(2.2rem, 7vw, 3.2rem);
    font-weight: 800;
    line-height: 1;
    background: var(--degrade);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.eligible__label {
    margin-top: 10px;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}

/* --- Responsive --- */
@media (min-width: 640px) {
    .atouts { grid-template-columns: repeat(2, 1fr); }
    .eligibles__grille { grid-template-columns: repeat(3, 1fr); }
    .eligible + .eligible { border-left: 1px solid var(--gris-ligne); }
}

@media (min-width: 960px) {
    .atout { padding: 40px 36px; }
    .atout__titre { font-size: 1.25rem; }
}

/* ==========================================================
   SECTION 04 - QUI SOMMES-NOUS
   ========================================================== */

/* --- SP3H + ELECTROMAINTENANCE = H3Tech --- */
.partenaires {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 36px 24px;
    border: 1px solid var(--gris-ligne);
    border-radius: var(--rayon);
    background: var(--noir-3);
    text-align: center;
}
.partenaire {
    width: 100%;
    max-width: 340px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    background: var(--noir);
}
.partenaire__nom {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--blanc);
}
.partenaire__role {
    display: block;
    margin-top: 4px;
    font-size: .85rem;
    font-style: italic;
    font-weight: 300;
}
.partenaires__plus,
.partenaires__egal {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    color: var(--rouge);
}
.partenaires__marque {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--rouge);
}
.partenaires__logo span { color: var(--blanc); font-weight: 400; margin-left: 2px; }
.partenaires__note {
    max-width: 340px;
    font-size: .75rem;
    font-style: italic;
}

/* --- Homologations --- */
.homologations { margin-top: 80px; }
.homologations__titre {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 28px;
}
.homologations__grille {
    display: grid;
    gap: 20px;
}
.homologation {
    position: relative;
    padding: 28px 26px;
    border: 1px solid var(--gris-ligne);
    border-radius: var(--rayon);
    background: var(--noir-3);
}
.homologation::before {
    content: '';
    position: absolute;
    left: 0;
    top: 24px;
    bottom: 24px;
    width: 3px;
    background: var(--degrade);
}
.homologation__carburant {
    display: inline-block;
    padding: 4px 14px;
    margin-bottom: 14px;
    border: 1px solid var(--rouge);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--rouge);
}
.homologation__carburant--hvo { border-color: #7d70c9; color: #a99ff0; }
.homologation__marque {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blanc);
    margin-bottom: 4px;
}
.homologation p { font-size: .9rem; font-style: italic; }

/* --- Distinction SOLUTRANS --- */
.distinction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 64px;
    padding: 36px 28px;
    border: 1px solid rgba(224, 58, 80, .35);
    border-radius: var(--rayon);
    background: linear-gradient(135deg, rgba(224, 58, 80, .12) 0%, rgba(74, 63, 134, .12) 100%);
    text-align: center;
}
.distinction__laurier { width: 96px; height: 96px; flex-shrink: 0; }
.distinction__titre {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--blanc);
}
.distinction__lieu {
    margin-top: 4px !important;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--rouge);
}
.distinction__texte {
    margin-top: 10px !important;
    font-style: italic;
    font-weight: 300;
}

/* --- Responsive --- */
@media (min-width: 640px) {
    .homologations__grille { grid-template-columns: repeat(3, 1fr); }
    .distinction { flex-direction: row; text-align: left; padding: 36px 44px; }
}


/* --- Video Vimeo responsive (16/9) --- */
.video {
    position: relative;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--gris-ligne);
    border-radius: var(--rayon);
    overflow: hidden;
    background: var(--noir-3);
}
.video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* --- Logos des partenaires --- */
.partenaire {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.partenaire img {
    width: auto;
    max-width: 180px;
    height: 70px;          /* meme hauteur pour les deux logos */
    object-fit: contain;   /* le logo n'est jamais deforme */
}
   /* .partenaire img {
       background: #ffffff;
       padding: 10px 16px;
       border-radius: 8px;
       box-sizing: content-box;
   } */


/* --- Formulaire : mention sous les champs --- */
/* ==========================================================
   CONTACT / FORMULAIRE
   ========================================================== */
.contact { max-width: 820px; }

.contact__form {
    padding: 32px 22px;
    border-radius: var(--rayon);
    background: var(--noir-3);
    border: 1px solid var(--gris-ligne);
}

.formulaire { display: grid; gap: 20px; }
.formulaire__ligne { display: grid; gap: 20px; }

.champ label {
    display: block;
    margin-bottom: 8px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--blanc);
}
.champ input[type="text"],
.champ input[type="email"],
.champ textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: var(--noir);
    color: var(--blanc);
    font-size: 1rem;  /* 16px minimum : evite le zoom auto sur iPhone */
    transition: border-color var(--transition), box-shadow var(--transition);
}
.champ textarea { resize: vertical; min-height: 140px; }
.champ textarea::placeholder { color: rgba(167, 169, 182, .55); }
.champ input:focus,
.champ textarea:focus {
    outline: none;
    border-color: var(--rouge);
    box-shadow: 0 0 0 3px rgba(224, 58, 80, .2);
}

/* Champ en erreur */
.champ--erreur input[type="text"],
.champ--erreur input[type="email"],
.champ--erreur textarea { border-color: #ff5a6e; }

/* Mention sous les champs */
.formulaire__info {
    font-size: .8rem;
    font-style: italic;
    color: var(--gris);
}

.formulaire .btn { justify-self: start; }

/* Messages globaux (succes / erreur) */
.alerte {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: .95rem;
}
.alerte--succes { background: rgba(46, 204, 113, .12); border: 1px solid rgba(46, 204, 113, .4); color: #8ef0b5; }
.alerte--erreur { background: rgba(224, 58, 80, .12); border: 1px solid rgba(224, 58, 80, .45); color: #ff9aa6; }

/* Tablette et plus : Nom / Prenom cote a cote */
@media (min-width: 640px) {
    .formulaire__ligne { grid-template-columns: 1fr 1fr; }
    .contact__form { padding: 40px; }
}



/* ==========================================================
   SECTION PRESSE
   ========================================================== */
.presse {
    display: grid;
    gap: 32px;
}

/* Liste des articles */
.articles {
    display: grid;
    gap: 16px;
}
.article__lien {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 24px;
    border: 1px solid var(--gris-ligne);
    border-radius: var(--rayon);
    background: var(--noir-3);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition);
}
.article__lien::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--degrade);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .4s ease;
}
.article__lien:hover {
    transform: translateX(4px);
    border-color: rgba(224, 58, 80, .5);
}
.article__lien:hover::before { transform: scaleY(1); }

.article__meta {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rouge);
}
.article__titre {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--blanc);
}
.article__extrait {
    font-size: .9rem;
    font-style: italic;
    font-weight: 300;
}
.article__lire {
    margin-top: 4px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--blanc);
}

/* Ordinateur : vidéo à gauche, articles à droite */
@media (min-width: 960px) {
    .presse {
        grid-template-columns: 1.3fr 1fr;
        align-items: start;
        gap: 48px;
    }
}


/* --- Footer : bulle LinkedIn --- */
.footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 12px 0 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: var(--noir-3);
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.footer__social img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.footer__social:hover {
    background: var(--degrade);
    border-color: transparent;
    transform: translateY(-3px);
}

/* Disparition en douceur du message de succès */
.alerte {
    transition: opacity .6s ease, transform .6s ease;
}
.alerte.is-masquee {
    opacity: 0;
    transform: translateY(-8px);
}