@font-face { font-family: "Manrope"; src: url("../fonts/manrope-500-800.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-300-600.woff2") format("woff2"); font-weight: 300 600; font-display: swap; }

/* Codes du site MODHEM : Manrope très gras pour les titres, DM Sans pour le texte,
   bleu MODHEM, orange en accent, fonds blanc et bleu très clair, coins arrondis */
:root {
  --bleu: #004771; --bleu-nuit: #003554; --orange: #F97316; --orange-fonce: #E4620B;
  --ciel: #E9F5FC; --texte: #5F6B7A; --trait: #00477122; --blanc: #FFFFFF;
  --marge: clamp(16px, 5vw, 80px); --rayon: clamp(20px, 2.8vw, 40px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--blanc); scroll-behavior: smooth; }
body { background: var(--blanc); color: var(--texte); font-family: "DM Sans", system-ui, sans-serif; font-weight: 400; font-size: 1.06rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

h1, h2, h3 { font-family: "Manrope", sans-serif; font-weight: 800; letter-spacing: -.03em; color: var(--bleu); line-height: 1.1; }
.sur { font-family: "Manrope", sans-serif; font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.num { font-family: "Manrope", sans-serif; font-weight: 800; font-size: clamp(2.4rem, 4.4vw, 3.8rem); line-height: 1; letter-spacing: -.03em; color: var(--orange); }

/* boutons : orange plein, flèche dans un rond, comme sur le site actuel */
.btn { display: inline-flex; align-items: center; gap: 14px; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1rem; color: #fff; text-decoration: none;
  background: var(--orange); border-radius: 12px; padding: 1.05em 1.3em 1.05em 1.6em; transition: background .3s, transform .3s; }
.btn::after { content: ""; width: 24px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23fff' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='10.5'/%3E%3Cpath d='M7.5 12h9M13 8.5l3.5 3.5-3.5 3.5'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .3s; }
.btn:hover { background: var(--orange-fonce); }
.btn:hover::after { transform: translateX(3px); }
.btn.contour { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.85); }
.btn.contour:hover { background: rgba(255,255,255,.12); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 2rem; }

/* ------------------------------------------------ en-tête */
.entete { position: fixed; z-index: 10; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) var(--marge) 12px; color: #fff; transition: background .35s, color .35s, box-shadow .35s; }
.entete .marque img { height: 48px; width: auto; }
.menu { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); font-family: "Manrope", sans-serif; font-weight: 700; font-size: .92rem; }
.menu a { text-decoration: none; }
.menu a:not(.bouton):hover { color: var(--orange); }
.menu .bouton { background: var(--orange); color: #fff; padding: .85em 1.3em; border-radius: 12px; font-weight: 800; transition: background .3s; }
.menu .bouton:hover { background: var(--orange-fonce); }
.entete.clair { background: #fff; color: var(--bleu); box-shadow: 0 1px 0 var(--trait); }
.entete.clair .marque img { content: url("../img/logo-bleu.png"); }
@media (max-width: 1100px) { .menu a:not(.bouton):not(.tel) { display: none; } }
@media (max-width: 760px) { .menu .tel { display: none; } .entete .marque img { height: 38px; } .menu .bouton { font-size: .82rem; } }

/* ------------------------------------------------ la visite */
.visite { position: relative; height: 1000vh; background: var(--bleu-nuit); }
/* dvh : la scène suit la hauteur réelle de l'écran quand la barre d'adresse du téléphone se replie */
.scene { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; background: var(--bleu-nuit); }
#film { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* voile : lisibilité du texte en bas à gauche et de l'en-tête */
.voile { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,50,79,.9) 0%, rgba(0,56,90,.55) 32%, rgba(0,71,113,.12) 60%, rgba(0,71,113,0) 72%),
              linear-gradient(to bottom, rgba(0,50,79,.55) 0%, rgba(0,50,79,0) 20%); }

.chapitre { position: absolute; left: var(--marge); bottom: calc(8vh + env(safe-area-inset-bottom)); width: min(40rem, calc(100% - 2 * var(--marge)));
  color: var(--blanc); pointer-events: none; opacity: 0; transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease; }
/* l'ancien texte s'efface vite, le nouveau arrive juste après : jamais deux textes superposés */
.chapitre.visible { opacity: 1; transform: none; transition: opacity .45s ease, transform .7s cubic-bezier(.2,.7,.1,1); }
.chapitre .num { color: var(--orange); margin-bottom: .6rem; }
.chapitre .sur { color: rgba(251,249,245,.8); display: flex; align-items: center; gap: 14px; }
.chapitre .sur::before { content: ""; width: 32px; height: 1px; background: var(--orange); }
.chapitre h1, .chapitre h2 { font-size: clamp(2.2rem, 4.8vw, 4.4rem); line-height: 1.04; margin-top: 1.1rem; text-wrap: balance; }
.chapitre h1 span, .chapitre h2 span { color: rgba(251,249,245,.72); }
.chapitre p:not(.sur):not(.num) { margin-top: 1.2rem; max-width: 32rem; font-size: clamp(1rem, 1.2vw, 1.12rem); color: rgba(251,249,245,.88); text-wrap: pretty; }
.ouverture h1 { font-size: clamp(2.5rem, 6vw, 5.6rem); }

/* planning : la frise des étapes, à droite */
.planning { position: absolute; right: var(--marge); top: 50%; transform: translateY(-50%); list-style: none; display: grid; gap: 4px;
  opacity: 0; transition: opacity .6s; }
.planning.visible { opacity: 1; }
.planning button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 12px; justify-content: flex-end;
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(251,249,245,.5); padding: 6px 0; transition: color .4s; }
.planning button span { font-size: .66rem; letter-spacing: .1em; }
.planning button::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .5s, background .4s; }
.planning button.fait { color: rgba(251,249,245,.75); }
.planning button.actif { color: var(--blanc); }
.planning button.actif::after { width: 44px; background: var(--orange); }
@media (max-width: 900px) {
  .planning { top: auto; bottom: auto; top: calc(78px + env(safe-area-inset-top)); right: var(--marge); transform: none; }
  .planning button { font-size: 0; gap: 0; padding: 3px 0; }
  .planning button span { display: none; }
  .planning button::after { width: 12px; }
  .planning button.actif::after { width: 28px; }
}

.indice { position: absolute; right: var(--marge); bottom: calc(8vh + env(safe-area-inset-bottom)); font-size: .68rem; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(251,249,245,.7); transition: opacity .6s; writing-mode: vertical-rl; }
.indice.cache { opacity: 0; }
@media (max-width: 760px) { .indice { writing-mode: horizontal-tb; left: var(--marge); right: auto; bottom: calc(3vh + env(safe-area-inset-bottom)); } }


.chapitre .sur { color: var(--orange); text-shadow: 0 1px 12px rgba(0,30,50,.55); }
.chapitre .sur::before { display: none; }
.chapitre h1, .chapitre h2 { color: #fff; font-size: clamp(2.2rem, 4.8vw, 4.4rem); line-height: 1.05; }
.chapitre h1 span, .chapitre h2 span { display: block; color: rgba(255,255,255,.78); }
.ouverture .actions { pointer-events: auto; }
.planning button { font-family: "Manrope", sans-serif; font-weight: 700; }

/* ------------------------------------------------ sections */
main > section { padding: clamp(80px, 13vh, 140px) var(--marge); }
/* panneaux bleu très clair à coins arrondis, avec un plan en filigrane */
main > .panneau { margin: 0 clamp(8px, 1.8vw, 25px); border-radius: var(--rayon); background: var(--ciel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480' fill='none' stroke='%23004771' stroke-opacity='.07'%3E%3Cpath d='M0 120h480M0 240h480M0 360h480M120 0v480M240 0v480M360 0v480'/%3E%3Cpath d='M40 40h160v120H40zM240 60h200v180H240zM60 260h140v180H60z' stroke-opacity='.1'/%3E%3Cpath d='M240 240a120 120 0 0 1 120 120M200 160a40 40 0 0 0 40 40' stroke-opacity='.1'/%3E%3C/svg%3E") right -60px top -60px / 480px no-repeat; }
.titre-section { text-align: center; max-width: 52rem; margin: 0 auto clamp(2.6rem, 6vh, 4rem); }
.titre-section h2 { margin-top: 1rem; }
.titre-section p:not(.sur) { margin-top: 1.4rem; }
main h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); text-wrap: balance; }

.maison { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; max-width: 1320px; margin: 0 auto; }
.maison-photo { position: relative; }
.maison-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--rayon); }
.badge { position: absolute; right: clamp(-10px, -1.5vw, -24px); bottom: 10%; background: var(--bleu); color: #fff; border-radius: 20px; padding: 1.2rem 1.4rem; max-width: 12rem; font-size: .9rem; line-height: 1.35; box-shadow: 0 20px 40px rgba(0,53,84,.25); }
.badge strong { display: block; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 2rem; color: var(--orange); letter-spacing: -.03em; margin-bottom: .2rem; }
.maison-texte h2 { margin: 1rem 0 1.4rem; }
.maison-texte > p + p { margin-top: 1rem; }
.coches { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.6rem; margin-top: 2rem; padding: 1.6rem; background: var(--ciel); border-radius: 20px; }
.coches li { display: flex; gap: .7rem; align-items: flex-start; color: var(--bleu); font-weight: 500; font-size: .98rem; line-height: 1.4; }
.coches li::before { content: ""; flex: 0 0 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M2.5 6.2l2.4 2.4 4.6-5'/%3E%3C/svg%3E") center no-repeat; }
.appel { display: grid; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--bleu); text-decoration: none; line-height: 1.2; }
.appel span { font-family: "DM Sans", sans-serif; font-weight: 400; font-size: .85rem; color: var(--texte); }
@media (max-width: 900px) { .maison { grid-template-columns: 1fr; } .badge { right: 12px; } .coches { grid-template-columns: 1fr; } }

.grille-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); max-width: 1320px; margin: 0 auto; }
.service { position: relative; border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bleu); }
.service img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.1,1); }
.service:hover img { transform: scale(1.05); }
.service div { position: absolute; inset: auto 0 0 0; padding: 4.5rem 1.6rem 1.5rem; background: linear-gradient(to top, rgba(0,53,84,.92) 10%, rgba(0,53,84,.55) 55%, rgba(0,53,84,0)); }
.service h3 { color: #fff; font-size: clamp(1.2rem, 1.6vw, 1.45rem); }
.service p { color: rgba(255,255,255,.82); font-size: .92rem; line-height: 1.45; margin-top: .4rem; }
@media (max-width: 900px) { .grille-services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grille-services { grid-template-columns: 1fr; } .service { aspect-ratio: 4 / 3.4; } }

.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); max-width: 1320px; margin: 0 auto; }
.carte { border: 1px solid var(--trait); border-radius: var(--rayon); padding: clamp(1.8rem, 3vw, 2.6rem); transition: border-color .3s, transform .4s; }
.carte:hover { border-color: var(--orange); transform: translateY(-4px); }
.chiffre { font-family: "Manrope", sans-serif; font-weight: 800; font-size: clamp(2.6rem, 4vw, 3.4rem); letter-spacing: -.04em; color: var(--orange); line-height: 1; }
.carte h3 { font-size: 1.35rem; margin: 1.4rem 0 .7rem; padding-top: 1.4rem; border-top: 1px solid var(--trait); }
.carte p:not(.chiffre) { font-size: .98rem; }
@media (max-width: 900px) { .cartes { grid-template-columns: 1fr; } }

.realisations { padding-left: 0 !important; padding-right: 0 !important; }
.realisations .titre-section { padding: 0 var(--marge); }
.bande { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--marge); scroll-padding-left: var(--marge); scrollbar-width: none; overscroll-behavior-x: contain; }
.bande::-webkit-scrollbar { display: none; }
.bande figure { position: relative; flex: 0 0 clamp(190px, 16vw, 250px); aspect-ratio: 4 / 5; scroll-snap-align: start; overflow: hidden; border-radius: 20px; background: #d7e6ef; }
.bande img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.1,1); }
.bande figure:hover img { transform: scale(1.05); }
.bande figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.8rem .9rem .8rem; color: #fff;
  background: linear-gradient(to top, rgba(249,115,22,.95) 0%, rgba(249,115,22,.6) 45%, rgba(249,115,22,0) 100%);
  font-family: "Manrope", sans-serif; font-weight: 700; font-size: .8rem; line-height: 1.3; display: flex; align-items: baseline; gap: .5rem; }
.bande figcaption span { font-weight: 800; font-size: 1.05rem; }
.fleches { display: flex; justify-content: center; gap: 10px; margin-top: 2rem; }
.fleches button { all: unset; cursor: pointer; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--bleu); font-size: 1.1rem; box-shadow: 0 0 0 1px var(--trait); transition: background .3s, color .3s; }
.fleches button:hover { background: var(--orange); color: #fff; }
.fleches button:disabled { opacity: .35; cursor: default; background: #fff; color: var(--bleu); }
@media (max-width: 760px) { .bande figure { flex-basis: 58vw; } }

.methode ol { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); max-width: 1320px; margin: 0 auto; counter-reset: e; }
.methode li { position: relative; padding: 2rem 1.6rem; border-radius: var(--rayon); background: var(--ciel); }
.methode li span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--orange); color: #fff; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.05rem; }
.methode h3 { font-size: 1.2rem; margin: 1.3rem 0 .5rem; }
.methode li p { font-size: .96rem; }
@media (max-width: 1000px) { .methode ol { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .methode ol { grid-template-columns: 1fr; } }

.avis-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(14px, 2vw, 24px); max-width: 1320px; margin: 0 auto; }
.avis { background: #fff; border-radius: 24px; padding: 1.8rem; display: flex; flex-direction: column; }
.etoiles { color: var(--orange); letter-spacing: .15em; font-size: 1.05rem; }
.avis blockquote { margin: 1rem 0 1.4rem; font-size: .96rem; flex: 1; }
.avis figcaption { padding-top: 1.1rem; border-top: 1px solid var(--trait); font-family: "Manrope", sans-serif; }
.avis figcaption strong { color: var(--bleu); font-weight: 800; }

.contact { margin: clamp(60px, 10vh, 110px) clamp(8px, 1.8vw, 25px) 0; border-radius: var(--rayon); background: var(--bleu); color: #fff; display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2.5rem, 7vw, 7rem); }
.contact h2 { color: #fff; margin: 1rem 0 1.4rem; }
.contact .gauche > p { color: rgba(255,255,255,.85); max-width: 28rem; margin-bottom: 2rem; }
.coord { list-style: none; margin-top: 2rem; display: grid; gap: .45rem; color: rgba(255,255,255,.85); }
.coord a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(249,115,22,.8); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; align-content: start; background: #fff; border-radius: 24px; padding: clamp(1.4rem, 3vw, 2.4rem); }
.formulaire label { display: grid; gap: .4rem; font-family: "Manrope", sans-serif; font-weight: 700; font-size: .82rem; color: var(--bleu); }
.formulaire .large { grid-column: 1 / -1; }
.formulaire input, .formulaire textarea, .formulaire select {
  font: 400 1rem/1.5 "DM Sans", sans-serif; color: #1c2733; background: var(--ciel); border: 1px solid transparent; border-radius: 10px; padding: .8rem .9rem; resize: vertical; -webkit-appearance: none; appearance: none; }
.formulaire select { background: var(--ciel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F97316' stroke-width='1.6'/%3E%3C/svg%3E") right .9rem center no-repeat; }
.formulaire input:focus, .formulaire textarea:focus, .formulaire select:focus { outline: none; border-color: var(--orange); background-color: #fff; }
.formulaire button { justify-self: start; grid-column: 1 / -1; margin-top: .4rem; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1rem; color: #fff; background: var(--orange); border: 0; border-radius: 12px; padding: 1em 1.8em; cursor: pointer; transition: background .3s; }
.formulaire button:hover { background: var(--orange-fonce); }
.retour-form { grid-column: 1 / -1; min-height: 1.4em; color: var(--bleu); font-weight: 500; }
@media (max-width: 560px) { .formulaire { grid-template-columns: 1fr; } }

.pied { margin-top: clamp(40px, 7vh, 80px); background: var(--bleu-nuit); color: rgba(255,255,255,.75); padding: clamp(50px, 9vh, 90px) var(--marge) calc(28px + env(safe-area-inset-bottom)); font-size: .95rem; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { color: var(--orange); }
.pied-haut { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; max-width: 1320px; margin: 0 auto; }
.pied-haut img { height: 64px; width: auto; margin-bottom: 1.2rem; }
.pied-titre { font-family: "Manrope", sans-serif; font-weight: 800; color: var(--orange); margin-bottom: .8rem; }
.pied-bas { display: flex; justify-content: space-between; gap: 1rem; max-width: 1320px; margin: 3rem auto 0; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; }
@media (max-width: 900px) { .pied-haut { grid-template-columns: 1fr 1fr; } }

.page-simple { max-width: 46rem; margin: 0 auto; padding: 150px var(--marge) 10vh; }
.page-simple h2 { margin: 1rem 0 1.5rem; }
.page-simple p { margin-top: 1.2rem; }
.page-simple p strong { color: var(--bleu); font-family: "Manrope", sans-serif; font-weight: 800; }

.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .chapitre { transition: opacity .3s; transform: none; } }

/* ------------------------------------------------ téléphone : le chantier d'abord, le texte en bas et compact */
@media (max-width: 600px) {
  .chapitre { bottom: calc(3.5vh + env(safe-area-inset-bottom)); }
  .chapitre .num { font-size: 2.1rem; margin-bottom: .3rem; }
  .chapitre .sur { font-size: .7rem; letter-spacing: .12em; }
  .chapitre h1, .chapitre h2 { font-size: clamp(1.6rem, 7.4vw, 2rem); margin-top: .5rem; }
  .chapitre p:not(.sur):not(.num) { font-size: .92rem; line-height: 1.5; margin-top: .6rem; }
  .ouverture h1 { font-size: clamp(1.9rem, 8.6vw, 2.3rem); }
  .ouverture .actions { margin-top: 1.1rem; gap: 10px; flex-wrap: nowrap; }
  .ouverture .btn { font-size: .9rem; padding: .85em 1em .85em 1.2em; gap: 10px; white-space: nowrap; }
  .ouverture .btn.contour { display: none; }
  .ouverture .btn::after { width: 18px; height: 18px; }
  .indice { display: none; }
  .voile { background: linear-gradient(to top, rgba(0,50,79,.92) 0%, rgba(0,56,90,.6) 26%, rgba(0,71,113,.1) 48%, rgba(0,71,113,0) 58%),
                       linear-gradient(to bottom, rgba(0,50,79,.5) 0%, rgba(0,50,79,0) 16%); }
}
