:root{
  --bg:#fbfcfb;
  --bg2:#f2f6f4;
  --ink:#0b1220;

  /* lisibilité renforcée */
  --muted: rgba(11,18,32,.84);
  --muted2: rgba(11,18,32,.66);

  --accent:#3f856a;
  --soft: rgba(11,18,32,.06);

  --max: 920px;
  --pad: clamp(18px, 3vw, 28px);

  --r: 18px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow: 0 18px 48px rgba(11,18,32,.08);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--ink);
  background:
    radial-gradient(900px 540px at 12% -10%, rgba(63,133,106,.10), transparent 60%),
    radial-gradient(900px 540px at 90% 0%, rgba(11,18,32,.06), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  line-height: 1.68;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color: inherit; text-decoration: none; }
.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ================= HEADER ================= */

.site-header{
  position: relative;
  top: 0;
  z-index: 50;
  background: rgba(251,252,251,.78);
  backdrop-filter: blur(14px);

  /* IMPORTANT : on retire le décalage global */
  transform: none;
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap: 18px;              /* un poil plus d’air */
  padding: 14px 18px;     /* 👈 clé : indent gauche + droite */
}

/* On ne veut plus des zones "élastiques" qui recentrent */
.head-side{
  flex: 0 0 auto;
  display: contents; /* n'ajoute pas de boîte, garde le HTML tel quel */
}

/* Logo */
.brand img{
  width: 126px;
  height:auto;
  display:block;
}

/* Nav desktop */
.nav{
  display:flex;
  gap: 14px;
  align-items:center;
  font-size: 14px;
  color: var(--muted);
  margin-left: 36px;
}

.nav a{
  padding: 10px 10px;
  border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav a:hover{
  background: rgba(63,133,106,.10);
  color: rgba(11,18,32,.92);
}

/* CTA à droite */
.cta{
  margin-left: auto;
  margin-right: 144px;
  display:inline-flex;
  align-items:center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  color: rgba(11,18,32,.92);
  background: #e7eff8;
  border: none;
  transition: transform .15s var(--ease),
              background .2s var(--ease),
              box-shadow .2s var(--ease);
}
.cta:hover{
  transform: translateY(-1px);
  background: #d7e1ef;
  box-shadow: 0 12px 28px rgba(11,18,32,.10);
}

/* Mobile nav */
.menu{ display:none; }
.nav-mobile{ display:none; padding: 0 0 14px; }
.nav-mobile.open{ display:block; }
.nav-mobile a{
  display:block;
  padding: 12px;
  border-radius: 12px;
  color: var(--muted);
}
.nav-mobile a:hover{
  background: rgba(63,133,106,.10);
  color: rgba(11,18,32,.92);
}

/* ================= HERO ================= */

.hero{
  padding: 0 0 clamp(40px, 6vw, 70px);
}

.kicker{
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(11,18,32,.62);
  font-weight: 700;
}

h1{
  margin: 0 0 16px;
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lead{
  margin: 0;
  max-width: 66ch; /*  on rend l'espace perdu */
  color: var(--muted);
  font-size: 16.5px;

  padding-left: 12px;
}

.lead-sep{
  display:block;
  height: 10px; /* ajuste à 8 / 12 selon ton goût */
}

.lead-block{
  padding-left: 12px;
  border-left: 2px solid rgba(11,18,32,.08);
}

.inline-link{
  margin-left: .35em;
  color: rgba(11,18,32,.88);
  border-bottom: 1px solid rgba(11,18,32,.25);
  padding-bottom: 1px;
}
.inline-link:hover{
  border-bottom-color: rgba(63,133,106,.6);
}

/* image hero */
.hero-image{
  margin: clamp(6px, 1.2vw, 12px) 0 0;
  border-radius: calc(var(--r) + 10px);
  overflow: hidden;
  border: 1px solid rgba(11,18,32,.06);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.55);
}

.hero-photo{
  height: clamp(220px, 30vw, 340px);
  background-image: url("../img/Ordi_web.png");
  background-size: cover;
  background-position: center;
  opacity: .96;
  position: relative;
}
.hero-photo::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 420px at 20% 10%, rgba(63,133,106,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.18));
  pointer-events:none;
}

.hero-band{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #e7eff8;
  padding: clamp(28px, 4vw, 44px) 0;
  margin-bottom: clamp(22px, 3vw, 32px);
  border-top: 1px solid rgba(11,18,32,.06);
  border-bottom: 1px solid rgba(11,18,32,.06);
}

.hero-band .wrap{
  /* si un jour tu veux wrapper ici */
}

.hero-cta{
  margin-top: 6px;
  opacity: 0.9;
  padding-left : 6px;
}

.hero-cta a{
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  opacity: 0.8;
}

/* ================= BLOCS & SECTIONS ================= */

.block{
  scroll-margin-top: 90px;
}

.duo{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.5vw, 28px);
  margin-bottom: clamp(22px, 3vw, 32px);
}

.section{
  padding: clamp(34px, 4.5vw, 54px) 0;
}

/* En-tête de section avec icône */
.section-head{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 16px;
}

/* Espace garanti entre Action (duo) et Process */
#action > .wrap.duo{
  margin-bottom: 0 !important;
  padding-bottom: 0;
}

.icon{
  width: 24px;
  height: 24px;
  color: rgba(11,18,32,.78);
  flex: 0 0 auto;
}
.icon svg{
  width:100%;
  height:100%;
  display:block;
  overflow: visible;
}

.section-name{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(11,18,32,.65);
}

/* contenu texte */
.prose{ max-width: 74ch; }
.prose p{
  margin: 0 0 14px;
  color: var(--muted);
}
.prose p.spaced{ margin-bottom: 28px; }

.note{
  margin: 14px 0 0;
  color: var(--muted2);
  font-size: 13px;
  max-width: 74ch;
}

#approche .section:last-child{
  padding-bottom: 8px;
}

/* --- Foundations (bloc conviction) --- */

.foundations{
  padding: 0px 0 22px;
}

.foundation-quote{
  margin: 0 auto;
  max-width: 62ch;
  text-align: center;
  line-height: 1.55;
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.84;
  position: relative;
  padding: 12px 0;
}

/* Filets fins au-dessus et en dessous */
.foundation-quote::before,
.foundation-quote::after{
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin: 0 auto;
  background: currentColor;
  opacity: 0.20;
}

.foundation-quote::before{ margin-bottom: 18px; }
.foundation-quote::after{ margin-top: 18px; }

/* ================= PROCESS (sans titre) ================= */

.steps{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 12px;
}

.step-t{
  display:block;
  font-weight: 800;
  color: rgba(11,18,32,.92);
}

.step-d{
  display:block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

.process-band{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #e7eff8;
  border-top: 1px solid rgba(11,18,32,.06);
  border-bottom: 1px solid rgba(11,18,32,.06);
  padding: clamp(48px, 7vw, 80px) 0;
  display: flex;
  align-items: center;
}

.process-spacer{
  height: clamp(22px, 3vw, 32px);
}

.process{
  padding-top: 0;
  margin-bottom: 0;
}

/* ================= CONTACT (mail dans Échange) ================= */

.contact{
  margin-top: 14px;
  display:flex;
  flex-direction: column;
  gap: 10px;
  align-items:flex-start;
}

.contact-link{
  display:inline-block;
  font-weight: 650;
  border-bottom: 1px solid rgba(11,18,32,.20);
  padding-bottom: 2px;
}
.contact-link:hover{
  border-bottom-color: rgba(63,133,106,.55);
}

/* ================= FORM (utilisé dans le drawer) ================= */

/* Blindage : garantit que hidden cache vraiment */
[hidden] { display: none !important; }

.contact-form{
  max-width: 620px;
  margin-top: 0;
}

.form-row{
  display:flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-row label{
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(11,18,32,.55);
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea{
  font-family: inherit;
  font-size: 15px;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid rgba(11,18,32,.14);
  background: transparent;
  outline: none;
  transition: border-color .2s var(--ease);
}

.form-row input:focus,
.form-row textarea:focus{
  border-bottom: 1px solid rgba(11,18,32,.45);
}

.contact-form textarea{
  resize: vertical;
  min-height: 90px;
}

.form-row-inline{
  margin-top: 4px;
}

.cb{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(11,18,32,.75);
  user-select: none;
}

.cb input{
  width: 16px;
  height: 16px;
}

.btn-primary{
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,.14);
  background: #e7eff8;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.btn-primary:hover{
  background: rgba(11,18,32,.06);
  border-color: rgba(11,18,32,.28);
}

.hp{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* Status message: animé + codes couleur + icône */
.form-status{
  margin: 10px 16px 0;
  font-size: 13px;
  font-weight: 600;

  display: flex;
  align-items: flex-start;
  gap: 10px;

  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}

.form-status.is-show{
  opacity: 1;
  transform: translateY(0);
}

.form-status::before{
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.form-status.is-error{
  color: #b42318;
}
.form-status.is-error::before{
  content: "!";
  background: rgba(180,35,24,.12);
  color: #b42318;
  border: 1px solid rgba(180,35,24,.25);
}

.form-status.is-success{
  color: #067647;
}
.form-status.is-success::before{
  content: "✓";
  background: rgba(6,118,71,.12);
  color: #067647;
  border: 1px solid rgba(6,118,71,.25);
}

/* Bouton submit: état "envoi" */
.contact-form button[type="submit"][aria-busy="true"]{
  opacity: .75;
  cursor: wait;
}

/* ================= CONTACT DRAWER ================= */

.contact-drawer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  pointer-events: none;
}

.contact-drawer__backdrop{
  position: fixed;
  inset: 0;
  background: rgba(11,18,32,.20);
  opacity: 0;
  transition: opacity .20s var(--ease);
  pointer-events: none;
}

.contact-drawer__panel{
  margin: 0 auto;
  max-width: 920px;
  width: calc(100% - 24px);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(11,18,32,.10);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 40px rgba(11,18,32,.10);
  transform: translateY(110%);
  transition: transform .24s var(--ease);
  pointer-events: auto;

  /* pour mobile / petits écrans */
  max-height: 70vh;
  overflow: auto;
}

.contact-drawer[data-closed="false"]{
  pointer-events: auto;
}
.contact-drawer[data-closed="false"] .contact-drawer__panel{
  transform: translateY(0);
}
.contact-drawer[data-closed="false"] .contact-drawer__backdrop{
  opacity: 1;
  pointer-events: auto;
}

.contact-drawer__head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(11,18,32,.06);
}

.contact-drawer__title{
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(11,18,32,.75);
}

.contact-drawer__close{
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: rgba(11,18,32,.55);
  padding: 6px 8px;
  border-radius: 10px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.contact-drawer__close:hover{
  background: rgba(11,18,32,.06);
  color: rgba(11,18,32,.78);
}

.contact-drawer .contact-form{
  max-width: 700px;
  padding: 14px 16px 18px;
}

/* Mobile : drawer plus grand (confort de saisie) */
@media (max-width: 560px){
  .contact-drawer__panel{
    width: calc(100% - 16px);
    max-height: 82vh;
  }
}

/* ================= FOOTER ================= */

.site-footer{
  padding: 34px 0 44px;
  border-top: 1px solid rgba(11,18,32,.06);
  color: var(--muted2);
  font-size: 13px;
}

.footer-row{
  display:flex;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items:center;
}

.footer-link{
  color: var(--muted2);
}
.footer-link:hover{
  color: rgba(11,18,32,.78);
  border-bottom: 1px solid rgba(63,133,106,.45);
}

.sep{
  margin: 0 8px;
  opacity: .55;
}

/* ================= LEGAL ================= */

body.legal .legal-hero .lead{
  margin-top: 0;
}

/* Équilibre visuel : les deux colonnes finissent au même niveau */
body.legal .duo{
  align-items: stretch;
}

body.legal .duo .section{
  display: flex;
  flex-direction: column;
}

body.legal .duo .section .prose{
  flex: 1;
}


.legal .section[aria-label="Hébergement"] .prose{
  max-width: 36ch; /* évite une colonne trop large */
}

/* Icônes plus discrètes pour la page légale */
body.legal .section-head .icon{
  width: 16px;
  height: 16px;
  opacity: .5;
  margin-right: 6px;
}

body.legal .section-name{
  letter-spacing: .08em;
}

/* Petite note de remplissage (discrète, sans casser le style) */
body.legal .legal-note{
  margin-top: 16px;
  max-width: 52ch; /* évite un “pavé” si ça wrap */
}

body.legal .legal-lines p{
  margin: 0 0 10px;
}
body.legal .legal-lines p:last-child{
  margin-bottom: 0;
}

body.legal .wrap.duo{
  gap: 56px;
}

/* Bouton retour — centré et respirant */
body.legal .legal-back{
  text-align: center;
  margin: 32px 0 16px;
  opacity: .85;
}

body.legal .legal-back a{
  font-size: .9rem;
  letter-spacing: .02em;
}

/* ================= ANIMATION ================= */

.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 920px){

  .nav{ display:none; }
  .cta{ display:none; }

  /* bouton Menu à droite */
  .menu{
    display:inline-flex;
    margin-left:auto;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(11,18,32,.14);
    background: rgba(255,255,255,.72);
    font-weight: 650;
  }
  

  /* ===== MENU MOBILE : PANNEAU À DROITE ===== */
  .nav-mobile{
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    width: 240px;

    padding: 12px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(11,18,32,.18);

    text-align: right;
    z-index: 100;
  }

  .nav-mobile a{
    display:block;
    padding: 12px;
    border-radius: 12px;
    text-align: right;
    color: var(--muted);
  }

  .nav-mobile a:hover{
    background: rgba(63,133,106,.10);
    color: rgba(11,18,32,.92);
  }

  .nav-mobile .cta-mobile{
    margin-top: 10px;
    padding: 12px;
    border-radius: 999px;
    background: #cbd8e9;
    color: rgba(11,18,32,.92);
    font-weight: 650;
    text-align: center;
  }

  .foundations{
    padding: 10px 0 16px;
  }

  .foundation-quote{
    text-align: left;
    padding: 10px 0;
    line-height: 1.6;
  }

  .foundation-quote::before,
  .foundation-quote::after{
    margin-left: 0;
  }
  
    /* Duos : repasse en 1 colonne sur mobile */
  .duo{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  /* Mentions légales : on annule le gap desktop (sinon trop large en mobile) */
  body.legal .wrap.duo{
    gap: 22px;
  }
}

@media (max-width: 560px){
  .steps{ grid-template-columns: 1fr; }
}
