@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
/* Odon Maçonnerie — démonstration de la formule Site Premium
   Palette du chantier : calcaire de Caen, ardoise des toits, bleu du cordeau à tracer. */

:root {
  --calcaire: #EDE6D8;
  --pierre: #F7F3EB;
  --ardoise: #20292F;
  --ardoise-2: #2C3840;
  --cordeau: #1F4FE0;
  --mortier: #B9AD97;
  --doux: #56605F;
  --police: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --marge: clamp(1.25rem, 4.5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--calcaire); color: var(--ardoise); font-family: var(--police); font-size: 1.125rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cordeau); outline-offset: 3px; }

h1, h2, .titre {
  font-stretch: 122%; font-weight: 750; line-height: .98; letter-spacing: -0.03em; text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 6.2vw, 5.4rem); }
.titre { font-size: clamp(2.1rem, 4.6vw, 3.9rem); max-width: 16ch; }
h3 { font-stretch: 112%; font-weight: 700; font-size: 1.4rem; line-height: 1.15; letter-spacing: -0.01em; }

.l { width: min(100% - 2 * var(--marge), 1240px); margin-inline: auto; }

/* Ruban de démonstration */
.ruban { background: #14213D; color: #fff; font-size: .9rem; line-height: 1.4; text-align: center; padding: .55rem var(--marge); }
.ruban a { color: #F2A541; font-weight: 600; text-underline-offset: .2em; white-space: nowrap; margin-left: .6rem; }

/* En-tête */
.tete { display: flex; align-items: center; gap: 2rem; padding: 1.1rem var(--marge); position: relative; z-index: 3; }
.marque { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-size: 1.25rem; font-stretch: 112%; margin-right: auto; white-space: nowrap; }
.marque svg { width: 2.3rem; height: 2.3rem; }
.marque b { font-weight: 800; }
.nav { display: flex; gap: 1.75rem; font-weight: 500; font-size: 1rem; }
.nav a { text-decoration: none; padding-block: .3rem; background: linear-gradient(var(--cordeau), var(--cordeau)) left bottom / 0 2px no-repeat; transition: background-size .25s ease; }
.nav a:hover { background-size: 100% 2px; }
.tete__tel { white-space: nowrap; }
.tel-court { display: none; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .65rem 1.4rem;
  border: 2px solid var(--ardoise); border-radius: 0; background: transparent; color: var(--ardoise);
  font: inherit; font-weight: 650; font-stretch: 108%; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.bouton:hover { background: var(--ardoise); color: var(--pierre); }
.bouton--plein { background: var(--cordeau); border-color: var(--cordeau); color: #fff; }
.bouton--plein:hover { background: #1740BD; border-color: #1740BD; color: #fff; }
.lien { font-weight: 600; text-underline-offset: .3em; text-decoration-thickness: 2px; text-decoration-color: var(--cordeau); }

/* ---------- Le monde 3D ---------- */

.monde { position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); margin-top: -5.2rem; }
.chapitres { grid-column: 1; grid-row: 1; padding-left: var(--marge); position: relative; z-index: 2; }
.scene { grid-column: 2; grid-row: 1; position: sticky; top: 0; height: 100vh; height: 100svh; align-self: start; }
#maison { display: block; width: 100%; height: 100%; }

.chapitre { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.25rem; padding-block: 6rem; max-width: 34rem; }
.chapitre--hero { padding-top: 8rem; }
.chapitre h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
.chapitre p { color: var(--doux); max-width: 30em; }
.chapitre .chapo { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.45; }
.chapitre__num { font-weight: 700; color: var(--cordeau) !important; font-stretch: 112%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: .75rem; }

.jalons { position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%); display: flex; gap: .4rem; padding: 0; list-style: none; font-size: .92rem; font-weight: 600; white-space: nowrap; }
.jalons li { padding: .4rem .9rem; border: 1.5px solid var(--mortier); color: #7A7566; transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.jalons li.actif { border-color: var(--cordeau); color: var(--cordeau); }
.jalons li.fait { background: var(--ardoise); border-color: var(--ardoise); color: var(--pierre); }
.scene__aide { position: absolute; right: var(--marge); top: 6.2rem; font-size: .95rem; font-weight: 500; color: #7A7566; transition: opacity .4s ease; }
.scene.en-cours .scene__aide { opacity: 0; }
.scene.sans-3d { display: none; }
.monde:has(.scene.sans-3d) { grid-template-columns: minmax(0, 1fr); }

/* ---------- Bandes ---------- */

.bande { padding-block: clamp(4.5rem, 10vw, 9rem); background: var(--pierre); }
.bande--ardoise { background: var(--ardoise); color: var(--pierre); }
.bande--cordeau { background: var(--cordeau); color: #fff; }
.sous-titre { margin-top: 1.5rem; font-size: 1.2rem; max-width: 34em; color: var(--doux); }
.bande--ardoise .sous-titre { color: rgba(247, 243, 235, .74); }
.bande--cordeau .sous-titre { color: rgba(255, 255, 255, .86); }

/* Apparition des titres et blocs */
@media (prefers-reduced-motion: no-preference) {
  [data-voir] { opacity: 0; transform: translateY(1.5rem); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
  [data-voir].vu { opacity: 1; transform: none; }
  .metiers article:nth-child(2), .chantier:nth-child(2) { transition-delay: .12s; }
  .metiers article:nth-child(3) { transition-delay: .24s; }
}

.metiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.metiers article { border-top: 3px solid var(--ardoise); padding-top: 1.4rem; }
.metiers p { margin-top: .8rem; color: var(--doux); }

/* Avant / après */
.compare { position: relative; margin-top: clamp(2rem, 5vw, 3.5rem); aspect-ratio: 3 / 2; overflow: hidden; user-select: none; background: var(--ardoise-2); }
.compare__img { position: absolute; inset: 0; }
.compare__img img { width: 100%; height: 100%; object-fit: cover; }
.compare__img span { position: absolute; bottom: 1.1rem; padding: .35rem .9rem; background: var(--pierre); color: var(--ardoise); font-weight: 700; font-stretch: 112%; font-size: .98rem; }
.compare__apres { background: linear-gradient(160deg, #F1E8D6, #D9CBAE); }
.compare__apres span { right: 1.1rem; }
.compare__avant { clip-path: inset(0 calc(100% - var(--pos)) 0 0); background: repeating-linear-gradient(115deg, #4A4A44 0 22px, #55554E 22px 40px); }
.compare__avant span { left: 1.1rem; }
.compare__img.vide img { display: none; }
.compare__barre { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--cordeau); pointer-events: none; }
.compare__barre i { position: absolute; top: 50%; left: 50%; width: 3.2rem; height: 3.2rem; margin: -1.6rem 0 0 -1.6rem; border-radius: 50%; background: var(--cordeau); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.compare__barre i::before, .compare__barre i::after { content: ""; position: absolute; top: 50%; width: .6rem; height: .6rem; border: solid #fff; border-width: 0 0 2.5px 2.5px; margin-top: -.3rem; }
.compare__barre i::before { left: .8rem; transform: rotate(45deg); }
.compare__barre i::after { right: .8rem; transform: rotate(-135deg); }
.compare__curseur { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(.compare__curseur:focus-visible) { outline: 3px solid var(--cordeau); outline-offset: 4px; }

/* Chantiers */
.chantiers { display: grid; gap: clamp(2.5rem, 6vw, 5rem); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.chantier { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.chantier:nth-child(even) { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); }
.chantier:nth-child(even) .photo { order: 2; }
.photo { aspect-ratio: 3 / 2; overflow: hidden; background: linear-gradient(150deg, #DDD1B8, #C4B698); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.chantier:hover .photo img { transform: scale(1.04); }
.photo.vide img { display: none; }
.lieu { margin-top: .4rem; font-weight: 650; color: var(--cordeau); }
.chantier p:last-child { margin-top: .7rem; color: var(--doux); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact a { text-underline-offset: .25em; }
.tel { margin-top: 2rem; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 750; font-stretch: 118%; letter-spacing: -0.02em; line-height: 1.1; }
.tel a { text-decoration: none; }
.formulaire { background: var(--pierre); color: var(--ardoise); padding: clamp(1.5rem, 3.5vw, 2.75rem); display: grid; gap: 1.2rem; }
.champ { display: grid; gap: .4rem; }
.champ label { font-weight: 650; font-size: 1rem; }
.champ input, .champ textarea { width: 100%; font: inherit; color: var(--ardoise); padding: .8rem .9rem; background: #fff; border: 1.5px solid var(--mortier); border-radius: 0; }
.formulaire .bouton { justify-self: start; }
.formulaire__etat { min-height: 1.5em; font-weight: 600; }

.pied { background: var(--ardoise); color: rgba(247, 243, 235, .74); padding-block: 2.25rem; font-size: .98rem; }
.pied__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; }
.pied b { color: var(--pierre); }

/* ---------- Écrans étroits ---------- */

@media (max-width: 900px) {
  .nav { display: none; }
  .tete { padding-block: .8rem; }
  .tete .bouton { min-height: 2.6rem; padding: .4rem .9rem; }
  .tel-long { display: none; }
  .tel-court { display: inline; }
  .marque { font-size: 1.1rem; }
  .monde { display: block; margin-top: 0; }
  .scene { height: 46vh; height: 46svh; z-index: 2; background: var(--calcaire); border-bottom: 1.5px solid var(--mortier); }
  .chapitres { padding-inline: var(--marge); z-index: 1; }
  .chapitre { min-height: 62vh; min-height: 62svh; padding-block: 2.5rem; justify-content: flex-start; }
  .chapitre--hero { padding-top: 2rem; min-height: 0; padding-bottom: 5rem; }
  .jalons { bottom: .8rem; font-size: .8rem; gap: .25rem; }
  .jalons li { padding: .3rem .55rem; }
  .scene__aide { display: none; }
  .metiers, .contact { grid-template-columns: minmax(0, 1fr); }
  .chantier, .chantier:nth-child(even) { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .chantier:nth-child(even) .photo { order: 0; }
  .actions .bouton, .formulaire .bouton { width: 100%; }
}
