/* DEPT56 version 2 « La longère » : crème, pierre, mousse et ocre, titres à empattements. */
:root {
  --creme: #f8f4ec;
  --pierre: #ebe4d8;
  --pierre-fonce: #d9cfbf;
  --blanc: #fffdf9;
  --encre: #2a2620;
  --encre-doux: #6b645a;
  --mousse: #4d6a49;
  --mousse-fonce: #3a5237;
  --ocre: #b9783a;
  --ocre-clair: #e6c39a;
  --nuit: #2b3a2a;
  --ligne: rgba(42, 38, 32, .14);
  --f-titre: "Fraunces", Georgia, serif;
  --f-texte: "Inter", system-ui, sans-serif;
  --marge: clamp(1rem, 5vw, 4.5rem);
  --max: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--f-texte); color: var(--encre); background: var(--creme); line-height: 1.65; font-size: 1.02rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-titre); margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.01em; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 500; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.ico { width: 1.2em; height: 1.2em; flex: none; }
:focus-visible { outline: 3px solid var(--ocre); outline-offset: 3px; }

.surtitre { font-family: var(--f-texte); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 600; color: var(--ocre); margin: 0 0 .8rem; }
.chapo { font-size: 1.12rem; color: var(--encre-doux); max-width: 62ch; }
.entete-section { padding: 0 var(--marge); max-width: var(--max); margin: 0 auto 2rem; }
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.demo { position: sticky; top: 0; z-index: 40; background: var(--ocre); color: #fff; font-size: .85rem; padding: .45rem var(--marge); text-align: center; }
.demo a { color: inherit; font-weight: 700; }
.demo-retour { margin-left: .8rem; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: .1rem .6rem; text-decoration: none; }

.entete { display: flex; align-items: center; gap: 1.2rem; padding: .9rem var(--marge); background: var(--creme); color: var(--encre); position: sticky; top: 2.05rem; z-index: 30; border-bottom: 1px solid var(--ligne); }
.marque { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; line-height: 1.1; }
.marque-nom { font-family: var(--f-titre); font-weight: 700; font-size: 1.35rem; color: var(--mousse-fonce); }
.marque-sous { font-size: .76rem; color: var(--encre-doux); }
.entete nav { display: none; gap: 1.4rem; font-weight: 500; font-size: .93rem; }
.entete nav a { text-decoration: none; color: var(--encre-doux); }
.entete nav a:hover { color: var(--mousse-fonce); }
.lang { font-size: .8rem; font-weight: 600; text-decoration: none; border: 1px solid var(--ligne); border-radius: 999px; padding: .35rem .8rem; }
.lang:hover { border-color: var(--encre); }
@media (min-width: 1000px) { .entete nav { display: flex; } }

.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.3rem; border-radius: 999px; font-family: var(--f-texte); font-weight: 600; font-size: .95rem; text-decoration: none; line-height: 1; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-plein { background: var(--mousse); color: #fff; border-color: var(--mousse); }
.btn-plein:hover { background: var(--mousse-fonce); border-color: var(--mousse-fonce); }
.btn-contour { background: transparent; color: inherit; border-color: currentColor; }
.btn-lien { background: transparent; color: inherit; text-decoration: underline; text-underline-offset: .25em; padding-left: .4rem; padding-right: .4rem; }
.btn-tel { background: var(--mousse); color: #fff; border-color: var(--mousse); padding: .6rem .9rem; }
.btn-tel span { display: none; }
@media (min-width: 560px) { .btn-tel span { display: inline; } }

/* Héros : texte à gauche, longère à droite avec une petite photo posée dessus */
.hero { display: grid; gap: 2.5rem; align-items: center; padding: clamp(2.5rem, 7vw, 5rem) var(--marge); max-width: calc(var(--max) + 2 * var(--marge)); margin: 0 auto; }
.hero-texte { max-width: 38rem; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 500; letter-spacing: -.02em; margin-bottom: .5em; color: var(--nuit); }
.hero h1::after { content: ""; display: block; width: 4rem; height: 3px; background: var(--ocre); margin-top: .6em; }
.accroche { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 52ch; color: var(--encre-doux); margin-bottom: 1.8rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero-photos { position: relative; }
.hero-photos .grande { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: 0 24px 50px rgba(42,38,32,.18); }
.hero-photos .petite { position: absolute; left: -1rem; bottom: -1.5rem; width: 42%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 5px solid var(--creme); box-shadow: 0 12px 30px rgba(42,38,32,.22); }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } .hero-photos { margin-bottom: 1.5rem; } }
@media (max-width: 899px) { .hero-photos { margin-bottom: 1.5rem; } .hero-photos .petite { left: .5rem; } }

.faits { background: var(--pierre); display: grid; gap: 1rem; padding: 1.4rem var(--marge); }
.faits li { display: flex; flex-direction: column; line-height: 1.3; text-align: center; }
.faits strong { font-family: var(--f-titre); font-weight: 700; font-size: 1.05rem; color: var(--nuit); }
.faits span { color: var(--encre-doux); font-size: .88rem; }
@media (min-width: 760px) { .faits { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

/* À propos, tôt dans la page : portrait rond */
.apropos-corps { display: grid; gap: 2rem; max-width: var(--max); margin: 0 auto; padding: 0 var(--marge); align-items: center; }
.apropos-photo { margin: 0; justify-self: center; text-align: center; }
.apropos-photo img { width: min(100%, 300px); aspect-ratio: 1; object-fit: cover; object-position: 30% 40%; border-radius: 50%; border: 6px solid var(--pierre); }
.apropos-photo figcaption { font-size: .85rem; color: var(--encre-doux); padding-top: .6rem; }
@media (min-width: 800px) { .apropos-corps { grid-template-columns: 300px minmax(0, 1fr); gap: 3rem; } }

/* Services avec photo */
.services { background: var(--blanc); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.grille-services { display: grid; gap: 1.4rem; padding: 0 var(--marge); max-width: var(--max); margin: 0 auto; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.service { background: var(--creme); border-radius: 14px; overflow: hidden; border: 1px solid var(--ligne); }
.service > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.service-corps { padding: 1.2rem 1.3rem 1.2rem; position: relative; }
.service-ico { position: absolute; top: -1.4rem; left: 1.2rem; width: 2.8rem; height: 2.8rem; display: grid; place-items: center; background: var(--mousse); color: #fff; border-radius: 50%; border: 3px solid var(--creme); }
.service-ico .ico { width: 1.4rem; height: 1.4rem; }
.service h3 { margin-top: .9rem; }
.service p { color: var(--encre-doux); margin: 0; font-size: .97rem; }

.pano { margin: 0; }
.pano img { width: 100%; max-height: 440px; object-fit: cover; }
.pano figcaption { font-size: .86rem; color: var(--encre-doux); padding: .6rem var(--marge); text-align: center; }

/* Réalisations par famille */
.familles { max-width: var(--max); margin: 0 auto; padding: 0 var(--marge); display: grid; gap: 2.8rem; }
.famille h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.45rem; font-weight: 500; color: var(--nuit); margin-bottom: 1rem; }
.famille h3 .ico { color: var(--ocre); width: 1.3rem; height: 1.3rem; }
.grille-projets { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 600px) { .grille-projets { grid-template-columns: 1fr 1fr; gap: 1rem .8rem; } }
.projet { margin: 0; }
.projet img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--pierre); }
.projet figcaption { padding: .6rem .1rem 0; line-height: 1.35; font-size: .92rem; color: var(--encre-doux); }

/* Comment je travaille : encadré crème sur fond mousse */
.comment { background: var(--nuit); color: var(--creme); }
.comment .surtitre { color: var(--ocre-clair); }
.comment .chapo { color: rgba(248,244,236,.8); }
.comment-corps { display: grid; gap: 2.5rem; max-width: var(--max); margin: 0 auto; padding: 0 var(--marge); align-items: start; }
.liste-comment { display: grid; gap: 1.3rem; }
.liste-comment li { display: flex; gap: 1rem; align-items: flex-start; }
.num { font-family: var(--f-titre); font-weight: 500; font-size: 2rem; color: var(--ocre-clair); line-height: 1; min-width: 2.2rem; }
.liste-comment h3 { margin-bottom: .2em; font-weight: 500; font-size: 1.25rem; }
.liste-comment p { margin: 0; color: rgba(248,244,236,.8); }
.comment-photo { margin: 0; }
.comment-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.comment-photo figcaption { font-size: .86rem; opacity: .75; padding-top: .5rem; }
.comment-fin { max-width: var(--max); margin: 2rem auto 0; padding: 0 var(--marge); font-family: var(--f-titre); font-size: 1.35rem; font-weight: 500; color: var(--ocre-clair); }
@media (min-width: 900px) { .comment-corps { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }

/* Matériel : photo + liste */
.materiel { background: var(--pierre); }
.materiel-corps { display: grid; gap: 2rem; max-width: var(--max); margin: 0 auto; padding: 0 var(--marge); align-items: center; }
.materiel-photo { margin: 0; }
.materiel-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.materiel-photo figcaption { font-size: .86rem; color: var(--encre-doux); padding-top: .5rem; }
.liste-materiel { display: grid; gap: .9rem; }
.liste-materiel li { display: flex; flex-direction: column; line-height: 1.3; border-left: 3px solid var(--ocre); padding-left: .9rem; }
.liste-materiel strong { font-family: var(--f-titre); font-weight: 700; font-size: 1.05rem; color: var(--nuit); }
.liste-materiel span { color: var(--encre-doux); font-size: .93rem; }
@media (min-width: 900px) { .materiel-corps { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

.avis-section { background: var(--blanc); }
.grille-avis { display: grid; gap: 1.2rem; padding: 0 var(--marge); max-width: var(--max); margin: 0 auto; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.avis { margin: 0; background: var(--creme); border-radius: 14px; padding: 1.5rem 1.5rem 1.3rem; display: flex; flex-direction: column; border: 1px solid var(--ligne); }
.guillemet { width: 1.6rem; height: 1.6rem; color: var(--ocre); margin-bottom: .6rem; }
.avis p { flex: 1; font-family: var(--f-titre); font-weight: 500; font-size: 1.05rem; line-height: 1.5; }
.avis footer { display: flex; flex-direction: column; line-height: 1.3; }
.avis footer strong { font-weight: 600; }
.avis footer span { color: var(--encre-doux); font-size: .88rem; }
.note-avis { text-align: center; color: var(--encre-doux); font-size: .88rem; margin: 2rem var(--marge) 0; }

.liste-pourquoi { display: grid; gap: 1.4rem 2.5rem; padding: 0 var(--marge); max-width: var(--max); margin: 0 auto; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.liste-pourquoi li { display: flex; gap: .9rem; align-items: flex-start; }
.coche { width: 1.7rem; height: 1.7rem; color: #fff; background: var(--mousse); border-radius: 50%; padding: .3rem; }
.liste-pourquoi h3 { margin-bottom: .2em; font-weight: 500; }
.liste-pourquoi p { margin: 0; color: var(--encre-doux); }

.zones { background: var(--pierre); }
.liste-zones { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0 var(--marge); max-width: var(--max); margin: 0 auto; }
.liste-zones li { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 999px; padding: .45rem 1rem; font-weight: 500; font-size: .9rem; }

.contact { background: var(--nuit); color: var(--creme); display: grid; gap: 3rem; padding-left: var(--marge); padding-right: var(--marge); }
.contact .chapo { color: rgba(248,244,236,.8); }
.contact .surtitre { color: var(--ocre-clair); }
.contact h2 { font-weight: 500; }
.coordonnees { display: grid; gap: .8rem; margin-top: 1.5rem; }
.coordonnees li, .coordonnees a { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 500; }
.coordonnees a:hover { text-decoration: underline; }
.coordonnees .ico { color: var(--ocre-clair); }
.formulaire { background: var(--creme); color: var(--encre); border-radius: 14px; padding: 1.6rem; display: grid; gap: 1rem; align-self: start; }
.formulaire label { display: grid; gap: .35rem; font-weight: 600; font-size: .88rem; }
.formulaire input, .formulaire textarea { font: inherit; font-size: 1rem; padding: .7rem .85rem; border: 1.5px solid var(--ligne); border-radius: 8px; background: #fff; resize: vertical; }
.formulaire input:focus, .formulaire textarea:focus { outline: none; border-color: var(--mousse); }
.formulaire .btn-contour { color: var(--nuit); }
.formulaire .note { color: var(--encre-doux); font-size: .85rem; margin: 0; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; max-width: calc(var(--max) + 2 * var(--marge)); margin: 0 auto; } }

.pied { background: var(--creme); color: var(--encre-doux); padding: 2rem var(--marge) 2.5rem; font-size: .9rem; border-top: 1px solid var(--ligne); }
.pied strong { color: var(--nuit); font-family: var(--f-titre); font-weight: 700; }
.mentions summary { cursor: pointer; font-weight: 600; margin: .5rem 0; }
.mentions p { max-width: 80ch; }
.credit { margin: 1rem 0 0; }
.credit a { color: var(--mousse-fonce); }

/* ---------------------------------------------------------------- animations (communes aux trois versions) */
/* Apparition au défilement : la classe .vu est posée par script.js quand le bloc entre dans l'écran. */
.fade { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.fade.vu { opacity: 1; transform: none; }
.no-js .fade { opacity: 1; transform: none; }

/* Entrée du héros en cascade */
.hero .reveal { opacity: 0; transform: translateY(18px); animation: lever .8s ease forwards; }
.hero .d1 { animation-delay: .1s; }
.hero .d2 { animation-delay: .25s; }
.hero .d3 { animation-delay: .4s; }
.hero .d4 { animation-delay: .55s; }
.hero .d5 { animation-delay: .7s; }
@keyframes lever { to { opacity: 1; transform: none; } }
.no-js .hero .reveal { opacity: 1; transform: none; animation: none; }

/* Photo de fond de la version 1 : zoom lent */
.v1 .hero-fond { transform: scale(1.08); animation: poser 9s ease-out forwards; }
@keyframes poser { to { transform: scale(1); } }

/* Compteurs */
.faits .chiffre { font-size: 1.9em; font-weight: 900; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.faits strong { display: flex; align-items: baseline; gap: .3rem; flex-wrap: wrap; }
.v2 .faits strong { justify-content: center; }
.v1 .faits .chiffre { opacity: 1; color: var(--orange); }

/* Photos : zoom léger au survol */
.projet, .service > img, .materiel-photo img, .apropos-photo img, .comment-photo img { overflow: hidden; }
.projet img, .service > img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.projet:hover img, .service:hover > img { transform: scale(1.04); }
.projet { border-radius: 6px; }
.v2 .projet { border-radius: 10px; }
.v1 .projet { border-radius: 0; }

/* Numéros de « Comment je travaille » */
.liste-comment .num { transition: transform .4s ease; }
.liste-comment li.vu .num { animation: tapoter .5s ease .3s; }
@keyframes tapoter { 50% { transform: scale(1.18); } }

/* Boutons */
.btn-plein { position: relative; overflow: hidden; }
.btn-plein::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s ease; }
.btn-plein:hover::after { transform: translateX(120%); }

@media (prefers-reduced-motion: reduce) {
  .fade, .hero .reveal { opacity: 1; transform: none; transition: none; animation: none; }
  .v1 .hero-fond { transform: none; animation: none; }
  .projet img, .service > img, .liste-comment .num, .btn-plein::after { transition: none; animation: none; }
}
