/* Démo vitrine « Fabre, plomberie et chauffage » (entreprise fictive) : site d'artisan, une page.
   Palette eau (bleu pétrole) et feu (orange), papier chaud, police Archivo (largeur variable). */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(fonts/archivo.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;
}

:root {
  --encre: #14232B;
  --encre-2: #1D3039;
  --papier: #F4F0E8;
  --papier-2: #EBE4D7;
  --blanc: #FFFFFF;
  --eau: #0E6E7B;
  --eau-fonce: #0A5560;
  --eau-pale: #DCEAEA;
  --feu: #E0572B;
  --feu-texte: #A63A16;
  --gris: #56636A;
  --bord: #D9D0C1;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  font-family: 'Archivo', Arial, sans-serif;
  font-stretch: 100%;
  font-size: 18px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--papier);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--feu); outline-offset: 3px; }

.conteneur { width: min(1240px, 100% - 64px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lien-evitement { position: absolute; left: 16px; top: -60px; padding: 10px 16px; background: var(--encre); color: var(--blanc); z-index: 20; }
.lien-evitement:focus { top: 12px; }

/* Bandeau « maquette » */
.demo-bar { background: var(--encre); color: #E8E2D6; font-size: 14px; text-align: center; padding: 8px 16px; }
.demo-bar a { color: var(--blanc); font-weight: 600; }

/* Titres : Archivo élargie, comme un lettrage de camionnette */
h1, h2, h3, .logo-mot, .appel-action, .chiffre { font-stretch: 118%; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.02; }
h3 { font-size: 24px; line-height: 1.1; }
.surtitre { margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--eau); }
.lien { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--feu); padding-bottom: 2px; }
.lien:hover { color: var(--feu-texte); }

/* ========== EN-TÊTE ========== */
.entete { border-bottom: 1px solid var(--bord); background: var(--papier); }
.entete-corps { display: flex; align-items: center; gap: 36px; min-height: 84px; }
.logo { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.logo-mot { font-size: 30px; line-height: 1; color: var(--encre); }
.logo-mot::first-letter { color: var(--feu); }
.logo-metier { padding-left: 12px; border-left: 2px solid var(--feu); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; line-height: 1.25; text-transform: uppercase; color: var(--eau); }
.nav { display: flex; gap: 28px; font-weight: 500; font-size: 16px; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--eau); }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 20px; border-radius: 6px; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
}
.bouton-plein { background: var(--encre); color: var(--blanc); }
.bouton-plein:hover { background: var(--eau-fonce); }
.menu-mobile { display: none; }

/* ========== HERO ========== */
.hero { padding: 56px 0 88px; }
.hero-grille { display: grid; grid-template-columns: 1.18fr 0.82fr; gap: 64px; align-items: center; }
.hero-grille > * { min-width: 0; }
.hero h1 { font-size: clamp(46px, 6vw, 84px); font-stretch: 112%; line-height: 0.95; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: var(--feu); }
.chapo { max-width: 560px; margin-top: 28px; font-size: 21px; line-height: 1.55; color: var(--encre-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 36px; }
/* Bouton d'appel sans numéro : la démo n'affiche aucun vrai numéro (voir le script en bas de index.html) */
.appel {
  display: inline-flex; align-items: center; gap: 16px; padding: 14px 28px 15px 22px; border: 0; border-radius: 8px;
  background: var(--eau); color: var(--blanc); font: inherit; text-align: left; cursor: pointer;
  box-shadow: 0 10px 24px rgba(14, 110, 123, 0.25);
}
.appel:hover { background: var(--eau-fonce); }
.appel svg { width: 30px; height: 30px; flex: none; }
.appel-texte { display: flex; flex-direction: column; }
.appel-label { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.9; }
.appel-action { font-size: 32px; line-height: 1.05; white-space: nowrap; }
.preuves { display: flex; flex-wrap: wrap; gap: 10px 0; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--bord); font-size: 15px; color: var(--gris); }
.preuves li { padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--bord); }
.preuves li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.preuves strong { color: var(--encre); }
.etoiles { color: var(--feu); letter-spacing: 1px; }

.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; }
.hero-photo::before { content: ''; position: absolute; inset: 22px -22px -22px 22px; z-index: -1; border-radius: 22px; background: var(--eau-pale); }
.badge-dispo {
  position: absolute; left: -28px; bottom: 34px; display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-radius: 999px; background: var(--blanc); box-shadow: 0 14px 30px rgba(20, 35, 43, 0.16);
  font-size: 15.5px; font-weight: 600;
}
.point { width: 10px; height: 10px; border-radius: 50%; background: #2F9E5B; box-shadow: 0 0 0 4px rgba(47, 158, 91, 0.18); }

/* ========== EN-TÊTES DE SECTION ========== */
.tete-section { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.tete-intro { color: var(--gris); max-width: 520px; }

/* ========== SERVICES ========== */
.services { padding: 96px 0; background: var(--blanc); }
.services-grille { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px; }
.service { grid-column: span 5; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--papier); }
.service--large { grid-column: span 7; }
.service img { width: 100%; height: 300px; object-fit: cover; }
.service-corps { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; padding: 26px 28px 28px; }
.service-num { grid-row: span 3; font-weight: 800; font-stretch: 118%; font-size: 15px; color: var(--feu-texte); padding-top: 4px; }
.service p { color: var(--gris); font-size: 16.5px; }
.service .service-prix { margin-top: 8px; font-weight: 700; color: var(--encre); font-size: 15.5px; }

/* ========== GESTES (bande sombre) ========== */
.gestes-bande { padding: 72px 0; background: var(--encre); color: var(--blanc); }
.gestes-grille { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.surtitre--clair { color: #8FD0D6; }
.gestes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: geste; }
.gestes li { counter-increment: geste; padding-top: 18px; border-top: 2px solid rgba(255, 255, 255, 0.18); color: #D9E1E3; font-size: 16.5px; }
.gestes li::before { content: counter(geste, decimal-leading-zero); display: block; margin-bottom: 8px; font-weight: 800; font-stretch: 118%; font-size: 30px; color: var(--feu); line-height: 1; }
.gestes strong { color: var(--blanc); }

/* ========== CHANTIERS ========== */
.chantiers { padding: 96px 0; }
.chantiers-grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.chantiers-grille img { width: 100%; height: 300px; object-fit: cover; border-radius: 14px; }
.chantiers figcaption { margin-top: 12px; font-size: 15.5px; color: var(--gris); }
.chantiers figcaption strong { display: block; color: var(--encre); font-size: 17px; }

/* ========== À PROPOS ========== */
.apropos { padding: 96px 0; background: var(--papier-2); }
.apropos-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.apropos img { width: 100%; aspect-ratio: 7 / 4; object-fit: cover; border-radius: 18px; }
.apropos-texte p { margin-top: 18px; color: var(--encre-2); }
.engagements { display: grid; gap: 14px; margin-top: 28px; }
.engagements li { padding-left: 22px; border-left: 3px solid var(--feu); color: var(--gris); font-size: 16.5px; }
.engagements strong { display: block; color: var(--encre); font-size: 18px; }

/* ========== TARIFS ========== */
.tarifs { padding: 96px 0; background: var(--blanc); }
.tarifs-grille { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.tarifs-grille > div p { margin-top: 16px; color: var(--gris); }
.tableau-tarifs { width: 100%; border-collapse: collapse; font-size: 17px; }
.tableau-tarifs th, .tableau-tarifs td { padding: 18px 0; border-bottom: 1px solid var(--bord); text-align: left; vertical-align: baseline; }
.tableau-tarifs th { font-weight: 500; padding-right: 24px; }
.tableau-tarifs td { font-weight: 800; font-stretch: 118%; font-size: 22px; text-align: right; white-space: nowrap; }
.tableau-tarifs tr:first-child th, .tableau-tarifs tr:first-child td { border-top: 2px solid var(--encre); }
.note { font-size: 15px; }

/* ========== ZONE ========== */
.zone { padding: 96px 0; }
.zone-grille { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.zone-texte > p { margin-top: 16px; color: var(--gris); }
.communes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.communes li { padding: 6px 13px; border: 1px solid var(--bord); border-radius: 999px; background: var(--blanc); font-size: 15px; font-weight: 500; }
.communes li:first-child { border-color: var(--feu); color: var(--feu-texte); font-weight: 700; }
.zone-carte { padding: 18px; border-radius: 18px; background: var(--blanc); border: 1px solid var(--bord); }
.zone-carte svg { width: 100%; height: auto; }
.zone-carte figcaption { margin-top: 6px; font-size: 12.5px; color: var(--gris); text-align: right; }

/* ========== AVIS ========== */
.avis { padding: 96px 0; background: var(--eau); color: var(--blanc); }
.avis .surtitre { color: #BFE2E4; }
.avis-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.avis blockquote { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; height: 100%; padding: 28px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); }
.avis blockquote p { font-size: 17.5px; line-height: 1.55; }
.avis footer { font-size: 15px; color: #CFE6E7; }
.avis footer strong { color: var(--blanc); }
.avis .etoiles { color: #FFB38F; }

/* ========== FAQ ========== */
.faq { padding: 96px 0; }
.faq-grille { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.faq details { border-bottom: 1px solid var(--bord); }
.faq details:first-of-type { border-top: 2px solid var(--encre); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 18.5px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-weight: 800; font-size: 24px; line-height: 1; color: var(--feu-texte); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 22px; color: var(--gris); max-width: 640px; }

/* ========== CONTACT ========== */
.contact { padding: 96px 0; background: var(--encre); color: var(--blanc); }
.contact-grille { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
.contact .surtitre { color: #8FD0D6; }
.contact-texte > p { margin-top: 16px; color: #CBD5D8; }
.coordonnees { display: grid; gap: 16px; margin-top: 34px; }
.coordonnees dt { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8FD0D6; }
.coordonnees dd { font-size: 19px; font-weight: 600; }
.coordonnees a { text-decoration-color: var(--feu); text-underline-offset: 4px; }
.lien-appel {
  padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--feu); text-underline-offset: 4px;
}
.formulaire { padding: 34px; border-radius: 18px; background: var(--blanc); color: var(--encre); }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.champ { margin-bottom: 18px; }
.champ--large { grid-column: 1 / -1; }
.champ label { display: block; margin-bottom: 7px; font-weight: 600; font-size: 15px; }
.champ input, .champ select, .champ textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid #C9C1B2; border-radius: 8px; background: var(--papier);
  font: inherit; font-size: 16px; color: var(--encre);
}
.champ textarea { min-height: 110px; resize: vertical; }
.champ input[type=file] { padding: 10px; background: var(--blanc); font-size: 15px; color: var(--gris); cursor: pointer; }
.champ input[type=file]::file-selector-button {
  margin-right: 14px; padding: 9px 16px; border: 1.5px solid var(--encre); border-radius: 6px;
  background: var(--papier); color: var(--encre); font: inherit; font-weight: 700; cursor: pointer;
}
.champ input[type=file]::file-selector-button:hover { background: var(--encre); color: var(--blanc); }
.champ small { display: block; margin-top: 6px; font-size: 14px; color: var(--gris); }
.formulaire .bouton { border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 15px 24px; }
.formulaire-note { margin-top: 12px; font-size: 14px; color: var(--gris); }

/* ========== PIED DE PAGE ========== */
.pied { padding: 34px 0 40px; background: #0D181E; color: #B8C3C7; font-size: 15px; }
.pied-corps { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; }
.pied strong { color: var(--blanc); }
.pied a { color: var(--blanc); }

/* Barre d'appel : téléphone seulement */
.barre-appel { display: none; }

/* Message des boutons d'appel de la démo */
.demo-annonce {
  position: fixed; left: 50%; bottom: 24px; z-index: 30; width: max-content; max-width: calc(100% - 32px);
  padding: 14px 20px; border-radius: 10px; background: var(--encre); color: var(--blanc);
  font-size: 15.5px; text-align: center; box-shadow: 0 12px 28px rgba(20, 35, 43, 0.3);
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.demo-annonce.visible { opacity: 1; transform: translate(-50%, 0); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hero-grille, .apropos-grille, .tarifs-grille, .zone-grille, .faq-grille, .contact-grille, .gestes-grille { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 560px; }
  .tete-section { grid-template-columns: 1fr; }
  .service, .service--large { grid-column: span 6; }
  .chantiers-grille { grid-template-columns: 1fr 1fr; }
  .chantiers-grille li:first-child { grid-column: 1 / -1; }
  .chantiers-grille li:first-child img { height: auto; aspect-ratio: 16 / 9; }
  .avis-grille { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 17px; padding-bottom: 76px; }
  .conteneur { width: min(1240px, 100% - 36px); }
  .entete-corps { min-height: 68px; gap: 14px; }
  .entete .bouton-plein { display: none; }
  .menu-mobile { display: block; position: relative; }
  .menu-mobile summary { padding: 10px 14px; border: 1.5px solid var(--encre); border-radius: 6px; font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; }
  .menu-mobile summary::-webkit-details-marker { display: none; }
  .menu-mobile nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; display: grid; min-width: 220px; padding: 10px; border-radius: 12px; background: var(--blanc); box-shadow: 0 18px 40px rgba(20, 35, 43, 0.18); }
  .menu-mobile nav a { padding: 10px 12px; text-decoration: none; font-weight: 600; }
  .logo-mot { font-size: 26px; }
  .hero { padding: 36px 0 64px; }
  .chapo { font-size: 18.5px; }
  .appel { width: 100%; gap: 12px; padding: 13px 18px 14px 16px; }
  .appel svg { width: 26px; height: 26px; }
  .appel-action { font-size: 25px; white-space: normal; }
  .preuves { display: grid; gap: 8px; }
  .preuves li { border-right: 0; margin-right: 0; padding-right: 0; }
  .badge-dispo { left: 12px; bottom: 12px; font-size: 14px; }
  .hero-photo::before { inset: 14px -10px -14px 14px; }
  .services, .chantiers, .apropos, .tarifs, .zone, .avis, .faq, .contact { padding: 64px 0; }
  .services-grille { grid-template-columns: 1fr; }
  .service img { height: 220px; }
  .service, .service--large { grid-column: auto; }
  .gestes { grid-template-columns: 1fr; }
  .chantiers-grille { grid-template-columns: 1fr; }
  .champs { grid-template-columns: 1fr; }
  .formulaire { padding: 22px; }
  .barre-appel {
    display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 15;
    align-items: center; justify-content: center; gap: 10px; padding: 15px; border: 0; border-radius: 10px;
    background: var(--eau); color: var(--blanc); font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 12px 28px rgba(20, 35, 43, 0.3);
  }
  .barre-appel svg { width: 20px; height: 20px; }
  .demo-annonce { bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo-annonce { transition: none; }
}
