/* ============================================================
   sunhome.fr — feuille de style 2026
   Ardoise, papier, jaune signalisation. Une famille : Archivo.
   ============================================================ */
/* Police hébergée sur le site (pas d'appel à Google : plus rapide, conforme RGPD) */
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"), url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"), url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2113,U+A720-A7FF;
}

:root {
  --ardoise: #1F2B33;
  --ardoise-2: #3B4A54;
  --papier: #F6F7F4;
  --blanc: #FFFFFF;
  --jaune: #F2B705;
  --jaune-fonce: #8A6900;   /* jaune lisible sur fond clair */
  --vert: #2E6B57;
  --trait: #D3D8D2;
  --doux: #5E6B73;

  --large: "Archivo", "Arial Narrow", Arial, sans-serif;
  --mesure: 68ch;
  --gouttiere: clamp(16px, 4vw, 40px);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--ardoise);
  font-family: var(--large);
  font-stretch: 100%;
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; }

.conteneur { width: min(var(--max), 100% - 2 * var(--gouttiere)); margin-inline: auto; }

/* ---------- typographie ---------- */
h1, h2, h3, .chiffre {
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.15rem; font-stretch: 112%; line-height: 1.25; }
p { margin: 0 0 1em; max-width: var(--mesure); }
.intro { font-size: 1.2rem; color: var(--ardoise-2); }
.petit { font-size: 0.9rem; color: var(--doux); }

/* ---------- en-tête ---------- */
.entete {
  background: var(--blanc);
  border-bottom: 1px solid var(--trait);
  position: sticky; top: 0; z-index: 50;
}
.entete .conteneur { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 0.95rem; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--jaune); }
.tel-entete {
  text-decoration: none; font-weight: 800; font-stretch: 112%;
  background: var(--jaune); color: var(--ardoise);
  padding: 9px 14px; border-radius: 3px; white-space: nowrap;
}
.menu-bouton { display: none; margin-left: auto; background: none; border: 1px solid var(--trait); border-radius: 3px; padding: 8px 12px; font: inherit; color: inherit; cursor: pointer; }

@media (max-width: 900px) {
  .menu-bouton { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--blanc); border-bottom: 1px solid var(--trait); padding: 8px var(--gouttiere) 16px; }
  .nav.ouvert { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--trait); }
  .tel-entete { display: none; }
}

/* ---------- boutons ---------- */
.boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 800; font-stretch: 112%;
  text-decoration: none; cursor: pointer;
  padding: 14px 20px; border-radius: 3px; border: 2px solid var(--ardoise);
}
.btn-jaune { background: var(--jaune); border-color: var(--jaune); color: var(--ardoise); }
.btn-jaune:hover { background: #ffc81f; }
.btn-ligne { background: transparent; color: var(--ardoise); }
.btn-ligne:hover { background: var(--ardoise); color: var(--papier); }
.btn small { font-weight: 500; font-stretch: 100%; }

/* ---------- héros ---------- */
.heros { padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); }
.heros-grille { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.heros h1 { max-width: 15ch; }
.heros-seul h1 { max-width: 20ch; }
.heros .intro { margin-top: 22px; }
@media (max-width: 860px) { .heros-grille { grid-template-columns: 1fr; } }

/* Le ticket de prix : ce que vous payez, et quand */
.ticket {
  background: var(--ardoise); color: var(--papier);
  padding: 26px 26px 22px; border-radius: 4px;
}
.ticket .chiffre { font-size: clamp(3rem, 7vw, 4.6rem); color: var(--jaune); }
.ticket .sous { font-stretch: 112%; font-weight: 700; margin: 4px 0 16px; }
.ticket ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid #3a4852; }
.ticket li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #3a4852; }
.ticket li span:last-child { font-weight: 800; font-stretch: 112%; white-space: nowrap; }
.ticket .note { color: #b9c4ca; font-size: 0.88rem; margin: 14px 0 0; }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-blanche { background: var(--blanc); border-block: 1px solid var(--trait); }
.section-ardoise { background: var(--ardoise); color: var(--papier); }
.section-ardoise .petit { color: #b9c4ca; }
.entete-section { margin-bottom: 36px; }
.entete-section p { margin-top: 14px; }

/* ---------- avantages : liste en deux colonnes, pas de cartes ---------- */
.avantages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.avantage { padding: 22px 0 20px; border-top: 2px solid var(--ardoise); }
.avantage h3 { margin-bottom: 8px; }
.avantage p { margin: 0; color: var(--ardoise-2); }
@media (max-width: 720px) { .avantages { grid-template-columns: 1fr; } }

/* ---------- planning de chantier (chronologie des paiements) ---------- */
.planning { position: relative; }
.regle {
  display: grid; grid-template-columns: var(--col-libelle, 260px) repeat(7, 1fr);
  font-size: 0.8rem; color: var(--doux); font-stretch: 112%; font-weight: 700;
  border-bottom: 2px solid var(--ardoise); padding-bottom: 8px;
}
.regle span { border-left: 1px solid var(--trait); padding-left: 8px; }
.regle span:first-child { border-left: 0; padding-left: 0; }
.phase {
  display: grid; grid-template-columns: var(--col-libelle, 260px) repeat(7, 1fr);
  align-items: center; min-height: 64px; border-bottom: 1px solid var(--trait);
}
.phase-libelle { padding: 12px 16px 12px 0; }
.phase-libelle strong { display: block; font-stretch: 112%; }
.phase-libelle span { font-size: 0.9rem; color: var(--doux); }
.barre {
  height: 36px; border-radius: 3px; display: flex; align-items: center; padding: 0 12px;
  font-weight: 800; font-stretch: 112%; font-size: 0.95rem; white-space: nowrap;
  background: repeating-linear-gradient(-45deg, #e9ece7 0 8px, #f3f5f1 8px 16px);
  border: 1px solid var(--trait); color: var(--doux);
  margin-right: 6px;
}
.barre-paye { background: var(--jaune); border-color: var(--jaune); color: var(--ardoise); }
.barre-vert { background: var(--vert); border-color: var(--vert); color: #fff; }
.c1 { grid-column: 2 / span 1; } .c2 { grid-column: 3 / span 1; } .c3 { grid-column: 4 / span 1; }
.c4 { grid-column: 5 / span 1; } .c5 { grid-column: 6 / span 1; } .c6 { grid-column: 7 / span 1; } .c7 { grid-column: 8 / span 1; }
.c1-3 { grid-column: 2 / span 3; }
.planning-total {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px;
  margin-top: 22px; padding: 20px 22px; background: var(--ardoise); color: var(--papier); border-radius: 4px;
}
.planning-total .chiffre { color: var(--jaune); font-size: clamp(1.8rem, 3.5vw, 2.4rem); }

/* La garantie, rendue visible sur le planning */
.garantie-trait {
  display: grid; grid-template-columns: var(--col-libelle, 260px) repeat(7, 1fr);
  margin-top: 6px; font-size: 0.88rem; color: var(--vert); font-weight: 700;
}
.garantie-trait div { grid-column: 2 / span 3; border-top: 3px solid var(--vert); padding-top: 6px; }

@media (max-width: 860px) {
  /* Sur mobile : le planning devient une ligne de temps verticale */
  .regle, .garantie-trait { display: none; }
  .phase { display: flex; flex-wrap: wrap; gap: 8px 0; padding: 14px 0 14px 22px; position: relative; border-bottom: 0; border-left: 2px solid var(--ardoise); margin-left: 6px; }
  .phase-libelle { flex: 0 0 100%; }
  .phase::before { content: ""; position: absolute; left: -8px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--papier); border: 2px solid var(--ardoise); }
  .phase-libelle { padding: 0; }
}

/* ---------- étapes (séquence réelle : numérotées) ---------- */
.etapes { list-style: none; margin: 0; padding: 0; counter-reset: etape; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.etapes li { counter-increment: etape; padding-top: 14px; border-top: 2px solid var(--papier); }
.etapes li::before { content: counter(etape); display: block; font-stretch: 125%; font-weight: 800; font-size: 2.2rem; color: var(--jaune); line-height: 1; margin-bottom: 10px; }
.etapes h3 { margin-bottom: 6px; }
.etapes p { margin: 0; color: #c9d2d7; font-size: 0.97rem; }
@media (max-width: 860px) { .etapes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .etapes { grid-template-columns: 1fr; } }

/* ---------- inclus / option ---------- */
.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 760px) { .deux-col { grid-template-columns: 1fr; } }
.liste-coches { list-style: none; padding: 0; margin: 0; }
.liste-coches li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--trait); position: relative; }
.liste-coches li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 3px solid var(--vert); border-bottom: 3px solid var(--vert); transform: rotate(-45deg); }
.option { border: 2px solid var(--ardoise); border-radius: 4px; padding: 24px; background: var(--blanc); }
.option .chiffre { font-size: 2.2rem; margin: 6px 0 10px; }
.option .chiffre small { font-size: 1rem; font-stretch: 100%; font-weight: 600; color: var(--doux); }

/* ---------- questions ---------- */
.questions details { border-bottom: 1px solid var(--trait); padding: 4px 0; }
.questions summary { cursor: pointer; font-weight: 800; font-stretch: 112%; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
.questions details[open] summary::after { content: "−"; }
.questions details p { margin: 0 0 16px; color: var(--ardoise-2); }

/* ---------- références ---------- */
.references { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 0; list-style: none; font-stretch: 112%; font-weight: 700; }
.references a { text-decoration: none; border-bottom: 2px solid var(--trait); }
.references a:hover { border-bottom-color: var(--jaune); }

/* ---------- appel final + contact ---------- */
.appel { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 760px) { .appel { grid-template-columns: 1fr; } }
.contact-bloc { font-style: normal; line-height: 1.9; }
.contact-bloc a { text-decoration: none; }
.contact-bloc .gratuit { font-weight: 800; font-stretch: 112%; color: var(--jaune); font-size: 1.15rem; }
.section-ardoise .btn-ligne { color: var(--papier); border-color: var(--papier); }
.section-ardoise .btn-ligne:hover { background: var(--papier); color: var(--ardoise); }

.pied { padding: 24px 0 90px; font-size: 0.85rem; color: var(--doux); }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Bouton d'appel fixe sur mobile */
.appel-mobile { display: none; }
@media (max-width: 900px) {
  .appel-mobile {
    display: flex; justify-content: center; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    background: var(--jaune); color: var(--ardoise); text-decoration: none; font-weight: 800; font-stretch: 112%;
    padding: 14px; border-radius: 4px; box-shadow: 0 6px 20px rgba(31, 43, 51, .3);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .barre-anim { transform-origin: left center; animation: pose 700ms cubic-bezier(.2,.7,.2,1) both; }
  .phase:nth-child(3) .barre-anim { animation-delay: 120ms; }
  .phase:nth-child(4) .barre-anim { animation-delay: 240ms; }
  .phase:nth-child(5) .barre-anim { animation-delay: 360ms; }
  .phase:nth-child(6) .barre-anim { animation-delay: 480ms; }
  .phase:nth-child(7) .barre-anim { animation-delay: 600ms; }
  @keyframes pose { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
}

/* ---------- références ---------- */
.refs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
@media (max-width: 900px) { .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .refs { grid-template-columns: 1fr; } }
.ref { border-top: 2px solid var(--ardoise); padding-top: 18px; }
.ref h3 a { text-decoration: none; }
.ref h3 { margin-bottom: 8px; }
.ref p { margin: 0 0 6px; color: var(--ardoise-2); font-size: 0.97rem; }

/* étapes sur fond clair */
.etapes-claires li { border-top-color: var(--ardoise); }
.etapes-claires li::before { color: var(--jaune-fonce); }
.etapes-claires p { color: var(--ardoise-2); }

/* page menu */
.menu-page { list-style: none; padding: 0; margin: 0; }
.menu-page a { display: block; padding: 16px 0; border-bottom: 1px solid var(--trait); text-decoration: none; font-weight: 800; font-stretch: 112%; font-size: 1.2rem; }

/* ---------- formulaire ---------- */
.form-contact { max-width: 760px; }
.form-contact label { display: block; margin-bottom: 16px; font-weight: 700; font-stretch: 112%; }
.form-contact input, .form-contact select, .form-contact textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px; font: inherit; font-weight: 400; font-stretch: 100%;
  color: var(--ardoise); background: var(--blanc); border: 1px solid #aeb8b2; border-radius: 3px;
}
.form-contact textarea { resize: vertical; }
.form-ligne { display: flex; gap: 16px; flex-wrap: wrap; }
.form-ligne label { flex: 1 1 260px; }
.form-contact .form-accord { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-stretch: 100%; }
.form-contact .form-accord input { width: auto; margin-top: 4px; }
.form-note { font-size: 0.88rem; color: var(--doux); }
.form-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-erreurs { color: #b42318; }

@media (max-width: 1100px) and (min-width: 901px) { .nav { gap: 14px; font-size: 0.88rem; } }

/* références : vidéo ou photo du site */
.ref-media { display: block; aspect-ratio: 640 / 294; margin-bottom: 16px; background: var(--ardoise); border: 1px solid var(--trait); overflow: hidden; text-decoration: none; }
.ref-media video, .ref-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref-nom { display: flex; height: 100%; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--papier); font-stretch: 125%; font-weight: 800; font-size: 1.3rem; line-height: 1.15; }
.ref h3 { display: flex; align-items: center; gap: 10px; }
.ref-logo { height: 28px; width: auto; max-width: 90px; object-fit: contain; }

/* pages reprises de l'ancien sunhome.fr */
.texte-libre h2 { margin: 36px 0 14px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.texte-libre h2:first-child { margin-top: 0; }
.texte-libre h3 { margin: 24px 0 8px; }
.texte-libre ul { max-width: var(--mesure); padding-left: 22px; }
.texte-libre li { margin-bottom: 6px; }
.texte-libre img { margin: 20px 0; }
