/* ==========================================================
   AXIAL SERVICES CONSEILS — one-pager v1
   ========================================================== */

:root {
  --marine:   #0A2257;   /* fond héro / à propos / pied */
  --marine-2: #0E2C6E;
  --bleu:     #1D4FE0;   /* action, liens */
  --bleu-f:   #163FB8;
  --ciel:     #38B6F0;   /* accent logo */
  --encre:    #12203D;   /* texte principal */
  --gris:     #55627A;   /* texte secondaire */
  --brume:    #EEF3F9;   /* fonds alternés */
  --trait:    #D6DFEB;
  --blanc:    #FFFFFF;
  --erreur:   #C42B3A;
  --ok:       #137A4B;

  --police: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --larg:   1200px;
  --gout:   clamp(20px, 4vw, 40px);
  --entete-h: 76px;
  --rayon: 4px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--entete-h) + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--blanc);
  font-variation-settings: "wdth" 100;
}
body.menu-ouvert { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--ciel); outline-offset: 3px; border-radius: 2px; }

.enveloppe { width: 100%; max-width: var(--larg); margin: 0 auto; padding: 0 var(--gout); }
.visuel-cache, .piege { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saut { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blanc); padding: 10px 16px; font-weight: 600; }
.saut:focus { top: 12px; }

/* ---------- Boutons / liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px;
  font: 600 1rem/1 var(--police);
  text-decoration: none; border-radius: var(--rayon);
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--plein { background: var(--bleu); color: var(--blanc); }
.btn--plein:hover { background: var(--bleu-f); }
.btn--ligne { border-color: rgba(255,255,255,.4); color: var(--blanc); }
.btn--ligne:hover { border-color: var(--blanc); }
.btn--large { min-height: 56px; width: 100%; font-size: 1.0625rem; }

.lien {
  font-weight: 600; text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 1px;
}
.lien:hover { color: var(--bleu-f); }
.lien--clair { color: var(--ciel); }
.lien--clair:hover { color: var(--blanc); }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: var(--marine);
  padding-top: env(safe-area-inset-top, 0px);
  transition: box-shadow .2s;
}
.entete--defile { box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 8px 24px rgba(5,15,40,.35); }
.entete__in { display: flex; align-items: center; gap: 28px; height: var(--entete-h); }
.entete__logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav a:hover { color: var(--blanc); }
.nav .nav__cta {
  color: var(--blanc); background: var(--bleu);
  padding: 11px 18px; border-radius: var(--rayon); font-weight: 600;
}
.nav .nav__cta:hover { background: var(--bleu-f); }
.entete__tel {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blanc); text-decoration: none; font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding-left: 22px; border-left: 1px solid rgba(255,255,255,.18);
}
.entete__tel svg { width: 18px; height: 18px; fill: var(--ciel); }
.burger { display: none; }

/* ---------- Héro ---------- */
.hero {
  background:
    linear-gradient(180deg, transparent 70%, rgba(0,0,0,.12)),
    var(--marine);
  color: var(--blanc);
  padding: clamp(40px, 7vw, 88px) 0 0;
  overflow: hidden;
}
.hero__grille {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero__qui {
  color: var(--ciel); font-weight: 600; font-size: .98rem; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  font-weight: 800;
  font-variation-settings: "wdth" 82;
  letter-spacing: -.01em;
  line-height: 1.04;
  max-width: 16ch;
}
.hero__intro {
  margin: 24px 0 32px; max-width: 46ch;
  font-size: 1.15rem; color: rgba(255,255,255,.8);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Coupe de toiture */
.coupe { margin: 0; }
.coupe svg { width: 100%; height: auto; overflow: visible; }
.couche {
  animation: eclate 1.1s cubic-bezier(.2,.7,.1,1) both;
  animation-delay: calc(.25s + var(--i) * .04s);
}
@keyframes eclate { from { transform: translateY(var(--d)); } to { transform: none; } }

.f-dessus { fill: rgba(255,255,255,.06); stroke: rgba(140,205,255,.75); stroke-width: 1.2; }
.f-avant  { fill: rgba(255,255,255,.12); stroke: rgba(140,205,255,.75); stroke-width: 1.2; }
.f-cote   { fill: rgba(255,255,255,.04); stroke: rgba(140,205,255,.55); stroke-width: 1.2; }
.c-membrane .f-dessus { fill: #1D4FE0; stroke: #6CC8F5; }
.c-membrane .f-avant, .c-membrane .f-cote { fill: #163FB8; stroke: #6CC8F5; }
.c-isolant .f-avant { fill: url(#isolant); }
.c-pontage .f-avant { fill: rgba(255,255,255,.08); stroke-linejoin: round; }
.repere { stroke: rgba(255,255,255,.4); stroke-width: 1; }
.etiquette { fill: rgba(255,255,255,.85); font: 500 14px var(--police); }

.thermo { animation: apparait .6s ease-out 1.4s both; mix-blend-mode: screen; }
@keyframes apparait { from { opacity: 0; } to { opacity: 1; } }
.mire { fill: none; stroke: #FFF36B; stroke-width: 1.6; }
.mire__txt { fill: #FFF36B; font: 600 12.5px var(--police); }

/* Faits sous le héro */
.faits {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid rgba(255,255,255,.14);
}
.faits li {
  padding: 22px 24px 26px 0;
  display: flex; flex-direction: column; gap: 2px;
}
.faits li + li { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.faits strong { font-size: 1.15rem; font-weight: 700; }
.faits span { color: rgba(255,255,255,.65); font-size: .95rem; }

/* ---------- Accréditations ---------- */
.accred { border-bottom: 1px solid var(--trait); }
.accred__grille {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.accred__item {
  display: flex; align-items: center; gap: 18px;
  padding: 28px 24px 28px 0;
}
.accred__item + .accred__item { padding-left: 24px; border-left: 1px solid var(--trait); }
.accred__item img { width: 72px; height: 72px; object-fit: contain; flex: none; }
.accred__item p { margin: 0; font-size: .92rem; line-height: 1.4; color: var(--gris); }
.accred__item strong { display: block; color: var(--encre); font-size: 1.05rem; }

/* ---------- Blocs génériques ---------- */
.bloc { padding: clamp(64px, 9vw, 120px) 0; }
.titre-section {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  font-variation-settings: "wdth" 85;
  letter-spacing: -.005em;
  max-width: 22ch;
}

/* Pour qui */
.clientele__grille {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin-top: 44px;
}
.clientele__grille > div { border-top: 3px solid var(--bleu); padding-top: 18px; }
.clientele h3 { font-size: 1.12rem; margin-bottom: 8px; }
.clientele p { color: var(--gris); font-size: .98rem; margin: 0; }

/* Services */
.services { background: var(--brume); }
.services__grille {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr);
  gap: clamp(32px, 6vw, 88px); align-items: start;
}
.services__entete { position: sticky; top: calc(var(--entete-h) + 32px); }
.services__entete p { color: var(--gris); margin: 18px 0 28px; max-width: 34ch; }
.service {
  background: var(--blanc);
  border-left: 4px solid var(--bleu);
  padding: 32px clamp(22px, 3vw, 36px);
}
.service + .service { margin-top: 14px; }
.service h3 { font-size: 1.35rem; font-variation-settings: "wdth" 90; margin-bottom: 12px; }
.service p { color: var(--gris); max-width: 62ch; }
.service ul { margin: 0 0 20px; display: grid; gap: 6px; }
.service li { position: relative; padding-left: 22px; font-size: .98rem; }
.service li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 10px; height: 10px;
  background: var(--ciel);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* Démarche */
.etapes {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  margin-top: 48px; counter-reset: e; position: relative;
}
.etapes::before {
  content: ""; position: absolute; left: 22px; right: calc(25% - 7px); top: 22px;
  height: 2px; background: var(--trait);
}
.etapes li { position: relative; }
.etapes__num {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--blanc); border: 2px solid var(--bleu);
  color: var(--bleu); font-weight: 700; font-size: 1.1rem;
  position: relative; margin-bottom: 20px;
}
.etapes h3 { font-size: 1.15rem; margin-bottom: 8px; }
.etapes p { color: var(--gris); font-size: .98rem; margin: 0; }

/* Spécialités */
.specialites { background: var(--brume); }
.specialites__entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; }
.specialites__entete p { color: var(--gris); margin: 0; max-width: 44ch; }
.specialites__grille {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  margin-top: 44px; background: var(--trait); border: 2px solid var(--trait);
}
.specialite { background: var(--blanc); padding: 28px 24px 30px; }
.specialite h3 { font-size: 1.08rem; margin-bottom: 16px; min-height: 2.3em; }
.specialite li { padding: 7px 0; border-top: 1px solid var(--brume); font-size: .97rem; }

/* À propos */
.apropos { background: var(--marine); color: var(--blanc); }
.apropos__grille {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
.apropos .titre-section { margin-bottom: 26px; }
.apropos p { color: rgba(255,255,255,.8); max-width: 60ch; }
.mvv { margin: 36px 0 0; display: grid; gap: 0; }
.mvv > div {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px;
  padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14);
}
.mvv dt { color: var(--ciel); font-weight: 600; }
.mvv dd { margin: 0; }

.carte-francis {
  background: var(--marine-2);
  border: 1px solid rgba(255,255,255,.1);
  padding: 36px 32px;
}
.carte-francis__photo {
  width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--bleu), var(--ciel));
  font-weight: 800; font-size: 1.6rem; margin-bottom: 20px;
}
.carte-francis__nom { font-size: 1.35rem; font-weight: 700; color: var(--blanc) !important; margin: 0; }
.carte-francis__role { font-size: .95rem; margin: 2px 0 20px; }
.carte-francis__slogan {
  font-size: 1.2rem; font-style: italic; font-weight: 500;
  color: var(--blanc) !important;
  border-left: 3px solid var(--ciel); padding-left: 14px; margin-bottom: 24px;
}

/* Contact */
.contact__grille {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 88px); align-items: start;
}
.contact__info > p { color: var(--gris); margin: 20px 0 32px; max-width: 42ch; }
.contact__tel {
  display: block; text-decoration: none; color: var(--encre);
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800;
  font-variation-settings: "wdth" 85; font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.contact__tel:hover { color: var(--bleu); }
.contact__courriel { display: inline-block; margin-top: 8px; font-size: 1.15rem; font-weight: 600; }
.contact__lieu { margin-top: 24px !important; font-size: .95rem; }

.formulaire {
  background: var(--brume); padding: clamp(24px, 4vw, 40px);
  border-top: 4px solid var(--bleu);
}
.champ { margin-bottom: 18px; }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.champ label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--gris); }
.champ input, .champ select, .champ textarea {
  width: 100%; font: inherit; color: var(--encre);
  background: var(--blanc);
  border: 1.5px solid #B9C6D8; border-radius: var(--rayon);
  padding: 12px 14px; min-height: 50px;
}
.champ textarea { resize: vertical; min-height: 130px; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(29,79,224,.2);
}
.champ--err input, .champ--err textarea { border-color: var(--erreur); }
.champ__err { color: var(--erreur); font-size: .9rem; margin: 6px 0 0; }

.avis { padding: 16px 18px; margin-bottom: 20px; border-left: 4px solid; background: var(--blanc); }
.avis p { margin: 0; }
.avis--erreur { border-color: var(--erreur); }
.avis--ok { border-color: var(--ok); margin: 0; }
.avis--ok h3 { color: var(--ok); margin-bottom: 8px; }

/* Pied */
.pied { background: #071A45; color: rgba(255,255,255,.75); padding: 56px 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
.pied__grille { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.pied img { width: 140px; }
.pied__slogan { margin: 0; font-style: italic; }
.pied__coord { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.pied a { color: var(--blanc); text-decoration: none; }
.pied a:hover { color: var(--ciel); }
.pied__bas { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.pied__bas p { margin: 0; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .entete__tel span { display: none; }
  .entete__tel { padding-left: 16px; }
  .clientele__grille { grid-template-columns: repeat(2, 1fr); }
  .specialites__grille { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --entete-h: 66px; }
  .entete__logo img { height: 38px; }
  .entete__tel { margin-left: auto; border: 0; }
  .entete__tel span { display: inline; }
  .burger {
    display: grid; place-content: center; gap: 6px;
    width: 46px; height: 46px; background: none; border: 0; cursor: pointer;
  }
  .burger span:not(.visuel-cache) { width: 24px; height: 2px; background: var(--blanc); transition: transform .2s; }
  .menu-ouvert .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .menu-ouvert .burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

  .nav {
    position: fixed; inset: calc(var(--entete-h) + env(safe-area-inset-top, 0px)) 0 0 0;
    background: var(--marine);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gout) calc(24px + env(safe-area-inset-bottom, 0px));
    visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
  }
  .menu-ouvert .nav { visibility: visible; opacity: 1; }
  .nav a { font-size: 1.25rem; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav .nav__cta { margin-top: 20px; text-align: center; border: 0; }

  .hero__grille { grid-template-columns: 1fr; }
  .coupe { max-width: 560px; }
  .faits { grid-template-columns: 1fr; }
  .faits li, .faits li + li { padding: 16px 0; border-left: 0; }
  .faits li + li { border-top: 1px solid rgba(255,255,255,.14); }

  .accred__grille { grid-template-columns: 1fr; }
  .accred__item, .accred__item + .accred__item { padding: 18px 0; border-left: 0; }
  .accred__item + .accred__item { border-top: 1px solid var(--trait); }

  .services__grille, .apropos__grille, .contact__grille { grid-template-columns: 1fr; }
  .services__entete { position: static; }

  .etapes { grid-template-columns: 1fr; gap: 0; }
  .etapes::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .etapes li { padding: 0 0 28px 70px; }
  .etapes__num { position: absolute; left: 0; top: 0; }

  .pied__grille { grid-template-columns: 1fr; gap: 16px; }
  .pied__coord { text-align: left; }
}

@media (max-width: 560px) {
  .entete__tel span { display: none; }
  .hero__actions .btn { width: 100%; }
  .clientele__grille, .specialites__grille, .champs-2 { grid-template-columns: 1fr; }
  .specialite h3 { min-height: 0; }
  .etiquette { font-size: 17px; }
}
