/* =========================================================
   OEIL'CLAIRE — Feuille de style principale
   Palette dérivée du logo : bleu nuit / orange / blanc
   Typo : Space Grotesk (titres) + Inter (texte courant)
   ========================================================= */

:root{
  /* Couleurs — issues du logo */
  --navy-950:#060D18;
  --navy-900:#0A1524;
  --navy-800:#122238;
  --navy-700:#1B3050;
  --navy-600:#2A4468;

  --orange-500:#F5860C;
  --orange-600:#DB7300;
  --orange-100:#FFE9D2;

  --white:#FFFFFF;
  --grey-50:#F6F8FA;
  --grey-100:#EDF0F4;
  --grey-200:#DCE2EA;
  --grey-300:#C7CFDA;
  --grey-500:#8B96A6;
  --grey-700:#4A5568;
  --ink:#101826;

  /* Typo */
  --font-display:'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body:'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --container-w:1180px;
  --radius-sm:10px;
  --radius-md:16px;
  --radius-lg:24px;
  --shadow-card:0 10px 30px -12px rgba(10,21,36,0.18);
  --shadow-cta:0 12px 24px -10px rgba(245,134,12,0.55);

  --header-h:76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul, ol{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--font-display); line-height:1.15; margin:0 0 .5em; color:var(--navy-900); }
p{ margin:0 0 1em; }
button{ font-family:inherit; cursor:pointer; }
input, select, textarea{ font-family:inherit; font-size:1rem; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

:focus-visible{
  outline:3px solid var(--orange-500);
  outline-offset:2px;
}

.container{
  width:100%;
  max-width:var(--container-w);
  margin:0 auto;
  padding:0 24px;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:0;
  background:var(--orange-500);
  color:var(--white);
  padding:12px 20px;
  z-index:2000;
  border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

/* ---------- Boutons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5em;
  font-family:var(--font-display);
  font-weight:600;
  font-size:1rem;
  padding:14px 28px;
  border-radius:999px;
  border:2px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn:active{ transform:translateY(0); }

.btn-primary{
  background:var(--orange-500);
  color:var(--white);
  box-shadow:var(--shadow-cta);
}
.btn-primary:hover{ background:var(--orange-600); }

.btn-ghost{
  background:transparent;
  border-color:rgba(255,255,255,0.35);
  color:var(--white);
}
.btn-ghost:hover{ border-color:var(--white); background:rgba(255,255,255,0.08); }

.btn-lg{ padding:16px 34px; font-size:1.05rem; }
.btn-sm{ padding:10px 20px; font-size:.9rem; }
.btn-block{ width:100%; }

.btn-whatsapp{
  background:var(--navy-800);
  color:var(--white);
  border-radius:999px;
  padding:12px 22px;
}
.btn-whatsapp:hover{ background:var(--navy-700); }

/* ---------- Header ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  height:var(--header-h);
  display:flex;
  align-items:center;
  background:rgba(255,255,255,0.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--grey-100);
  transition:box-shadow .2s ease;
}
.site-header.is-scrolled{ box-shadow:0 6px 24px -14px rgba(10,21,36,0.25); }

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.brand-mark{ width:38px; height:auto; object-fit:contain; }
.brand-name{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.3rem;
  letter-spacing:-0.01em;
}
.brand-oeil{ color:var(--navy-900); }
.brand-claire{ color:var(--orange-500); }

.main-nav ul{ display:flex; gap:32px; }
.main-nav a{
  font-weight:500;
  font-size:.96rem;
  color:var(--navy-800);
  position:relative;
  padding:6px 0;
}
.main-nav a::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:2px;
  background:var(--orange-500);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .2s ease;
}
.main-nav a:hover::after{ transform:scaleX(1); }

.header-actions{ display:flex; align-items:center; gap:16px; }

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:40px;
  height:40px;
  background:none;
  border:none;
  padding:0;
}
.nav-toggle span{
  display:block;
  width:100%;
  height:2px;
  background:var(--navy-900);
  transition:transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  background:linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color:var(--white);
  overflow:hidden;
  padding:88px 0 96px;
}
.hero-glow{
  position:absolute;
  top:-200px; right:-160px;
  width:600px; height:600px;
  background:radial-gradient(circle, rgba(245,134,12,0.28) 0%, rgba(245,134,12,0) 70%);
  pointer-events:none;
}
.hero-inner{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:48px;
  position:relative;
}
.eyebrow{
  font-family:var(--font-display);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.8rem;
  color:var(--orange-500);
  font-weight:600;
  margin-bottom:14px;
}
.hero h1{
  color:var(--white);
  font-size:clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight:700;
  letter-spacing:-0.01em;
  max-width:14ch;
}
.hero-subtitle{
  color:var(--grey-300);
  font-size:1.12rem;
  max-width:46ch;
  margin-bottom:32px;
}
.hero-actions{ display:flex; flex-wrap:wrap; gap:16px; margin-bottom:36px; }
.hero-trust{ display:flex; flex-wrap:wrap; gap:12px 28px; }
.hero-trust li{
  font-size:.88rem;
  color:var(--grey-300);
  padding-left:22px;
  position:relative;
}
.hero-trust li::before{
  content:"";
  position:absolute;
  left:0; top:50%;
  width:12px; height:12px;
  transform:translateY(-50%);
  border-radius:50%;
  background:rgba(245,134,12,0.18);
  border:2px solid var(--orange-500);
}

.hero-visual{ display:flex; justify-content:center; }
.lens-illustration{ width:100%; max-width:440px; height:auto; }

/* Animations signature — rings & scan */
.pulse-ring{
  transform-origin:center;
  animation:pulse 3.2s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ opacity:.55; transform:scale(1); }
  50%{ opacity:.9; transform:scale(1.04); }
}
.scan-wave{
  transform-origin:260px 190px;
  animation:scan 2.6s ease-out infinite;
  opacity:0;
}
.scan-wave-2{ animation-delay:1.3s; }
@keyframes scan{
  0%{ opacity:.55; r:46; }
  100%{ opacity:0; r:100; }
}
.connect-line{ stroke-dashoffset:0; animation:dash 3s linear infinite; }
@keyframes dash{ to{ stroke-dashoffset:-28; } }

/* ---------- Section génériques ---------- */
section{ padding:88px 0; }
.section-head{ max-width:760px; margin:0 auto 48px; text-align:center; }
.section-head h2{ font-size:clamp(1.7rem, 3vw, 2.3rem); }
.section-head.light .eyebrow{ color:var(--orange-500); }
.section-head.light h2{ color:var(--white); }
.section-lead{ color:var(--grey-300); font-size:1.05rem; }

/* ---------- Solution ---------- */
.solution{ background:var(--grey-50); }
.solution-inner{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:48px;
  align-items:start;
}
.solution h2{ font-size:clamp(1.5rem, 2.6vw, 2.1rem); max-width:16ch; }
.solution-text p{ color:var(--grey-700); font-size:1.08rem; }

/* ---------- Fonctionnalités ---------- */
.feature-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}
.feature-card{
  background:var(--white);
  border:1px solid var(--grey-100);
  border-radius:var(--radius-md);
  padding:32px 28px;
  box-shadow:var(--shadow-card);
  transition:transform .22s ease, box-shadow .22s ease;
}
.feature-card:hover{ transform:translateY(-4px); box-shadow:0 18px 34px -14px rgba(10,21,36,0.22); }
.feature-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:56px; height:56px;
  border-radius:14px;
  background:var(--orange-100);
  color:var(--orange-600);
  margin-bottom:18px;
}
.feature-icon svg{ width:28px; height:28px; }
.feature-card h3{ font-size:1.12rem; margin-bottom:8px; }
.feature-card p{ color:var(--grey-700); font-size:.96rem; margin:0; }

/* ---------- Ou que vous soyez ---------- */
.remote{ background:var(--navy-900); }
.flow{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  max-width:760px;
  margin:0 auto;
}
.flow-node{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  color:var(--white);
  width:150px;
}
.flow-icon{
  width:76px; height:76px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
  background:var(--navy-800);
  border:1.5px solid var(--navy-600);
  color:var(--orange-500);
}
.flow-icon svg{ width:34px; height:34px; }
.flow-label{ font-family:var(--font-display); font-weight:600; font-size:.94rem; text-align:center; }
.flow-connector{ display:flex; gap:6px; align-items:center; }
.flow-connector span{
  width:8px; height:8px;
  border-radius:50%;
  background:var(--orange-500);
  opacity:.35;
  animation:travel 1.8s ease-in-out infinite;
}
.flow-connector span:nth-child(2){ animation-delay:.25s; }
.flow-connector span:nth-child(3){ animation-delay:.5s; }
@keyframes travel{ 0%,100%{ opacity:.25; } 50%{ opacity:1; } }

/* ---------- Installation ---------- */
.installation{ background:var(--grey-50); }
.installation-inner{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:56px;
  align-items:center;
}
.check-list{ margin:24px 0 32px; display:flex; flex-direction:column; gap:12px; }
.check-list li{
  position:relative;
  padding-left:32px;
  font-size:1.02rem;
  color:var(--grey-700);
}
.check-list li::before{
  content:"";
  position:absolute;
  left:0; top:3px;
  width:20px; height:20px;
  border-radius:50%;
  background:var(--orange-500);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.installation-visual{ display:flex; justify-content:center; }
.ring-graphic{ width:100%; max-width:340px; }

/* ---------- Étapes ---------- */
.steps-list{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
  counter-reset:step;
}
.step-card{
  background:var(--white);
  border:1px solid var(--grey-100);
  border-radius:var(--radius-md);
  padding:32px 28px;
  box-shadow:var(--shadow-card);
}
.step-number{
  display:block;
  font-family:var(--font-display);
  font-size:2.1rem;
  font-weight:700;
  color:var(--orange-500);
  margin-bottom:8px;
}
.step-card h3{ font-size:1.15rem; margin-bottom:8px; }
.step-card p{ color:var(--grey-700); margin:0; }

/* ---------- Avantages ---------- */
.advantages{ background:var(--navy-900); color:var(--white); padding:72px 0; }
.advantages-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:24px;
  text-align:center;
}
.advantage{ display:flex; flex-direction:column; align-items:center; gap:14px; }
.advantage-icon{
  width:64px; height:64px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
  background:var(--navy-800);
  color:var(--orange-500);
}
.advantage-icon svg{ width:30px; height:30px; }
.advantage h3{ color:var(--white); font-size:1.02rem; margin:0; }

/* ---------- Formulaire ---------- */
.lead-form{ background:var(--grey-50); }
.form-layout{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:56px;
  align-items:start;
}
.form-intro h2{ font-size:clamp(1.6rem, 2.6vw, 2.1rem); }
.form-intro p{ color:var(--grey-700); }

.contact-block{
  margin-top:32px;
  background:var(--navy-900);
  color:var(--white);
  border-radius:var(--radius-lg);
  padding:32px;
}
.contact-brand{ font-family:var(--font-display); font-size:1.3rem; font-weight:700; margin-bottom:2px; }
.contact-tagline{ color:var(--grey-300); font-style:italic; margin-bottom:18px; }
.contact-phone{
  display:block;
  font-family:var(--font-display);
  font-size:1.5rem;
  font-weight:700;
  color:var(--orange-500);
  margin-bottom:18px;
}
.contact-area{ color:var(--grey-300); font-size:.92rem; margin:18px 0 0; }

form{
  background:var(--white);
  border:1px solid var(--grey-100);
  border-radius:var(--radius-lg);
  padding:36px;
  box-shadow:var(--shadow-card);
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.field{ margin-bottom:18px; }
.field label{
  display:block;
  font-size:.88rem;
  font-weight:600;
  color:var(--navy-800);
  margin-bottom:6px;
}
.field input, .field select, .field textarea{
  width:100%;
  padding:12px 14px;
  border:1.5px solid var(--grey-200);
  border-radius:var(--radius-sm);
  background:var(--white);
  color:var(--ink);
  transition:border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color:var(--orange-500);
  box-shadow:0 0 0 4px rgba(245,134,12,0.14);
  outline:none;
}
.field input.field-touched:invalid,
.field select.field-touched:invalid,
.field textarea.field-touched:invalid{ border-color:#D64545; }
textarea{ resize:vertical; }

.consent{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:.9rem;
  color:var(--grey-700);
  margin-bottom:24px;
  cursor:pointer;
}
.consent input{ margin-top:3px; accent-color:var(--orange-500); width:18px; height:18px; flex-shrink:0; }

.form-success{
  margin-top:18px;
  padding:14px 18px;
  border-radius:var(--radius-sm);
  background:#E8F6EC;
  color:#1E7B3B;
  font-weight:600;
  text-align:center;
}

/* ---------- FAQ ---------- */
.faq-list{ max-width:800px; margin:0 auto; display:flex; flex-direction:column; gap:14px; }
.faq-item{
  background:var(--white);
  border:1px solid var(--grey-100);
  border-radius:var(--radius-md);
  padding:6px 24px;
  box-shadow:var(--shadow-card);
}
.faq-item summary{
  cursor:pointer;
  list-style:none;
  padding:18px 32px 18px 0;
  font-family:var(--font-display);
  font-weight:600;
  color:var(--navy-900);
  position:relative;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:"+";
  position:absolute;
  right:0; top:14px;
  font-size:1.5rem;
  color:var(--orange-500);
  transition:transform .2s ease;
}
.faq-item[open] summary::after{ transform:rotate(45deg); }
.faq-item p{ color:var(--grey-700); padding-bottom:18px; margin:0; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--navy-950); color:var(--grey-300); padding:56px 0 24px; }
.footer-inner{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:32px;
  padding-bottom:32px;
  border-bottom:1px solid var(--navy-800);
}
.footer-brand{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.footer-brand .brand-mark{ width:30px; height:auto; object-fit:contain; }
.footer-tagline{ width:100%; font-size:.86rem; color:var(--grey-500); margin:6px 0 0; }
.footer-nav{ display:flex; flex-direction:column; gap:10px; }
.footer-nav a:hover{ color:var(--orange-500); }
.footer-legal{ display:flex; flex-direction:column; gap:10px; }
.footer-legal a:hover{ color:var(--orange-500); }
.footer-copy{ text-align:center; font-size:.82rem; color:var(--grey-500); margin:24px 0 0; }

/* ---------- Mobile CTA flottant ---------- */
.mobile-cta{
  display:none;
  position:fixed;
  left:16px; right:16px; bottom:16px;
  z-index:900;
  text-align:center;
  background:var(--orange-500);
  color:var(--white);
  font-family:var(--font-display);
  font-weight:600;
  padding:15px;
  border-radius:999px;
  box-shadow:var(--shadow-cta);
}

/* ---------- Scroll reveal ---------- */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; }
  .solution-inner, .installation-inner, .form-layout{ grid-template-columns:1fr; }
  .installation-visual{ order:-1; }
  .feature-grid{ grid-template-columns:repeat(2, 1fr); }
  .steps-list{ grid-template-columns:1fr; }
  .advantages-grid{ grid-template-columns:repeat(2, 1fr); }
  .footer-inner{ grid-template-columns:1fr; gap:24px; }
}

@media (max-width: 760px){
  section{ padding:64px 0; }
  .main-nav{
    position:fixed;
    top:var(--header-h);
    left:0; right:0;
    background:var(--white);
    border-bottom:1px solid var(--grey-100);
    padding:12px 24px 20px;
    transform:translateY(-8px);
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease, transform .2s ease;
  }
  .main-nav.is-open{ opacity:1; transform:translateY(0); pointer-events:auto; }
  .main-nav ul{ flex-direction:column; gap:4px; }
  .main-nav a{ display:block; padding:12px 0; border-bottom:1px solid var(--grey-100); }
  .nav-toggle{ display:flex; }
  .header-actions .btn-sm{ display:none; }
  .mobile-cta{ display:block; }
  body{ padding-bottom:76px; }

  .feature-grid{ grid-template-columns:1fr; }
  .advantages-grid{ grid-template-columns:1fr 1fr; gap:32px 16px; }
  .form-row{ grid-template-columns:1fr; }
  form{ padding:26px 20px; }
  .flow{ flex-direction:column; }
  .flow-connector{ flex-direction:column; height:28px; }
}
