/* Le Coup de Fil — feuille de style
   Palette générée avec UI Color Palette (OKLCH, échelle Tailwind). Voir DA.md. */

:root {
  /* Bleu de travail */
  --bleu-50: #cef1ff;
  --bleu-100: #b1d6ff;
  --bleu-200: #95bcff;
  --bleu-300: #7aa2f9;
  --bleu-500: #4a70c7;
  --bleu-600: #3558ac;
  --bleu-700: #24459a; /* couleur source */
  --bleu-800: #102b73;
  --bleu-900: #041556;
  /* Jaune chantier */
  --jaune-50: #ffec8e;
  --jaune-100: #ffd066;
  --jaune-400: #ffc42e; /* couleur source */
  --jaune-600: #865100;
  /* Ardoise (neutres) */
  --ardoise-50: #eaf2ff;
  --ardoise-100: #cfd8eb;
  --ardoise-200: #b5bed2;
  --ardoise-500: #6b7489;
  --ardoise-600: #555d71;
  --ardoise-800: #2c3343;
  --ardoise-900: #191f2d;
  --blanc: #ffffff;

  /* Rôles */
  --fond: var(--blanc);
  --fond-bande: var(--ardoise-50);
  --texte: var(--ardoise-900);
  --texte-doux: var(--ardoise-600);
  --trait: var(--ardoise-100);
  --marque: var(--bleu-700);
  --accent: var(--jaune-400);

  --titre: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --corps: "Barlow", "Segoe UI", Helvetica, Arial, sans-serif;
  --main: "Caveat", "Segoe Script", "Comic Sans MS", cursive;

  --large: 72rem;
  --gouttiere: clamp(1.25rem, 4vw, 2.5rem);
  --bloc: clamp(4rem, 9vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 1.125rem;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3.25rem, 9.5vw, 7rem); font-weight: 800; line-height: 0.94; }
h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h3 { font-size: 1.625rem; line-height: 1.1; }
p { margin: 0; max-width: 62ch; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sur-clair :focus-visible, .fiche :focus-visible { outline-color: var(--bleu-700); }

.conteneur { width: min(100% - 2 * var(--gouttiere), var(--large)); margin-inline: auto; }
.section { padding-block: var(--bloc); }
.section-bande { background: var(--fond-bande); }
.chapeau { margin-top: 1.25rem; font-size: 1.25rem; color: var(--texte-doux); }

.saut {
  position: absolute; left: -999px; top: 0; padding: 0.75rem 1rem;
  background: var(--accent); color: var(--ardoise-900); font-weight: 600;
}
.saut:focus { left: 0; z-index: 10; }

/* Boutons */
.bouton {
  display: inline-block;
  font-family: var(--corps);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.95rem 1.5rem;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease;
}
.bouton:active { transform: translateY(1px); }
.bouton-jaune { background: var(--accent); color: var(--ardoise-900); }
.bouton-jaune:hover { background: var(--jaune-100); }
.bouton-contour { border-color: currentColor; color: var(--blanc); }
.bouton-contour:hover { background: rgb(255 255 255 / 0.12); }
.bouton-bleu { background: var(--marque); color: var(--blanc); }
.bouton-bleu:hover { background: var(--bleu-800); }

/* En-tête */
.entete { background: var(--marque); color: var(--blanc); }
.entete-ligne {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1.1rem;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--titre); font-weight: 800; font-size: 1.75rem;
  line-height: 1; text-decoration: none; color: var(--blanc);
}
.logo svg { width: 1.6rem; height: 1.6rem; flex: none; }
.navigation { display: flex; align-items: center; gap: 1.75rem; }
.navigation a { text-decoration: none; font-weight: 500; font-size: 1rem; }
.navigation a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.navigation .bouton { padding: 0.6rem 1rem; font-size: 1rem; }
@media (max-width: 44rem) { .navigation .lien-nav { display: none; } }

/* Ouverture */
.ouverture { background: var(--marque); color: var(--blanc); padding-block: clamp(2.5rem, 6vw, 5rem) var(--bloc); overflow: hidden; }
.ouverture-grille { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 60rem) { .ouverture-grille { grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 0.8fr); } }
.ouverture p { margin-top: 1.5rem; font-size: clamp(1.15rem, 2.2vw, 1.375rem); color: var(--bleu-50); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }
.souligne-jaune { background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 92% / 100% 0.14em; }

/* Téléphone qui sonne */
.telephone {
  justify-self: center;
  width: min(100%, 19rem);
  background: var(--ardoise-900);
  border-radius: 2.25rem;
  padding: 0.7rem;
  box-shadow: 0 1.5rem 0 -0.75rem var(--bleu-900);
  transform-origin: 50% 90%;
  animation: sonne 0.9s ease-in-out 0.6s 3;
}
.ecran {
  background: linear-gradient(170deg, var(--ardoise-800), var(--ardoise-900));
  border-radius: 1.7rem;
  padding: 2.5rem 1.25rem 1.5rem;
  text-align: center;
  color: var(--blanc);
}
.ecran .appel { font-size: 0.9375rem; color: var(--ardoise-200); }
.ecran .nom { font-family: var(--titre); font-weight: 700; font-size: 2.25rem; line-height: 1; margin-top: 0.5rem; }
.ecran .motif { margin: 0.6rem auto 0; font-size: 1rem; color: var(--ardoise-100); max-width: 16ch; }
.touches { display: flex; justify-content: space-around; margin-top: 2.75rem; }
.touche { width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; }
.touche svg { width: 1.5rem; height: 1.5rem; }
.touche-refus { background: #c8323c; }
.touche-accepte { background: var(--accent); color: var(--ardoise-900); }
.legende-telephone { margin: 1.25rem auto 0; text-align: center; font-size: 0.9375rem; color: var(--bleu-100); max-width: 28ch; }
@keyframes sonne {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-3.5deg); }
  30% { transform: rotate(3deg); }
  45% { transform: rotate(-2.5deg); }
  60% { transform: rotate(2deg); }
  75% { transform: rotate(-1deg); }
}

/* Relevé : 35 fiches */
.releve { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-top: 3rem; }
@media (min-width: 56rem) { .releve { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.fiches { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem; max-width: 26rem; list-style: none; margin: 0; padding: 0; }
.fiches li { aspect-ratio: 1; border-radius: 4px; background: var(--ardoise-100); }
.fiches .sans-site { background: var(--accent); }
.fiches .defaut { background: repeating-linear-gradient(135deg, var(--accent) 0 5px, var(--blanc) 5px 10px); outline: 2px solid var(--accent); outline-offset: -2px; }
.legende { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.legende li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: baseline; }
.legende .chiffre { font-family: var(--titre); font-weight: 800; font-size: 3.5rem; line-height: 0.9; color: var(--marque); }
.legende strong { display: block; font-weight: 600; }
.legende span { color: var(--texte-doux); font-size: 1rem; }
.source { margin-top: 2rem; font-size: 0.9375rem; color: var(--texte-doux); max-width: 70ch; }

/* Ce que vous recevez */
.contenu-offre { display: grid; gap: 0; margin-top: 3rem; border-top: 2px solid var(--ardoise-900); }
.contenu-offre > div { display: grid; gap: 0.5rem 2rem; padding-block: 1.5rem; border-bottom: 1px solid var(--ardoise-200); }
@media (min-width: 48rem) { .contenu-offre > div { grid-template-columns: 18rem 1fr; align-items: baseline; } }
.contenu-offre p { color: var(--texte-doux); }

/* Devis */
.devis-grille { display: grid; gap: 2rem; margin-top: 3rem; align-items: start; }
@media (min-width: 56rem) { .devis-grille { grid-template-columns: 1fr 1fr; } }
.fiche {
  background: var(--blanc);
  color: var(--ardoise-900);
  border: 1px solid var(--ardoise-200);
  border-top: 10px solid var(--marque);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 6px 6px 0 var(--ardoise-100);
}
.fiche-complet { border-top-color: var(--accent); }
.fiche-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.fiche-tete .numero { font-size: 0.9375rem; color: var(--texte-doux); }
.fiche .pour { margin-top: 0.35rem; color: var(--texte-doux); font-size: 1rem; }
.fiche table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: 1rem; }
.fiche th { text-align: left; font-weight: 600; font-size: 0.9375rem; color: var(--texte-doux); padding: 0 0 0.5rem; border-bottom: 2px solid var(--ardoise-900); }
.fiche th:last-child, .fiche td:last-child { text-align: right; white-space: nowrap; padding-left: 1rem; }
.fiche td { padding: 0.7rem 0; border-bottom: 1px dashed var(--ardoise-200); vertical-align: top; }
.fiche td:last-child { color: var(--texte-doux); }
.totaux { margin-top: 1.25rem; display: grid; gap: 0.25rem; }
.totaux div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.totaux dt { font-weight: 600; }
.totaux dd { margin: 0; font-family: var(--main); font-weight: 600; font-size: 2.5rem; line-height: 1; color: var(--marque); transform: rotate(-2deg); }
.totaux .mensuel dd { font-size: 2rem; }
dl.totaux { margin-bottom: 0; }
.fiche .mention { margin-top: 1.25rem; font-size: 0.875rem; color: var(--texte-doux); }
.accord { margin-top: 1.5rem; border: 2px dashed var(--ardoise-200); padding: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.accord span { font-size: 0.9375rem; color: var(--texte-doux); }
.hors-devis { margin-top: 2rem; color: var(--texte-doux); }

/* Déroulement */
.etapes { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 2rem; counter-reset: etape; }
@media (min-width: 52rem) { .etapes { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.etapes li { counter-increment: etape; border-top: 4px solid var(--marque); padding-top: 1rem; }
.etapes li::before { content: counter(etape); font-family: var(--titre); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--marque); display: block; margin-bottom: 0.5rem; }
.etapes p { margin-top: 0.5rem; color: var(--texte-doux); font-size: 1rem; }
.etapes .delai { display: block; margin-top: 0.75rem; font-weight: 600; font-size: 0.9375rem; color: var(--ardoise-900); }

/* Questions */
.questions { margin-top: 2.5rem; max-width: 50rem; border-top: 2px solid var(--ardoise-900); }
.questions details { border-bottom: 1px solid var(--ardoise-200); }
.questions summary { cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; font-family: var(--titre); font-weight: 700; font-size: 1.5rem; line-height: 1.15; list-style: none; position: relative; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; position: absolute; right: 0.25rem; top: 1rem; font-size: 2rem; font-weight: 600; color: var(--marque); }
.questions details[open] summary::after { content: "–"; }
.questions details p { padding-bottom: 1.5rem; color: var(--texte-doux); }

/* Contact */
.contact { background: var(--marque); color: var(--blanc); }
.contact-grille { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 56rem) { .contact-grille { grid-template-columns: 1fr 1fr; align-items: start; } }
.contact .chapeau { color: var(--bleu-50); }
.contact ul { margin: 1.75rem 0 0; padding-left: 1.2rem; color: var(--bleu-50); display: grid; gap: 0.5rem; }
.formulaire { background: var(--blanc); color: var(--ardoise-900); padding: clamp(1.25rem, 3vw, 2rem); border-radius: 8px; display: grid; gap: 1.1rem; }
.champ { display: grid; gap: 0.35rem; }
.champ label { font-weight: 600; font-size: 1rem; }
.champ .aide { font-size: 0.875rem; color: var(--texte-doux); }
.champ input, .champ textarea {
  font: inherit; color: inherit; background: var(--blanc);
  border: 2px solid var(--ardoise-200); border-radius: 6px; padding: 0.75rem 0.85rem; width: 100%;
}
.champ input:focus-visible, .champ textarea:focus-visible { outline: 3px solid var(--bleu-300); outline-offset: 0; border-color: var(--marque); }
.champ input[aria-invalid="true"] { border-color: #c8323c; }
.erreur { color: #a3212b; font-size: 0.9375rem; font-weight: 500; }
.formulaire .bouton { justify-self: start; }
.formulaire .bouton[disabled] { opacity: 0.6; cursor: progress; }
.etat { font-size: 1rem; padding: 0.85rem 1rem; border-radius: 6px; }
.etat:empty { display: none; }
.etat[data-type="ok"] { background: #dff5e7; color: #14532d; }
.etat[data-type="erreur"] { background: #fde4e6; color: #7a1620; }
.rgpd { font-size: 0.875rem; color: var(--texte-doux); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pied */
.pied { background: var(--ardoise-900); color: var(--ardoise-100); padding-block: 2.5rem; font-size: 0.9375rem; }
.pied-ligne { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; }
.pied p { max-width: 60ch; }
.pied a { color: var(--blanc); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .telephone { animation: none; }
  .bouton { transition: none; }
}
