/* AD Microfusion : feuille de style.
   Même principe que les sites de Vanessa (aéré, sections, téléphone d'abord),
   aux couleurs du logo : noir olive #1f2315 et turquoise #1bb2a2.
   Le turquoise du logo est trop clair pour du texte sur fond clair : on y
   utilise --turquoise-fonce (contraste suffisant), et sur les boutons
   turquoise le texte est noir, pas blanc. */

:root {
  --noir: #1f2315;
  --noir-profond: #151810;
  --turquoise: #1bb2a2;
  --turquoise-fonce: #0b7268;
  --turquoise-pale: #e3f4f1;
  --fond: #f6f7f3;
  --blanc: #ffffff;
  --texte: #20241b;
  --texte-doux: #4d5346;
  --texte-clair: #c9cdc3;
  --ligne: #dde1d7;

  --font-titre: 'Exo 2', 'Segoe UI', Arial, sans-serif;
  --font-texte: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --nav-h: 72px;
  --largeur: 1120px;
  --rayon: 10px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--font-texte);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--turquoise-fonce); text-underline-offset: 3px; }
a:hover { color: var(--texte); }

h1, h2, h3 {
  font-family: var(--font-titre);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-titre);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise-fonce);
  margin-bottom: 0.8rem;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--turquoise);
  color: var(--noir-profond);
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--turquoise);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--noir); color: var(--blanc); border-color: var(--noir); }
.btn--contour { background: transparent; color: var(--texte); border-color: var(--texte); }
.btn--contour:hover { background: var(--texte); color: var(--blanc); }
.sombre .btn--contour { color: var(--blanc); border-color: var(--blanc); }
.sombre .btn--contour:hover { background: var(--blanc); color: var(--noir); }
.sombre .btn:hover { background: var(--blanc); color: var(--noir); border-color: var(--blanc); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

/* ---------- Menu ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 clamp(16px, 4vw, 40px);
  background: var(--noir);
  border-bottom: 1px solid rgba(27, 178, 162, 0.25);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--blanc);
  text-decoration: none;
  font-family: var(--font-titre);
  font-size: 1.2rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav__logo img { width: 60px; height: auto; }
.nav__logo strong { color: var(--turquoise); font-weight: 700; }
.nav__logo:hover { color: var(--blanc); }
.nav__links {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav__links a {
  color: var(--texte-clair);
  text-decoration: none;
  font-size: 0.98rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--blanc); border-color: var(--turquoise); }
.nav__tel {
  color: var(--noir-profond);
  background: var(--turquoise);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-family: var(--font-titre);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav__tel:hover { background: var(--blanc); color: var(--noir); }
.nav__toggle {
  display: none;
  position: relative;
  width: 28px;
  height: 22px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.nav__toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--blanc);
  transition: transform 0.25s, opacity 0.25s;
}
.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 10px; }
.nav__toggle span:nth-child(3) { top: 20px; }
.nav--open .nav__toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav--open .nav__toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav { gap: 0.8rem; }
  .nav__toggle { display: block; }
  .nav__tel { margin-left: auto; font-size: 0.9rem; padding: 0.4rem 0.8rem; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: var(--noir);
    border-bottom: 1px solid rgba(27, 178, 162, 0.25);
    padding: 0.5rem 0 1rem;
  }
  .nav--open .nav__links { display: flex; }
  .nav__links a { display: block; padding: 0.8rem clamp(16px, 4vw, 40px); border: 0; }
}
@media (max-width: 420px) {
  .nav__logo span { display: none; }
}

/* ---------- Zones de page ---------- */
.section {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) 16px;
}
.section--etroite { max-width: 780px; }
.section__tete { max-width: 680px; margin-bottom: 2.4rem; }
.section__tete p { color: var(--texte-doux); }
.centre { text-align: center; margin-left: auto; margin-right: auto; }

.sombre {
  background: var(--noir);
  color: var(--texte-clair);
}
.sombre h1, .sombre h2, .sombre h3 { color: var(--blanc); }
.sombre .eyebrow { color: var(--turquoise); }
.sombre a:not(.btn) { color: var(--turquoise); }
.sombre a:not(.btn):hover { color: var(--blanc); }

.clair { background: var(--blanc); }

/* ---------- Grand bandeau d'accueil ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(27, 178, 162, 0.16), transparent 55%),
    var(--noir);
  color: var(--texte-clair);
}
.hero__inner {
  position: relative;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: clamp(3.5rem, 10vw, 7rem) 16px clamp(3rem, 8vw, 5.5rem);
  z-index: 1;
}
.hero h1 { color: var(--blanc); max-width: 14em; }
.hero h1 em { font-style: normal; color: var(--turquoise); white-space: nowrap; }
.hero__chapeau { font-size: 1.2rem; max-width: 36em; }
.hero__trace {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  width: 100%;
  height: 120px;
  opacity: 0.35;
  pointer-events: none;
}
.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  list-style: none;
  padding: 0;
  margin: 2.2rem 0 0;
  font-size: 0.98rem;
}
.hero__points li::before { content: "✓ "; color: var(--turquoise); font-weight: 700; }

/* Bandeau de titre des pages intérieures */
.page-hero .hero__inner { padding-top: clamp(2.8rem, 7vw, 4.5rem); padding-bottom: clamp(2.4rem, 6vw, 3.8rem); }
.page-hero h1 { max-width: 18em; }
.page-hero--photo .hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.page-hero--photo .photo-cadre { max-height: 460px; }
@media (max-width: 860px) {
  .page-hero--photo .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .page-hero--photo .photo-cadre { aspect-ratio: 16 / 10; }
}

/* ---------- Cartes de services ---------- */
.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.2rem;
}
.carte {
  display: block;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  padding: 1.6rem 1.5rem 1.4rem;
  color: var(--texte);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
a.carte:hover {
  color: var(--texte);
  border-color: var(--turquoise);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(31, 35, 21, 0.08);
}
.carte h3 { margin-bottom: 0.4rem; }
.carte p { color: var(--texte-doux); margin: 0; }
.carte__icone {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--noir);
  margin-bottom: 1rem;
}
.carte__icone svg { width: 28px; height: 28px; }
.carte__suite { display: inline-block; margin-top: 0.9rem; color: var(--turquoise-fonce); font-weight: 500; }
.sombre .carte { background: var(--noir-profond); border-color: rgba(255, 255, 255, 0.1); color: var(--texte-clair); }
.sombre .carte p { color: var(--texte-clair); }

/* ---------- Étapes numérotées ---------- */
.etapes {
  list-style: none;
  counter-reset: etape;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
  padding: 0;
  margin: 0;
}
.etapes li { counter-increment: etape; position: relative; padding-top: 3.2rem; }
.etapes li::before {
  content: counter(etape);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-titre);
  font-weight: 700;
  background: var(--turquoise);
  color: var(--noir-profond);
}
.etapes h3 { margin-bottom: 0.3rem; }
.etapes p { color: var(--texte-doux); margin: 0; }
.sombre .etapes p { color: var(--texte-clair); }

/* ---------- Chiffres clés ---------- */
.chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 0;
}
.chiffre {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-left: 4px solid var(--turquoise);
  border-radius: var(--rayon);
  padding: 1.1rem 1.2rem;
}
.chiffre dt { font-family: var(--font-titre); font-size: 1.6rem; font-weight: 700; color: var(--texte); }
.chiffre dd { margin: 0; color: var(--texte-doux); font-size: 0.97rem; }

/* ---------- Deux colonnes et listes ---------- */
.deux-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.4rem 3rem;
}
.liste-check { list-style: none; padding: 0; margin: 0 0 1em; }
.liste-check li { position: relative; padding-left: 1.8rem; margin-bottom: 0.55rem; }
.liste-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 2px solid var(--turquoise);
}
.encadre {
  background: var(--turquoise-pale);
  border-radius: var(--rayon);
  padding: 1.4rem 1.6rem;
}
.encadre p:last-child { margin-bottom: 0; }

/* Liste du matériel de l'atelier */
.materiel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}
.materiel .carte ul { margin: 0; padding-left: 1.1rem; color: var(--texte-doux); }
.materiel .carte li { margin-bottom: 0.3rem; }

/* ---------- Photos ---------- */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
}
.galerie__item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--rayon);
  background: var(--noir);
}
.galerie__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.galerie__item:hover img { transform: scale(1.04); }
@media (max-width: 520px) { .galerie { grid-template-columns: 1fr 1fr; gap: 0.5rem; } }

.photo-cadre {
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--noir);
}
.photo-cadre img { width: 100%; height: 100%; object-fit: cover; }
.photo-cadre--haute { aspect-ratio: 4 / 5; }
.photo-cadre--large { aspect-ratio: 16 / 10; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 8, 0.94);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; border-radius: 6px; }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: var(--blanc);
  font-size: 2.6rem;
  line-height: 1;
  padding: 0.6rem 1rem;
  cursor: pointer;
}
.lightbox button:hover { color: var(--turquoise); }
.lightbox__close { top: 0.6rem; right: 0.6rem; }
.lightbox__prev { left: 0.4rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 0.4rem; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 1rem; color: var(--texte-clair); font-size: 0.9rem; }

/* ---------- Appel à l'action ---------- */
.cta-band { text-align: center; }
.cta-band p { max-width: 34em; margin-left: auto; margin-right: auto; }
.cta-band .actions { justify-content: center; }

/* ---------- Pages de texte (légal, 404) ---------- */
.page-texte {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) 16px;
}
.page-texte h2 { font-size: 1.3rem; margin-top: 2em; }
.page-texte__chapeau { font-size: 1.15rem; color: var(--texte-doux); }
.page-texte--centre { text-align: center; }
.page-texte--centre .actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-wrap {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; gap: 2rem; } }
.contact-info__direct { margin-top: 1.6rem; }
.contact-info__tel {
  display: inline-block;
  font-family: var(--font-titre);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--texte);
  text-decoration: none;
}
.contact-form, .form-notice--ok {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  padding: clamp(1.4rem, 4vw, 2.2rem);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 500; margin-bottom: 0.35rem; }
.field__hint { font-weight: 400; color: var(--texte-doux); font-size: 0.9em; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--texte);
  background: var(--fond);
  border: 1px solid var(--ligne);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--turquoise);
  outline-offset: 1px;
  border-color: var(--turquoise);
}
.field--consent label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; font-size: 0.95rem; }
.field--consent input { margin-top: 0.35em; }
.field__error { display: block; color: #b3261e; font-size: 0.92rem; margin-top: 0.3rem; }
.form-notice--error {
  background: #fdecea;
  color: #8c1d18;
  border-radius: 8px;
  padding: 0.8rem 1rem;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--noir-profond);
  color: var(--texte-clair);
  padding: 3.2rem clamp(16px, 4vw, 40px) 2rem;
  font-size: 0.97rem;
}
.site-footer__cols {
  max-width: var(--largeur);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.site-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--blanc);
  font-family: var(--font-titre);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}
.site-footer__logo img { width: 60px; }
.site-footer__logo strong { color: var(--turquoise); }
.site-footer__titre { font-family: var(--font-titre); font-weight: 600; color: var(--blanc); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--texte-clair); }
.site-footer a:hover { color: var(--turquoise); }
.site-footer__legal {
  max-width: var(--largeur);
  margin: 2.4rem auto 0 !important;
  padding-top: 1.4rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
}
.site-footer__meta { max-width: var(--largeur); margin: 0.8rem auto 0; font-size: 0.88rem; opacity: 0.7; }

/* ---------- Apparition douce au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
