:root {
  --noir: #1c1c1c;
  --texte: #1a1a1a;
  --gris-clair: #f8f8f8;
  --bordure: #e6e6e6;
  --jaune: #d6dc3a;
  --blanc: #ffffff;
  --hauteur-entete: 78px;
  --police: "Josefin Sans", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--hauteur-entete); }

body {
  margin: 0;
  font-family: var(--police);
  font-weight: 400;
  color: var(--texte);
  background: var(--blanc);
  line-height: 1.6;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}

img, video, iframe { display: block; max-width: 100%; }

a { color: inherit; }

.conteneur { width: min(1290px, 100% - 32px); margin-inline: auto; }

/* ---------- En-tête ---------- */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--hauteur-entete);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px 0 16px;
  background: var(--noir);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.logo { display: flex; align-items: center; text-decoration: none; height: 100%; }
.logo-img { height: 52px; width: auto; }
.logo-texte { display: none; color: #cfcfcf; font-size: 1.6rem; font-weight: 700; letter-spacing: .04em; }
.logo-texte em { color: var(--jaune); font-style: italic; font-weight: 600; margin-left: .3em; }
.logo.sans-image .logo-img { display: none; }
.logo.sans-image .logo-texte { display: inline; }

.menu { display: flex; gap: 36px; }
.menu a {
  color: var(--blanc); text-decoration: none;
  font-weight: 700; font-size: 1.05rem; letter-spacing: .03em;
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.menu a:hover, .menu a.actif { border-bottom-color: var(--blanc); }

.menu-bouton { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-bouton span { display: block; width: 26px; height: 2px; background: var(--blanc); margin: 6px 0; transition: transform .25s, opacity .25s; }
.menu-bouton[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-bouton[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-bouton[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Accueil (vidéo) ---------- */
.accueil {
  margin-top: var(--hauteur-entete);
  height: calc(100vh - var(--hauteur-entete));
  max-height: 900px; min-height: 320px;
  background: #2a2f33 linear-gradient(135deg, #2a2f33, #11151a);
  overflow: hidden;
}
.accueil-video { width: 100%; height: 100%; object-fit: cover; }

/* Texte lu par Google et les lecteurs d'écran, invisible à l'écran */
.cache {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Titres ---------- */
.titre {
  margin: 0 0 40px;
  font-size: 2.2rem; font-weight: 400; letter-spacing: .04em;
  text-transform: uppercase; text-align: center;
}
.titre::after { content: ""; display: block; width: 50px; height: 3px; background: var(--noir); margin: 22px auto 0; }
.titre-gauche { text-transform: none; text-align: left; font-size: 2.3rem; }
.titre-gauche::after { width: 100px; height: 5px; margin-left: 0; }

/* ---------- À propos ---------- */
.a-propos {
  padding: 100px 0;
  background: linear-gradient(to bottom, var(--blanc) 0 200px, var(--gris-clair) 200px);
}
.a-propos-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; width: min(1290px, 100% - 32px); }
.a-propos-photo {
  width: 100%; aspect-ratio: 645 / 610; object-fit: cover;
  border-radius: 0 90px 0 90px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .25);
  background: #cfd5da;
}
.a-propos-texte { padding-top: 120px; }
.a-propos-texte p { margin: 0; font-size: 1.15rem; line-height: 1.45; }

/* ---------- Services ---------- */
.services { padding: 100px 0 80px; }
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; }
.carte {
  background: var(--gris-clair);
  border: 1px solid var(--bordure);
  border-bottom: 3px solid var(--noir);
  border-radius: 2px;
  padding: 55px 25px 55px;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.carte:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0, 0, 0, .08); }
.carte img { width: 170px; height: 170px; border-radius: 50%; object-fit: cover; margin: 0 auto 35px; background: #d8dcdf; }
.carte-icone {
  width: 170px; height: 170px; border-radius: 50%; margin: 0 auto 35px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #3a3a3a, var(--noir) 70%);
}
.carte-icone svg {
  width: 92px; height: 92px; fill: none; stroke: var(--jaune);
  stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}
.carte h3 { margin: 0 0 18px; font-size: 1.35rem; font-weight: 700; }
.carte p { margin: 0; font-size: 1.02rem; line-height: 1.5; }

/* ---------- Contact ---------- */
.contact { padding: 100px 0; background: var(--gris-clair); }
.formulaire { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.formulaire input, .formulaire button { height: 52px; font: inherit; font-size: 1.05rem; }
.formulaire input {
  border: 1px solid #d6d6d6; background: var(--blanc);
  padding: 0 18px; color: var(--texte); border-radius: 2px;
}
.formulaire input:focus { outline: 2px solid var(--noir); outline-offset: -1px; }
.formulaire input.erreur { border-color: #b3261e; }
.formulaire button {
  border: 0; background: var(--noir); color: var(--blanc);
  text-transform: uppercase; letter-spacing: .04em; cursor: pointer;
  transition: background .2s;
}
.formulaire button:hover { background: #3a3a3a; }.formulaire-message { min-height: 1.6em; margin: 14px 0 20px; font-size: 1rem; }
.formulaire-message.erreur { color: #b3261e; }

.contact-grille { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }
.coordonnees { font-style: normal; font-size: 1.1rem; line-height: 1.35; }
.coordonnees p { margin: 0; }
.coordonnees p:first-child { margin-bottom: 1.9em; }
.coordonnees a { text-decoration: none; }
.coordonnees a:hover { text-decoration: underline; }
.ligne { display: flex; align-items: center; gap: 10px; }
.ligne svg { width: 17px; height: 17px; flex: none; fill: var(--texte); }
.ligne svg.contour { fill: none; stroke: var(--texte); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carte-plan { width: 100%; height: 300px; border: 0; }

/* ---------- Pied de page ---------- */
.pied { background: var(--noir); color: #bdbdbd; text-align: center; padding: 22px 16px; font-size: .95rem; }
.pied p { margin: 0; }

/* ---------- Retour en haut ---------- */
.haut {
  position: fixed; right: 28px; bottom: 0; z-index: 40;
  width: 40px; height: 36px;
  display: grid; place-items: center;
  background: #9a9a9a; opacity: 0; pointer-events: none;
  transition: opacity .25s, background .2s;
}
.haut.visible { opacity: .9; pointer-events: auto; }
.haut:hover { background: #6f6f6f; }
.haut svg { width: 20px; height: 20px; fill: none; stroke: var(--blanc); stroke-width: 2; }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 1000px) {
  .a-propos-grille { gap: 50px; }
  .a-propos-texte { padding-top: 60px; }
  .cartes { grid-template-columns: 1fr 1fr; }
  .formulaire { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 760px) {
  :root { --hauteur-entete: 64px; }
  .entete { padding: 0 8px 0 12px; }
  .logo-img { height: 42px; }
  .menu-bouton { display: block; }
  .menu {
    position: absolute; top: var(--hauteur-entete); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--noir);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .menu.ouvert { max-height: 300px; }
  .menu a { padding: 16px 20px; border-bottom: 1px solid #2e2e2e; }
  .menu a:hover, .menu a.actif { border-bottom-color: #2e2e2e; color: var(--jaune); }

  .accueil { height: 56vw; min-height: 220px; }
  .titre { font-size: 1.8rem; }
  .a-propos { padding: 60px 0; background: var(--gris-clair); }
  .a-propos-grille { grid-template-columns: 1fr; gap: 30px; }
  .a-propos-photo { border-radius: 0 60px 0 60px; }
  .a-propos-texte { padding-top: 0; }
  .titre-gauche { font-size: 1.9rem; }
  .a-propos-texte p { font-size: 1.05rem; }
  .services, .contact { padding: 60px 0; }
  .cartes { grid-template-columns: 1fr; }
  .formulaire { grid-template-columns: 1fr; gap: 14px; }
  .contact-grille { grid-template-columns: 1fr; }
  .haut { right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
