@font-face { font-family: "Outfit"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/outfit-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); }
/* Entreprise Cormann
   Principe : chaque section est un mur peint. Le nuancier du hero est la pièce maîtresse,
   le reste reste calme. Aucune police externe (RGPD) : piles système uniquement. */

:root {
  --nuit: #22364A;
  --sauge: #B7C4AE;
  --sauge-fonce: #4F6149;
  --poudre: #EBCFC6;
  --ocre: #D9A441;
  --mur: #FBF9F6;
  --lin: #F1EEE9;
  --encre: #232323;
  --muted: #5C5C5C;
  --radius: 4px;

  --titre: "Outfit", "Trebuchet MS", system-ui, sans-serif;
  --texte: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--encre);
  background: var(--mur);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--nuit); text-underline-offset: 3px; }
.container { width: min(1120px, 90%); margin-inline: auto; }
.narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--titre); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin-bottom: 6px; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--nuit); outline-offset: 3px; }
.wall-nuit :focus-visible, .site-footer :focus-visible { outline-color: var(--ocre); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--nuit); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 249, 246, .96);
  box-shadow: 0 1px 0 rgba(34, 54, 74, .12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.logo { display: block; line-height: 0; text-decoration: none; }
.logo img { height: 76px; width: auto; }
nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; align-items: center; }
nav a { text-decoration: none; color: var(--encre); font-size: .95rem; }
nav a:hover { color: var(--nuit); text-decoration: underline; }

/* Boutons */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: var(--radius);
  background: var(--ocre); color: var(--encre); text-decoration: none;
  font-family: var(--titre); font-weight: 600; font-size: 1.05rem;
  border: 2px solid var(--ocre); cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: #E6B65A; border-color: #E6B65A; text-decoration: none; }
.btn-ghost { background: transparent; border-color: var(--nuit); color: var(--nuit); }
.btn-ghost:hover { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.btn-small { padding: 8px 16px; font-size: .95rem; color: var(--encre); }
nav a.btn:hover { color: var(--encre); text-decoration: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 84px 0 150px;
  background: #EFE6D8;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);
}
/* panneau bois en biais : remplacez images/hero-bois.jpg par une photo de chantier quand elle sera prête */
.hero-photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 50%; z-index: 0;
  background: linear-gradient(rgba(255, 244, 225, .16), rgba(255, 244, 225, .16)), url("images/hero-bois.jpg") center / cover;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  -webkit-clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--nuit); margin-bottom: 22px; }
.lead { font-size: 1.2rem; max-width: 52ch; color: #3a3a3a; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px 26px; flex-wrap: wrap; font-size: .95rem; color: var(--muted); }
.badges li::before { content: "✓"; color: var(--sauge-fonce); font-weight: 700; margin-right: 8px; }

/* Nuancier */
.chips { position: relative; min-height: 470px; }
.chip {
  position: absolute; width: 205px; padding: 9px 9px 3px;
  background: #fff; border-radius: 3px;
  box-shadow: 0 10px 26px rgba(34, 54, 74, .18);
  animation: chip-in .8s cubic-bezier(.2, .7, .2, 1) both;
}
.chip-color { height: 140px; border-radius: 2px; }
.chip p { margin: 12px 4px 10px; font-size: .9rem; line-height: 1.35; color: var(--muted); }
.chip strong { display: block; font-family: var(--titre); font-size: 1.1rem; color: var(--encre); }
.chip-1 { left: 0;     top: 0;     transform: rotate(-5deg); }
.chip-2 { left: 115px; top: 120px; transform: rotate(3deg);  animation-delay: .12s; }
.chip-3 { left: 230px; top: 240px; transform: rotate(-2deg); animation-delay: .24s; }
.chip-1 .chip-color { background: #B4624A; }
.chip-2 .chip-color { background: var(--sauge); }
.chip-3 .chip-color { background: var(--poudre); }

@keyframes chip-in {
  from { opacity: 0; transform: translateY(28px) rotate(0deg); }
}

/* Murs (sections) */
.wall { padding: 84px 0; }
.wall-mur { background: var(--mur); }
.wall-lin { background: var(--lin); }
.wall-sauge { background: var(--sauge); }
.wall-poudre { background: var(--poudre); }
.wall-nuit { background: var(--nuit); color: #fff; }
.wall-nuit a { color: #fff; }
.wall.wall-nuit h2 { color: #fff; }
.wall h2 { color: var(--nuit); }
.section-intro { max-width: 60ch; color: var(--muted); margin-bottom: 40px; }
.wall-sauge .section-intro, .wall-poudre .section-intro { color: #333; }

/* Services : une liste avec échantillons de couleur, pas des cartes */
.services {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px;
}
.services li { display: grid; grid-template-columns: 14px 1fr; column-gap: 20px; align-content: start; }
.services li::before {
  content: ""; grid-row: 1 / span 2; align-self: start; height: 76px; background: var(--c);
  border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.services h3 { color: var(--nuit); }
.services p { color: #444; margin: 0; max-width: 46ch; }

/* Galerie : tirages encadrés */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.gallery figure { margin: 0; background: #fff; padding: 10px 10px 14px; border-radius: 2px; box-shadow: 0 6px 18px rgba(34, 54, 74, .15); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--lin); }
.gallery figcaption { margin-top: 10px; font-size: .92rem; color: var(--muted); }

/* Méthode : ici c'est vraiment une suite d'étapes, donc numérotée */
.steps { list-style: none; counter-reset: etape; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; }
.steps li { counter-increment: etape; }
.steps li::before {
  content: counter(etape);
  display: block; font-family: var(--titre); font-weight: 600;
  font-size: 3.6rem; line-height: 1; color: var(--nuit); opacity: .85; margin-bottom: 10px;
}
.steps h3 { color: var(--nuit); }
.steps p { color: #3b3b3b; margin: 0; }

/* Zone */
.zone-text { font-family: var(--titre); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.35; max-width: 34ch; color: var(--encre); margin-bottom: 20px; }

/* FAQ */
details { border-bottom: 1px solid rgba(34, 54, 74, .2); }
summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-family: var(--titre); font-weight: 600; font-size: 1.15rem; color: var(--nuit);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; transition: transform .2s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0 0 18px; color: #444; max-width: 62ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.wall-nuit p { color: #dfe6ee; }
address { font-style: normal; margin-top: 24px; line-height: 1.9; color: #dfe6ee; }
address strong { color: #fff; }
form { display: grid; gap: 16px; position: relative; }
label { display: grid; gap: 6px; font-size: .95rem; color: #fff; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius);
  border: 2px solid transparent; background: #fff; color: var(--encre); font: inherit;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ocre); outline-offset: 1px; }
form .btn { justify-self: start; }

/* Pied de page */
.site-footer { background: #171f29; color: #b9c3ce; padding: 30px 0; font-size: .92rem; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #e4e9ef; }

/* Mobile */
@media (max-width: 860px) {
  .hero { padding: 44px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .chips { min-height: 400px; max-width: 420px; }
  .chip { width: 170px; }
  .chip-color { height: 110px; }
  .chip-1 { left: 0; top: 0; }
  .chip-2 { left: 95px; top: 105px; }
  .chip-3 { left: 190px; top: 210px; }
  .hero { padding-bottom: 150px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .services { grid-template-columns: 1fr; gap: 28px; }
  .wall { padding: 56px 0; }
}
@media (max-width: 720px) {
  .nav-extra { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip { animation: none; }
  summary::after, .btn { transition: none; }
}

/* Pages légales */
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--nuit); margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: .92rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.35rem; margin: 34px 0 8px; }
.legal p { max-width: 68ch; }

/* Carte de zone : un grand échantillon de peinture, comme dans le nuancier du hero */
.zone-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.zone-text { margin-bottom: 24px; }
.legend { list-style: none; margin: 0 0 28px; padding: 0; display: flex; gap: 10px 24px; flex-wrap: wrap; font-family: var(--titre); font-weight: 600; color: var(--nuit); }
.legend .dot { display: inline-block; width: 18px; height: 18px; border-radius: 2px; background: var(--c); margin-right: 9px; vertical-align: -3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.zone-map { background: #fff; padding: 10px 10px 4px; border-radius: 3px; box-shadow: 0 10px 26px rgba(34, 54, 74, .18); }
.zone-svg { width: 100%; height: auto; display: block; border-radius: 2px; }
.zm-city { font-family: var(--texte); font-size: 19px; fill: #232323; paint-order: stroke; stroke: #F1EEE9; stroke-width: 5px; stroke-linejoin: round; }
.zm-home { font-family: var(--titre); font-weight: 600; font-size: 22px; fill: #22364A; }
.zm-ring { font-family: var(--texte); font-size: 17px; fill: #22364A; fill-opacity: .7; }
.map-note { margin: 12px 4px 10px; font-size: .9rem; line-height: 1.35; color: var(--muted); }
.map-note strong { display: block; font-family: var(--titre); font-size: 1.1rem; color: var(--encre); }
@media (max-width: 860px) { .zone-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Décor : grain de peinture sur tous les murs, arches peintes dans la bannière */
:root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E"); }
.wall, .hero { position: relative; }
.wall::before, .hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; pointer-events: none;
  background-image: var(--grain); opacity: .55;
}
.wall > .container, .hero > .container { position: relative; z-index: 1; }

@media (max-width: 860px) {
  .hero { padding-bottom: 64px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%); -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%); }
  .hero-photo { top: auto; left: 0; width: 100%; height: 520px; clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%); -webkit-clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%); }
}

/* Nuancier adapté aux largeurs intermédiaires et aux petits téléphones */
@media (min-width: 861px) and (max-width: 1120px) {
  .chip { width: 172px; }
  .chip-color { height: 118px; }
  .chip-1 { left: 0; top: 0; }
  .chip-2 { left: 95px; top: 105px; }
  .chip-3 { left: 190px; top: 210px; }
  .chips { min-height: 400px; }
}
@media (max-width: 480px) {
  .chips { min-height: 410px; max-width: none; }
  .chip { width: 124px; padding: 7px 7px 2px; }
  .chip-color { height: 84px; }
  .chip p { margin: 8px 3px 6px; font-size: .78rem; }
  .chip strong { font-size: .95rem; }
  .chip-1 { left: 0; top: 0; }
  .chip-2 { left: 82px; top: 120px; }
  .chip-3 { left: 164px; top: 240px; }
}

.footer-logo { height: 84px; width: auto; margin-bottom: 16px; }
@media (max-width: 480px) { .logo img { height: 56px; } .footer-logo { height: 70px; } }

/* Menu, boutons et étiquettes en police de titre (Outfit), formulaires en police de texte */
.site-header nav a, .btn, .legend, .chip strong, .map-note strong { font-family: var(--titre); }
.site-header nav a { font-weight: 500; font-size: 1.02rem; letter-spacing: .005em; }
.btn { font-weight: 600; letter-spacing: .01em; }
button, input, select, textarea { font-family: var(--texte); }

/* Mot de l'artisan */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: center; }
.about-badge { width: 200px; height: 200px; border-radius: 50%; background: var(--nuit); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 0 0 8px var(--lin), 0 0 0 10px var(--ocre); justify-self: center; transform: rotate(-4deg); }
.about-badge strong { font-family: var(--titre); font-weight: 700; font-size: 3.6rem; line-height: 1; color: var(--ocre); }
.about-badge span { font-family: var(--titre); font-weight: 500; font-size: 1.05rem; margin-top: 6px; }
.about-text { max-width: 62ch; }
.about-text h2 { margin-bottom: 14px; }
.about-lead { font-family: var(--titre); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.3; color: var(--sauge-fonce); margin: 0 0 16px; }
.about-text p { margin: 0 0 14px; color: #3a3a3a; }
.about-text .about-lead { color: var(--sauge-fonce); }
.about-sign { display: block; height: 78px; width: auto; margin-top: 8px; }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; gap: 28px; } .about-badge { width: 150px; height: 150px; justify-self: start; } .about-badge strong { font-size: 2.7rem; } .about-badge span { font-size: .95rem; } }

/* Marques utilisées */
.brands { margin-top: 48px; padding: 26px 0 0; border-top: 1px solid rgba(34, 54, 74, .12); text-align: center; }
.brands-title { font-family: var(--texte); font-weight: 400; font-size: 1rem; color: var(--muted); margin: 0 auto 14px; max-width: 70ch; }
.brands-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 0; }
.brands-list li { font-family: var(--titre); font-weight: 600; font-size: 1.2rem; letter-spacing: .02em; color: var(--nuit); opacity: .8; white-space: nowrap; }
.brands-list li + li::before { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--ocre); margin: 0 18px; vertical-align: middle; transform: rotate(45deg); }
.brands-list li.brands-etc { font-family: var(--texte); font-weight: 400; font-size: 1rem; color: var(--muted); opacity: 1; }
@media (max-width: 560px) { .brands-list { gap: 8px 22px; } .brands-list li { font-size: 1.05rem; } .brands-list li + li::before { display: none; } .brands-list li.brands-etc { font-size: .95rem; } }

/* Réalisations : photos instantanées */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 190px)); gap: 30px 26px; justify-content: center; }
.polaroid { margin: 0; background: #fff; padding: 8px 8px 11px; border-radius: 2px; box-shadow: 0 8px 22px rgba(34, 54, 74, .22); transform: rotate(-2deg); transition: transform .25s ease, box-shadow .25s ease; }
.project:nth-child(2) .polaroid { transform: rotate(1.6deg); }
.project:nth-child(3) .polaroid { transform: rotate(-1deg); }
.project:nth-child(4) .polaroid { transform: rotate(2.2deg); }
.project:hover .polaroid { transform: rotate(0) translateY(-4px); box-shadow: 0 14px 30px rgba(34, 54, 74, .28); }
.polaroid a { position: relative; display: block; line-height: 0; }
.polaroid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid figcaption { margin-top: 9px; padding: 0 2px; display: grid; gap: 2px; }
.polaroid figcaption strong { line-height: 1.25; font-family: var(--titre); font-weight: 600; font-size: .95rem; color: var(--nuit); }
.polaroid figcaption span { line-height: 1.35; font-size: .8rem; color: var(--muted); }
.polaroid-img { aspect-ratio: 4 / 5; background: var(--c); display: flex; align-items: center; justify-content: center; }
.polaroid-img span { font-family: var(--titre); font-weight: 600; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(34, 54, 74, .55); border: 1.5px dashed rgba(34, 54, 74, .35); padding: 6px 12px; }
.project-soon .polaroid { opacity: .85; }
.gal-count { position: absolute; right: 6px; top: 6px; line-height: 1; background: rgba(34, 54, 74, .88); color: #fff; font-family: var(--titre); font-weight: 600; font-size: .72rem; padding: 5px 8px; border-radius: 3px; }
@media (max-width: 560px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; } .polaroid { padding: 7px 7px 10px; } .polaroid figcaption strong { font-size: .92rem; } .polaroid figcaption span { font-size: .8rem; } }

/* Visionneuse photo */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(15, 22, 31, .94); display: flex; align-items: center; justify-content: center; padding: 56px 16px 64px; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: min(92vw, 900px); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb img { max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 2px; background: #111; }
.lb figcaption { color: #e8edf2; font-size: 1rem; text-align: center; max-width: 60ch; }
.lb-count { pointer-events: none; position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #aeb9c6; font-size: .9rem; }
.lb button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; display: flex; align-items: center; justify-content: center; font-family: var(--texte); }
.lb button:hover { background: rgba(255, 255, 255, .24); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; } .lb-prev { left: 16px; } .lb-next { right: 16px; } .lb-count { bottom: 22px; } }

.form-note { margin: 12px 0 0; font-size: .85rem; line-height: 1.45; opacity: .85; }
.form-note a { color: inherit; text-decoration: underline; }

.contact-solo { grid-template-columns: 1fr; }
.contact-solo > div { max-width: 640px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 28px; }
.form-wrap[hidden] { display: none; }
.wall-nuit .btn-ghost { border-color: #fff; color: #fff; }
.wall-nuit .btn-ghost:hover { background: #fff; color: var(--nuit); }

@media (max-width: 1000px) and (min-width: 721px) { .services { grid-template-columns: repeat(2, 1fr); } }
