/* irudiprod : feuille de style (piste B, bloc couleur) */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --foret: #183D2E;
  --foret-2: #24543F;
  --pistache: #C6E07C;
  --lilas: #C7B6F5;
  --abricot: #FFB37A;
  --brume: #EAEEF0;
  --blanc: #FFFFFF;
  --texte-doux: #3E5A4D;
  --trait: #CDD5D8;
  --erreur: #A3281E;

  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --r-xl: 40px;
  --r-l: 28px;
  --r-m: 18px;
  --step--1: .9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --step-3: clamp(2.2rem, 1.5rem + 2.8vw, 3.6rem);
  --step-4: clamp(2.7rem, 1.6rem + 4.4vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--foret);
  background: var(--brume);
}
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
p { margin: 0; }
a { color: var(--foret); text-underline-offset: .18em; }
a:hover { color: var(--foret-2); }
:focus-visible { outline: 3px solid var(--foret); outline-offset: 3px; border-radius: 6px; }
.tile-hero :focus-visible, .foot :focus-visible { outline-color: var(--pistache); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1240px, 100% - 3rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--foret); color: var(--blanc); padding: .6rem 1rem; z-index: 10; border-radius: 0 0 12px 0; }
.skip:focus { left: 0; }

/* Couleurs des dessins de produits : chaque fond fixe ses deux teintes */
.p-main { fill: var(--main, var(--foret)); }
.p-acc { fill: var(--acc, var(--pistache)); }
.p-line { fill: none; stroke: var(--acc, var(--pistache)); stroke-linecap: round; }
.p-hole { fill: var(--hole, var(--brume)); }
.t-lilas { background: var(--lilas); --main: var(--blanc); --acc: var(--foret); }
.t-pistache { background: var(--pistache); --main: var(--foret); --acc: var(--lilas); }
.t-abricot { background: var(--abricot); --main: var(--foret); --acc: var(--pistache); }
.t-blanc { background: var(--blanc); --main: var(--pistache); --acc: var(--foret); }
.t-blanc-alt { --main: var(--lilas); }
.t-foret { background: var(--foret); color: var(--brume); --main: var(--brume); --acc: var(--pistache); }

/* Boutons et pastilles */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; line-height: 1.2;
  border: 2px solid transparent; border-radius: 999px;
  padding: .95rem 1.7rem; min-height: 3rem;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-dark { background: var(--foret); color: var(--blanc); }
.btn-dark:hover { background: var(--foret-2); color: var(--blanc); }
.btn-pistache { background: var(--pistache); color: var(--foret); }
.btn-pistache:hover { background: #d5ea98; color: var(--foret); }
.btn-ghost-light { border-color: var(--brume); color: var(--brume); }
.btn-ghost-light:hover { background: var(--brume); color: var(--foret); }
.btn-small { padding: .6rem 1.15rem; min-height: 2.75rem; font-size: var(--step--1); }
.btn[disabled] { opacity: .6; cursor: progress; }
.pill { display: inline-block; font-weight: 700; font-size: var(--step--1); padding: .45rem 1rem; border-radius: 999px; }
.pill-pistache { background: var(--pistache); color: var(--foret); }

/* En-tête */
.top { position: sticky; top: 0; z-index: 5; background: rgba(234, 238, 240, .9); backdrop-filter: blur(10px); }
.top-in { display: flex; align-items: center; gap: 2rem; min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--foret); font-weight: 800; font-size: 1.6rem; letter-spacing: -.05em; }
.brand-mark { width: 2.1rem; height: 2.1rem; }
.ic-logo { --main: var(--foret); --acc: var(--pistache); --hole: var(--brume); }
.top nav { margin-left: auto; }
.top nav ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.top nav a { text-decoration: none; font-weight: 600; }
.top nav a:hover { text-decoration: underline; }

/* Accueil en bento */
.hero { padding: 1rem 0 clamp(3.5rem, 7vw, 6rem); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(15rem, auto)); gap: 1rem; }
.tile { border-radius: var(--r-xl); }
.tile-hero {
  grid-column: span 2; grid-row: span 2;
  background: var(--foret); color: var(--brume);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem;
}
.tile-hero .pill { align-self: flex-start; }
.tile-hero h1 { font-size: var(--step-4); letter-spacing: -.045em; line-height: .96; max-width: 11ch; }
.hero-sub { font-size: var(--step-1); line-height: 1.45; color: #cfdad4; max-width: 30rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.rating { color: #cfdad4; text-decoration: none; font-size: var(--step--1); }
.rating:hover { color: var(--blanc); text-decoration: underline; }
.stars { color: var(--pistache); letter-spacing: .06em; margin-right: .35rem; }
.tile-prod {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
  text-decoration: none; color: var(--foret); font-weight: 700; font-size: var(--step-1);
  padding: 1.5rem;
}
.tile-prod:hover span { text-decoration: underline; }
.prod-art { width: 9.5rem; height: 9rem; }
.art-wide { width: 10.5rem; height: 7rem; }
.art-tall { width: 4.5rem; height: 9.5rem; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-white { background: var(--blanc); }
.section-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { font-size: var(--step-1); line-height: 1.5; color: var(--texte-doux); }
.section-head-row { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
.section-head-row p { font-size: var(--step-0); }

.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.card h3 { font-size: var(--step-2); margin-top: 1.1rem; }
.card p { color: var(--texte-doux); margin-top: .4rem; max-width: 30ch; }
.card-art { border-radius: var(--r-l); height: 15rem; display: grid; place-items: center; }
.section-white .t-blanc { background: var(--brume); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.step { counter-increment: step; border-radius: var(--r-l); padding: 1.75rem 1.5rem 2rem; display: flex; flex-direction: column; gap: .6rem; }
.step::before {
  content: counter(step);
  font-weight: 800; font-size: 3.2rem; line-height: 1; letter-spacing: -.05em;
  margin-bottom: 1.5rem;
}
.step h3 { font-size: var(--step-1); letter-spacing: -.02em; line-height: 1.2; }
.step p { font-size: var(--step--1); line-height: 1.5; }
.t-foret.step p { color: #cfdad4; }

/* Engagement, discret */
.engage { padding: 0 0 clamp(3.5rem, 7vw, 6rem); }
.engage-in { background: var(--blanc); border-radius: var(--r-xl); padding: 2.25rem clamp(1.5rem, 4vw, 3rem); display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; }
.engage h2 { font-size: var(--step-2); margin-bottom: .6rem; }
.engage p { color: var(--texte-doux); max-width: 34rem; }
.labels { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.labels li { font-weight: 700; font-size: var(--step--1); padding: .45rem .95rem; border-radius: 999px; border: 1.5px solid var(--foret); }

/* Avis */
.quotes { columns: 3 19rem; column-gap: 1.25rem; }
.quote { break-inside: avoid; margin: 0 0 1.25rem; padding: 1.75rem; border-radius: var(--r-l); }
.quote p { font-size: 1.05rem; line-height: 1.55; }
.quote footer { margin-top: 1rem; font-weight: 800; }

/* Devis */
.devis { background: var(--blanc); }
.devis-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.devis-intro h2 { font-size: var(--step-3); }
.devis-intro p { margin-top: 1rem; color: var(--texte-doux); max-width: 26rem; }
.small { font-size: var(--step--1); }
.form { display: grid; gap: 1.1rem; background: var(--brume); padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--r-xl); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .35rem; align-content: start; }
.field-short { max-width: 22rem; }
label { font-weight: 700; font-size: var(--step--1); }
.opt { font-weight: 400; color: var(--texte-doux); }
input, select, textarea {
  font: inherit; color: var(--foret); width: 100%;
  background: var(--blanc); border: 2px solid transparent; border-radius: 14px;
  padding: .75rem .95rem; min-height: 3rem;
}
textarea { resize: vertical; min-height: 9rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--foret); }
[aria-invalid="true"] { border-color: var(--erreur); }
.err { color: var(--erreur); font-size: var(--step--1); font-weight: 600; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { color: var(--texte-doux); }
.form .btn { justify-self: start; }
.status { font-weight: 700; }
.status:empty { display: none; }
.status[data-state="error"] { color: var(--erreur); }
.sent { background: var(--pistache); border-radius: var(--r-l); padding: 2rem; }
.sent h3 { font-size: var(--step-2); margin-bottom: .5rem; }

/* Pied de page */
.foot { background: var(--foret); color: #cfdad4; padding: 3rem 0; font-size: var(--step--1); }
.foot a { color: var(--blanc); }
.foot-in { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; }
.brand-foot { color: var(--brume); font-size: 1.4rem; }
.brand-foot:hover { color: var(--blanc); }
.ic-logo-foot { --main: var(--pistache); --acc: var(--foret); --hole: var(--foret); }

/* Page mentions légales */
.legal { padding: clamp(3rem, 6vw, 5rem) 0; }
.legal-in { max-width: 46rem; background: var(--blanc); border-radius: var(--r-xl); padding: clamp(1.75rem, 4vw, 3.5rem); }
.legal h1 { font-size: var(--step-3); margin-bottom: 1.25rem; }
.legal h2 { font-size: var(--step-1); letter-spacing: -.02em; margin: 2rem 0 .6rem; }
.legal p + p { margin-top: .7rem; }
.push { margin-left: auto; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Tablette */
@media (max-width: 1000px) {
  .top nav { display: none; }
  .top .btn-small { margin-left: auto; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .tile-hero { grid-column: span 2; grid-row: auto; }
  .tile-prod { min-height: 14rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engage-in, .devis-in { grid-template-columns: 1fr; }
  .labels { justify-content: flex-start; }
}

/* Téléphone */
@media (max-width: 600px) {
  .wrap { width: min(1240px, 100% - 2rem); }
  .brand { font-size: 1.35rem; }
  .tile { border-radius: var(--r-l); }
  .tile-prod { min-height: 11rem; font-size: var(--step-0); }
  .prod-art { width: 6.5rem; height: 6.2rem; }
  .art-wide { width: 7.5rem; height: 5rem; }
  .art-tall { width: 3.2rem; height: 6.8rem; }
  .cards, .steps, .row { grid-template-columns: 1fr; }
  .section-head-row { grid-template-columns: 1fr; }
  .card-art { height: 12rem; }
}
