/* ==========================================================
   KiteView Retrovision - feuille de style
   Charte : marine #252C5B, rouge #E30613, gris #BDC0CE
   Typo : Montserrat Black (900) + Montserrat Light (300)
   ========================================================== */

:root {
    --marine:      #252C5B;
    --marine-2:    #1C2248;
    --rouge:       #E30613;
    --rouge-2:     #C00510;
    --gris:        #BDC0CE;
    --gris-clair:  #ECEDF2;
    --blanc:       #ffffff;
    --noir:        #231F20;
    --texte:       #3D4260;
    --ligne:       rgba(37, 44, 91, .14);
    --police:      'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --header-h:    76px;
    --rayon:       14px;
    --transition:  .3s ease;
    --largeur-max: 1200px;
    --feuille-r:   28px;          /* rayon des coins des sections (36px sur grand ecran) */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { font-family: var(--police); font-weight: 400; line-height: 1.75; color: var(--texte); background: var(--blanc); 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(--marine); line-height: 1.1; font-weight: 900; }
:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }
p + p { margin-top: 1em; }
::selection { background: var(--rouge); color: var(--blanc); }

.container { width: 100%; max-width: var(--largeur-max); margin-inline: auto; padding-inline: 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; padding: 8px 16px; background: var(--rouge); color: var(--blanc); }
.skip-link:focus { left: 8px; }

/* Partie "legere" des titres, comme VIEW dans le logo */
.leger { font-weight: 300; color: var(--rouge); }

/* Filet facon "-- RETROVISION --" du logo */
.filet { display: inline-flex; align-items: center; gap: 14px; font-weight: 300; font-size: .85rem; letter-spacing: .32em; text-transform: uppercase; color: var(--marine); }
.filet::before, .filet::after { content: ''; width: 34px; height: 2px; background: currentColor; }
.filet--clair { color: var(--gris); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 30px; border: 2px solid transparent; border-radius: 999px; font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: transform var(--transition), background-color var(--transition), color var(--transition), border-color var(--transition); }
.btn:hover { transform: translateY(-2px); }
.btn--rouge { background: var(--rouge); color: var(--blanc); }
.btn--rouge:hover { background: var(--rouge-2); }
.btn--contour { border-color: var(--marine); color: var(--marine); }
.btn--contour:hover { background: var(--marine); color: var(--blanc); }
.btn--grand { padding: 20px 38px; font-size: .85rem; }

/* Header */
.header { position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100; border-bottom: 1px solid transparent; transition: border-color var(--transition); }
/* Le flou est sur un pseudo-element : un backdrop-filter sur .header
   enfermerait le menu mobile (position: fixed) dans la hauteur du header. */
.header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .9); -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(--ligne); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.header__logo { position: relative; z-index: 110; display: block; }

/* Logo en code (sans image) : symbole aux 2 croissants + KITE (Black) VIEW (Light rouge) + RETROVISION */
.marque { display: flex; align-items: center; gap: 12px; line-height: 1; }
/* memes mesures que les croissants du hero : 1em = 1/692 de la largeur du symbole */
.marque__symbole { position: relative; flex: none; width: 46px; aspect-ratio: 692 / 518; font-size: calc(46px / 692); }
.marque__croissant { position: absolute; border-radius: 50%; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.marque__croissant--marine { left: -162em; top: 61em; width: 570em; height: 398em; box-shadow: 224em 0 0 60em var(--marine); }
.marque__croissant--rouge { left: -87em; top: 156em; width: 290em; height: 208em; box-shadow: 117em 0 0 30em var(--rouge); }
.marque:hover .marque__croissant--rouge { transform: translateX(-40em); }
.marque:hover .marque__croissant--marine { transform: translateX(30em); }
.marque__texte { display: flex; flex-direction: column; gap: 5px; }
.marque__nom { font-size: 1.2rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--marine); }
.marque__nom span { font-weight: 300; color: var(--rouge); }
.marque__sous { display: flex; align-items: center; gap: 6px; font-size: .5rem; font-weight: 300; letter-spacing: .38em; text-transform: uppercase; color: var(--marine); }
.marque__sous::before, .marque__sous::after { content: ''; flex: 1 1 auto; min-width: 8px; height: 1px; background: currentColor; }

/* Burger */
.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(--marine); 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: var(--blanc); 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: 26px; }
.nav__link { position: relative; font-size: 1.3rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--marine); transition: color var(--transition); }
.nav__link:hover, .nav__link.is-active { color: var(--rouge); }
.nav__link--cta { padding: 10px 26px; border-radius: 999px; background: var(--rouge); color: var(--blanc); }
.nav__link--cta:hover, .nav__link--cta.is-active { background: var(--rouge-2); color: var(--blanc); }
.langues { display: flex; align-items: center; }
.langues li + li::before { content: '|'; margin: 0 10px; color: var(--gris); }
.langues a { font-size: .8rem; font-weight: 300; letter-spacing: .12em; color: var(--marine); }
.langues a.is-active { font-weight: 900; color: var(--rouge); }

/* ---------- Accueil ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 calc(56vw + 20px); background: var(--gris); overflow: hidden; }
.hero__inner { position: relative; z-index: 2; }
.hero__titre { max-width: 12ch; margin: 22px 0 24px; font-size: clamp(2.4rem, 9vw, 4.6rem); letter-spacing: -.01em; text-transform: uppercase; }
.hero__titre .leger { display: block; }
.hero__texte { max-width: 34rem; font-size: 1.05rem; font-weight: 300; color: var(--marine); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Croissants du logo, en grand (CSS uniquement).
   1em = 1/692 de la largeur du motif : les mesures viennent du logo. */
.hero__motif { position: absolute; z-index: 1; bottom: -40px; right: -22%; width: 84vw; aspect-ratio: 692 / 518; font-size: calc(84vw / 692); pointer-events: none; }
.hero__croissant { position: absolute; border-radius: 50%; }
.hero__croissant--marine { left: -162em; top: 61em; width: 570em; height: 398em; box-shadow: 224em 0 0 60em var(--marine); }
.hero__croissant--rouge { left: -87em; top: 156em; width: 290em; height: 208em; box-shadow: 117em 0 0 30em var(--rouge); }

.js .hero__croissant--marine { animation: croissant-marine 1.4s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero__croissant--rouge { animation: croissant-rouge 1.4s .25s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes croissant-marine { from { opacity: 0; transform: translateX(120em); } to { opacity: 1; transform: none; } }
@keyframes croissant-rouge { from { opacity: 0; transform: translateX(-90em); } to { opacity: 1; transform: none; } }

.hero__scroll { display: none; position: absolute; z-index: 2; left: 50%; bottom: 32px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--marine); border-radius: 999px; }
.hero__scroll::before { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--rouge); animation: molette 1.8s ease-in-out infinite; }
@keyframes molette { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section--alt { background: var(--gris-clair); }
.section--marine { background: var(--marine); color: var(--gris); }
.section--marine .section__titre { color: var(--blanc); }
/* Sur fond marine, le rouge de la charte manque de contraste : rouge eclairci */
.section--marine .leger, .footer .leger { color: #FF3341; }
.section__entete { max-width: 720px; margin-bottom: 44px; }
.section__titre { font-size: clamp(2rem, 6vw, 3.4rem); text-transform: uppercase; letter-spacing: .02em; }
.surtitre { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: .75rem; font-weight: 300; letter-spacing: .28em; text-transform: uppercase; color: var(--marine); }
.surtitre span { font-weight: 900; letter-spacing: .08em; color: var(--rouge); }
.surtitre::after { content: ''; width: 40px; height: 2px; background: var(--rouge); }
.surtitre--clair { color: var(--gris); }
.intro { font-size: 1.15rem; font-weight: 300; color: var(--marine); }
.grille { display: grid; gap: 32px; }

/* Etiquettes (pilules a bord fin) */
.etiquettes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.etiquettes li { padding: 7px 16px; border: 1px solid var(--ligne); border-radius: 999px; font-size: .78rem; font-weight: 400; color: var(--marine); background: var(--blanc); }

/* ---------- 01 Qui sommes-nous ---------- */
.apropos { align-items: center; }
.apropos strong { font-weight: 900; color: var(--marine); }
.apropos__visuel { position: relative; padding: 0 0 40px 24px; }
.photo-cadre { position: relative; border-radius: var(--rayon); }
/* cadre rouge decale derriere la photo */
.photo-cadre::before { content: ''; position: absolute; inset: 22px -18px -18px 22px; z-index: -1; border: 2px solid var(--rouge); border-radius: var(--rayon); }
.photo-cadre img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--rayon); background: var(--gris); }
.chiffre-cle { position: absolute; left: 0; bottom: 0; max-width: 230px; padding: 22px 24px; border-radius: var(--rayon); background: var(--marine); color: var(--gris); box-shadow: 0 24px 50px -24px rgba(37, 44, 91, .6); }
.chiffre-cle__nombre { font-size: 3.4rem; font-weight: 900; line-height: 1; color: var(--blanc); }
.chiffre-cle__nombre::after { content: '+'; color: #FF3341; }
.chiffre-cle__texte { margin-top: 8px; font-size: .8rem; font-weight: 300; line-height: 1.5; }

/* ---------- 02 Pourquoi Kiteview : moniteur embarque ---------- */
.section--nuit { background: #0C1030; color: var(--gris); }
.section--nuit .section__titre { color: var(--blanc); }
.section--nuit .leger { color: #FF3341; }
.moniteur { position: relative; padding: 12px; border-radius: 26px; background: linear-gradient(160deg, #2A3160, #141838 60%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.moniteur__barre { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 10px 12px; font-size: .7rem; letter-spacing: .18em; color: var(--gris); }
.moniteur__marque { font-weight: 900; letter-spacing: .3em; color: var(--blanc); }
.moniteur__marque span { font-weight: 300; color: #FF3341; }
.moniteur__rec { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; color: #FF3341; }
.moniteur__rec::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #FF3341; box-shadow: 0 0 10px #FF3341; animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 50% { opacity: .15; } }
.moniteur__heure { font-variant-numeric: tabular-nums; }
/* ecran decoupe en vues : le "gap" sur fond noir dessine les separations */
.moniteur__ecran { position: relative; display: grid; gap: 2px; border-radius: 16px; background: #000; overflow: hidden; }
.moniteur__ecran::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }
.vue { position: relative; padding: 46px 26px 30px; background: radial-gradient(120% 90% at 30% 20%, #1D2452, #0B0E26 70%); transition: background-color var(--transition); }
/* coins de viseur (haut-gauche et bas-droite) */
.vue::before, .vue::after { content: ''; position: absolute; width: 18px; height: 18px; border-color: rgba(255, 255, 255, .35); border-style: solid; transition: border-color var(--transition), transform var(--transition); }
.vue::before { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.vue::after { right: 12px; bottom: 12px; border-width: 0 2px 2px 0; }
.vue:hover::before, .vue:hover::after { border-color: #FF3341; }
.vue:hover::before { transform: translate(4px, 4px); }
.vue:hover::after { transform: translate(-4px, -4px); }
.vue__cam { position: absolute; top: 14px; right: 16px; font-size: .62rem; font-weight: 400; letter-spacing: .2em; color: rgba(189, 192, 206, .7); }
.vue__icone { width: 44px; height: 44px; margin-bottom: 18px; fill: none; stroke: var(--blanc); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--transition); }
.vue:hover .vue__icone { stroke: #FF3341; }
.vue--ia .vue__icone path:first-child { stroke: #FF3341; }
.vue__titre { margin-bottom: 8px; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--blanc); }
.vue p { font-size: .88rem; font-weight: 300; line-height: 1.6; }

/* ---------- 03 Qualite ---------- */
.qualite { align-items: center; }
.qualite strong, .qualite__conclusion strong { font-weight: 900; color: var(--marine); }
.etapes { position: relative; display: grid; gap: 4px; margin-top: 30px; counter-reset: etape; }
.etapes::before { content: ''; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--rouge), var(--marine)); }
.etapes li { position: relative; display: flex; align-items: center; gap: 18px; padding: 8px 0; font-weight: 400; color: var(--marine); }
.etapes span { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--marine); background: var(--gris-clair); font-size: .72rem; font-weight: 900; }
.etapes li:last-child span { border-color: var(--rouge); background: var(--rouge); color: var(--blanc); }

/* composition de photos facon fabricant d'ecrans */
.qualite__photos { position: relative; padding: 0 0 26% 0; }
.qualite__photo img { width: 100%; height: 100%; object-fit: cover; background: var(--gris); }
.qualite__photo--1 { width: 78%; margin-left: auto; border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4 / 5; }
.qualite__photo--2 { position: absolute; left: 0; bottom: 0; width: 52%; aspect-ratio: 1; border-radius: var(--rayon); overflow: hidden; border: 6px solid var(--gris-clair); box-shadow: 0 30px 60px -30px rgba(37, 44, 91, .6); }
.badge-norme { position: absolute; top: 8%; left: 4%; display: flex; flex-direction: column; padding: 14px 18px; border-radius: 12px; background: var(--blanc); box-shadow: 0 20px 40px -20px rgba(37, 44, 91, .5); }
.badge-norme::before { content: ''; width: 26px; height: 3px; margin-bottom: 8px; background: var(--rouge); }
.badge-norme__titre { font-size: 1rem; font-weight: 900; letter-spacing: .06em; color: var(--marine); }
.badge-norme__texte { font-size: .72rem; font-weight: 300; letter-spacing: .2em; color: var(--texte); }

.qualite__listes { margin-top: 70px; padding-top: 50px; border-top: 1px solid var(--ligne); }
.qualite__sous-titre { font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; }
.qualite__listes .etiquettes { margin-top: 18px; }
.certifs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.certifs li { display: grid; place-items: center; min-width: 84px; padding: 14px 16px; border-radius: 10px; background: var(--marine); font-size: .85rem; font-weight: 900; letter-spacing: .08em; color: var(--blanc); }
.qualite__conclusion { max-width: 760px; margin: 60px auto 0; text-align: center; font-size: 1.1rem; font-weight: 300; color: var(--marine); }

/* ---------- Transitions entre sections ---------- */
/* 1. Rideau : le hero reste colle en haut (sticky) a l'interieur de .rideau,
      la section 01 monte par-dessus. */
.rideau { position: relative; }
.rideau .hero { position: sticky; top: 0; z-index: 0; }
/* 2. Feuilles : la section remonte sur la precedente (margin-top negatif)
      avec de grands coins arrondis et une ombre vers le haut. */
.section--feuille { position: relative; z-index: 1; margin-top: calc(var(--feuille-r) * -1); border-radius: var(--feuille-r) var(--feuille-r) 0 0; box-shadow: 0 -24px 40px -28px rgba(12, 16, 48, .45); }
.section--feuille.section { padding-top: calc(90px + var(--feuille-r) / 2); }
.section--feuille:not(.section--alt):not(.footer) { background: var(--blanc); }
/* 3. Animation liee au defilement (navigateurs recents ; sinon tout reste fixe).
      On anime le contenu, pas la feuille : sinon on verrait le fond de la page sur les cotes. */
@supports (animation-timeline: view()) {
    .section--feuille > .container { animation: feuille-entree linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
}
@keyframes feuille-entree { from { opacity: .2; translate: 0 60px; scale: .97; } to { opacity: 1; translate: none; scale: none; } }
/* 4. Sortie de l'accueil : js.js (bloc 8) met a jour --sortie de 0 a 1 pendant le defilement */
.rideau .hero { --sortie: 0; }
.rideau .hero__inner { opacity: calc(1 - var(--sortie) * .9); transform: translateY(calc(var(--sortie) * -60px)) scale(calc(1 - var(--sortie) * .08)); filter: blur(calc(var(--sortie) * 3px)); }
.rideau .hero__motif { opacity: calc(1 - var(--sortie) * .8); scale: calc(1 + var(--sortie) * .15); }
.rideau .hero::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: var(--marine); opacity: calc(var(--sortie) * .35); }

/* ---------- Visuel produit a cheval entre deux sections ---------- */
/* Bande a part entiere (pas de superposition avec le contenu des sections) :
   fond moitie couleur du bloc du dessus / moitie couleur du bloc du dessous.
   Le bloc rouge est centre sur la ligne de jonction, le produit detoure depasse au-dessus.
   padding haut = padding bas, sinon le bloc n'est plus centre sur la jonction. */
.passerelle { position: relative; z-index: 0; padding: 90px 0; background: var(--haut); }
/* moitie basse = debut de la section suivante, avec les memes coins arrondis que les "feuilles" */
.passerelle::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; z-index: -1; background: var(--bas); border-radius: var(--feuille-r) var(--feuille-r) 0 0; box-shadow: 0 -24px 40px -28px rgba(12, 16, 48, .45); }
.passerelle--droite { --haut: var(--blanc); --bas: #0C1030; }
.passerelle--gauche { --haut: var(--gris-clair); --bas: var(--marine); }
.passerelle .container { display: flex; justify-content: flex-end; }
.passerelle--gauche .container { justify-content: flex-start; }
.passerelle__bloc { position: relative; width: min(100%, 300px); height: 116px; border-radius: 18px; background: var(--rouge); box-shadow: 0 30px 60px -30px rgba(12, 16, 48, .7); }
/* filet decale, comme le cadre de la photo Qui sommes-nous */
.passerelle__bloc::before { content: ''; position: absolute; inset: 12px -12px -12px 12px; z-index: -1; border: 2px solid var(--gris); border-radius: 18px; }
.passerelle__produit { position: absolute; left: 5%; bottom: 24px; width: 90%; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .35)); }
.section--avant-passerelle { padding-bottom: 30px; }
.section--apres-passerelle { padding-top: 50px; }

/* Catalogue */
.catalogue { display: grid; gap: 36px; align-items: center; }
.catalogue__texte { max-width: 36rem; margin-top: 18px; font-size: 1.05rem; font-weight: 300; }
.catalogue .btn { justify-self: start; }

/* ---------- 05 Contact ---------- */
.contact { display: grid; gap: 40px; align-items: start; }
.contact .section__entete { margin-bottom: 0; }
.contact .section__entete > p:last-child { margin-top: 22px; max-width: 30rem; font-weight: 300; font-size: 1.05rem; color: var(--marine); }
.degrade { font-weight: 300; color: var(--rouge); }
.trait { display: block; width: 60px; height: 3px; margin-top: 22px; background: var(--rouge); border-radius: 2px; }

/* carte du formulaire : fond marine, coins de viseur comme le moniteur */
.contact__form { position: relative; padding: 34px 22px 30px; border-radius: 22px; background: radial-gradient(120% 80% at 85% 0%, #343C76, var(--marine) 45%, #161B42); color: var(--gris); box-shadow: 0 40px 80px -40px rgba(12, 16, 48, .7); }
.contact__form::before, .contact__form::after { content: ''; position: absolute; width: 22px; height: 22px; border: 0 solid rgba(255, 255, 255, .35); pointer-events: none; }
.contact__form::before { top: 14px; left: 14px; border-width: 2px 0 0 2px; }
.contact__form::after { right: 14px; bottom: 14px; border-width: 0 2px 2px 0; }

.formulaire { display: grid; gap: 22px; }
.formulaire__ligne { display: grid; gap: 22px; }
.champ label { display: block; margin-bottom: 9px; font-size: .7rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--blanc); }
.champ input[type="text"], .champ input[type="email"], .champ textarea {
    width: 100%; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px;
    background: rgba(255, 255, 255, .05); color: var(--blanc); font-size: 1rem; /* >= 16px : pas de zoom auto sur iPhone */
    font-weight: 400; transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}
.champ textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.champ input::placeholder, .champ textarea::placeholder { color: rgba(189, 192, 206, .55); font-weight: 300; }
.champ input:hover, .champ textarea:hover { border-color: rgba(255, 255, 255, .28); }
.champ input:focus, .champ textarea:focus { outline: none; border-color: #FF3341; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 4px rgba(255, 51, 65, .18); }
/* remplissage automatique du navigateur : garder le fond sombre */
.champ input:-webkit-autofill { -webkit-text-fill-color: var(--blanc); -webkit-box-shadow: 0 0 0 100px #2C3466 inset; caret-color: var(--blanc); }

/* captcha : le calcul en gros, champ de reponse court */
.champ:has(#sec) { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 18px; border: 1px dashed rgba(255, 255, 255, .2); border-radius: 14px; }
.champ:has(#sec) label { flex: 1 1 auto; margin: 0; font-size: 1.15rem; letter-spacing: .06em; line-height: 1.5; }
.champ #sec { width: 90px; flex: none; text-align: center; font-size: 1.15rem; font-weight: 900; }

.formulaire__info { font-size: .78rem; font-style: italic; font-weight: 300; color: rgba(189, 192, 206, .8); }
.formulaire .btn { justify-self: start; }
.btn--plein { background: var(--rouge); color: var(--blanc); }
.btn--plein:hover { background: var(--rouge-2); box-shadow: 0 14px 30px -12px rgba(227, 6, 19, .7); }

/* erreurs (si la verification JS ou PHP ajoute .champ--erreur / .champ__erreur) */
.champ--erreur input[type="text"], .champ--erreur input[type="email"], .champ--erreur textarea { border-color: #FF5A6E; background: rgba(255, 90, 110, .08); }
.champ__erreur { margin-top: 7px; font-size: .78rem; color: #FF9AA6; }

/* messages apres envoi */
.alerte { margin-bottom: 22px; padding: 14px 18px; border-radius: 12px; font-size: .9rem; transition: opacity .6s ease, transform .6s ease; }
.alerte.is-masquee { opacity: 0; transform: translateY(-8px); }
.alerte--succes { background: rgba(46, 204, 113, .14); border: 1px solid rgba(46, 204, 113, .45); color: #9DF3C2; }
.alerte--erreur { background: rgba(255, 90, 110, .14); border: 1px solid rgba(255, 90, 110, .5); color: #FFB0B9; }

/* Footer */
.footer { padding: calc(56px + var(--feuille-r)) 0 40px; background: var(--marine-2); color: var(--gris); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer__marque { font-size: 1.8rem; font-weight: 900; letter-spacing: .3em; text-transform: uppercase; color: var(--blanc); }
.footer__marque .leger { letter-spacing: .3em; }
.footer__copy { margin-top: 18px; font-size: .78rem; font-weight: 300; }

/* Apparition au scroll (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 ---------- */
@media (min-width: 640px) {
    .container { padding-inline: 32px; }
    .contact__form { padding: 46px 42px 40px; }
    .formulaire__ligne { grid-template-columns: 1fr 1fr; }
    .moniteur__ecran { grid-template-columns: repeat(2, 1fr); }
    .moniteur { padding: 16px; }
}
@media (min-width: 960px) {
    .burger { display: none; }
    .nav { position: static; flex-direction: row; gap: 32px; background: none; opacity: 1; visibility: visible; }
    .nav__list { flex-direction: row; gap: 28px; }
    .nav__link { font-size: .74rem; letter-spacing: .12em; }
    .nav__link--cta { padding: 9px 22px; }
    .langues { padding-left: 26px; border-left: 1px solid var(--ligne); }
    .section { padding: 130px 0; }
    .grille--2 { grid-template-columns: 1fr 1fr; gap: 72px; }
    .moniteur__ecran { grid-template-columns: repeat(3, 1fr); }
    .moniteur { padding: 20px 20px 22px; border-radius: 30px; }
    .vue { padding: 54px 32px 38px; }
    .apropos__visuel { padding-left: 40px; }
    .qualite__photos { padding-bottom: 20%; }
    .passerelle { padding: 120px 0; }
    :root { --feuille-r: 44px; }
    .section--feuille.section { padding-top: calc(130px + var(--feuille-r) / 2); }
    .hero__scroll { bottom: calc(var(--feuille-r) + 28px); }
    .passerelle__bloc { width: 440px; height: 170px; border-radius: 22px; }
    .passerelle__produit { bottom: 34px; }
    .section--avant-passerelle { padding-bottom: 40px; }
    .section--apres-passerelle { padding-top: 70px; }
    .hero { padding-bottom: 110px; }
    .hero__motif { top: 50%; bottom: auto; right: -9%; width: min(46vw, 720px); font-size: calc(min(46vw, 720px) / 692); transform: translateY(-50%); }
    .hero__scroll { display: block; }
    .catalogue { grid-template-columns: 1fr auto; gap: 64px; }
    .catalogue .btn { justify-self: end; }
    .contact { grid-template-columns: 1fr 1.35fr; gap: 72px; }
    .contact .section__entete { position: sticky; top: calc(var(--header-h) + 40px); }
}
@media (min-width: 960px) and (max-width: 1100px) {
    .nav { gap: 18px; }
    .nav__list { gap: 16px; }
    .langues { padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}