/* Les Toits Parisiens, feuille de style unique.
   Palette derivee du logo : lettrage or #d6b061 sur fond noir.
   Aucune dependance externe, pile de polices systeme. */

:root {
  /* Bleu profond plutot que noir : le logo contient du blanc, il lui faut un
     fond fonce, mais le bleu allege l ensemble et fait ressortir l or. */
  --bleu: #2d1810;   /* encre brune */
  --bleu-clair: #7d1a2b;
  --bleu-pale: #f2e9df;
  --or: #b48b49;    /* or du logo */
  --or-vif: #d4a574;
  --or-sombre: #7a5c24;
  --corail: #a8442c;   /* 4,6 de contraste avec le blanc */
  --corail-sombre: #8d3520;
  --creme: #f7f2e9;
  --clair: #f2ece1;
  --bordure: #e5dccd;
  --texte: #3a2b22;
  --texte-doux: #5f5148;
  --rayon: 12px;
  --ombre: 0 2px 12px rgba(45, 24, 16, .07);
  --ombre-forte: 0 16px 44px rgba(45, 24, 16, .18);
  --largeur: 1180px;
  --fond-mobile: none;
  --fond-bureau: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* Pile systeme : rendu coherent partout, aucun appel reseau. */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--texte);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
/* Garde-fou : un svg sans regle de taille se deploie a 300 x 150 px. */
svg { width: 24px; height: 24px; flex: none; }
a { color: var(--or-sombre); }

h1, h2, h3, h4 { color: var(--bleu); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(1.85rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 2.9vw, 2.05rem); }
h3 { font-size: 1.14rem; }
p { margin: 0 0 1.1em; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }
.section { padding: 76px 0; }
.section--clair { background: var(--creme); }
.section--creme { background: var(--creme); }
.section--nuit { background: var(--bleu); color: #d5dcea; }
.section--nuit h2, .section--nuit h3 { color: #fff; }

.surtitre {
  display: block; color: var(--or-sombre); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: .78rem; margin-bottom: .55rem;
}
.section--nuit .surtitre { color: var(--or); }
.entete-section { max-width: 780px; margin: 0 auto 46px; text-align: center; }
.entete-section p { color: var(--texte-doux); font-size: 1.05rem; }
.section--nuit .entete-section p { color: #b6bcc4; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 15px 28px; border-radius: var(--rayon); font-weight: 700;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-size: 1rem; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--ombre-forte); }
.btn--or { background: var(--corail); color: #fff; }
.btn--or:hover { background: var(--corail-sombre); color: #fff; }
.btn--tel { background: var(--bleu-clair); color: #fff; border-color: rgba(255,255,255,.22); }
.btn--tel:hover { background: var(--bleu); color: #fff; }
.btn--ligne { border-color: #fff; color: #fff; background: transparent; }
.btn--ligne:hover { background: #fff; color: var(--bleu); }
.btn--sombre { background: var(--bleu); color: #fff; }
.btn--sombre:hover { background: var(--bleu-clair); color: #fff; }
.btn svg { width: 19px; height: 19px; flex: none; }

/* ---------- bandeau urgence ---------- */
.bandeau-urgence {
  background: var(--corail); color: #fff; text-align: center;
  padding: 9px 16px; font-size: .92rem; font-weight: 600;
}
.bandeau-urgence a { color: #fff; text-decoration: underline; font-weight: 800; }

/* ---------- en-tete sombre, pour que le logo trouve son fond ---------- */
.entete { position: sticky; top: 0; z-index: 60; background: var(--bleu); border-bottom: 1px solid rgba(214, 176, 97, .3); }
.entete .conteneur { display: flex; align-items: center; gap: 18px; min-height: 96px; }
.logo { display: flex; align-items: center; }
.logo img { height: 64px; width: auto; }
/* Le logo est carre : ne jamais lui imposer une largeur fixe. */
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { color: #e7e4dd; text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--or); }
.nav-tel {
  display: inline-flex; align-items: center; gap: .5rem; color: #fff;
  background: var(--corail); padding: 11px 18px; border-radius: var(--rayon);
  font-weight: 800; font-size: 1.02rem; text-decoration: none; white-space: nowrap;
}
.nav-tel:hover { background: var(--corail-sombre); color: #fff; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--or); }
.burger svg { width: 28px; height: 28px; }

/* ---------- bandeau principal ---------- */
/* La photo est le fond de la section, le voile est en ::before AU-DESSUS.
   Placer la photo en ::before avec un z-index negatif la ferait passer
   derriere le fond du parent, donc invisible. */
.heros {
  position: relative;
  padding: 86px 0 78px;
  color: #fff;
  background-image: var(--fond-mobile);
  background-size: cover;
  background-position: center;
  background-color: var(--bleu);
  isolation: isolate;
}
.heros::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg,
    rgba(45, 24, 16, .90) 0%,
    rgba(45, 24, 16, .70) 42%,
    rgba(45, 24, 16, .30) 72%,
    rgba(45, 24, 16, .16) 100%);
}
.heros > .conteneur { position: relative; z-index: 1; }
.heros--court { padding: 58px 0 54px; }
.heros--court.heros--accueil { padding: 48px 0 92px; }
.heros--court.heros--accueil h1 { max-width: 24ch; }
.heros--court .ariane { color: #c3bfb6; padding: 0 0 14px; }
.heros--court .ariane a { color: #c3bfb6; }
.heros--court .ariane a:hover { color: var(--or); }
.heros--court h1 { max-width: 22ch; }
.heros--court .heros-sous { max-width: 62ch; }
.heros-grille { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.heros h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.heros-sous { font-size: 1.09rem; color: #e2e0da; max-width: 48ch; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.heros-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.heros-gages { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 32px; font-size: .93rem; color: #ddd9d1; }
.heros-gages span { display: inline-flex; align-items: center; gap: .45rem; }
.heros-gages svg { width: 17px; height: 17px; color: var(--or); flex: none; }

/* ---------- formulaire ---------- */
.carte-formulaire { background: #fff; border-radius: 16px; padding: 28px; box-shadow: var(--ombre-forte); color: var(--texte); border-top: 4px solid var(--or); }
.carte-formulaire h2 { font-size: 1.26rem; margin-bottom: .3em; }
.carte-formulaire .accroche { color: var(--texte-doux); font-size: .93rem; margin-bottom: 1.1em; }
.champ { margin-bottom: 13px; }
.champ label { display: block; font-weight: 600; font-size: .87rem; margin-bottom: 5px; color: var(--bleu); }
.champ input, .champ select, .champ textarea {
  width: 100%; padding: 12px 13px; border: 1px solid #cfcabf; border-radius: 9px;
  font: inherit; font-size: .97rem; background: #fff; color: var(--texte);
}
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 3px solid rgba(214, 176, 97, .45); border-color: var(--or); }
.champ input[aria-invalid="true"], .champ textarea[aria-invalid="true"] { border-color: var(--corail); }
.champ textarea { min-height: 92px; resize: vertical; }
.champ-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consentement { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--texte-doux); }
.consentement input { width: auto; margin-top: 3px; }
.retour-formulaire { margin-top: 12px; font-size: .93rem; font-weight: 600; }
.retour-formulaire.ok { color: #1c7a4a; }
.retour-formulaire.ko { color: var(--corail); }

/* ---------- barre de confiance ---------- */
.barre-confiance { background: var(--bleu-clair); color: #ddd9d1; padding: 22px 0; }
.barre-confiance .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.barre-confiance div { display: flex; align-items: center; gap: .6rem; font-size: .92rem; font-weight: 600; }
.barre-confiance svg { width: 21px; height: 21px; color: var(--or); flex: none; }

/* ---------- grilles ---------- */
.grille { display: grid; gap: 24px; }
.grille-2 { grid-template-columns: repeat(2, 1fr); }
.grille-3 { grid-template-columns: repeat(3, 1fr); }
.grille-4 { grid-template-columns: repeat(4, 1fr); }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.deux-colonnes img { border-radius: var(--rayon); box-shadow: var(--ombre); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.carte {
  background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon);
  padding: 26px; text-decoration: none; color: inherit; display: block;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.carte:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); border-color: var(--or); }
.carte h3 { margin-bottom: .35em; }
.carte p { color: var(--texte-doux); font-size: .95rem; margin: 0; }
.carte-icone {
  width: 54px; height: 54px; border-radius: 13px; background: var(--bleu-pale);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.carte-icone svg { width: 25px; height: 25px; color: var(--bleu); }

/* ---------- etapes ---------- */
.etape { position: relative; padding-left: 62px; }
.etape-num {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--or); color: var(--bleu); display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 1.05rem;
}
.section--nuit .etape p { color: #b6bcc4; }

/* ---------- galerie ---------- */
.galerie { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.galerie figure { margin: 0; border-radius: var(--rayon); overflow: hidden; position: relative; background: var(--bleu-clair); }
.galerie img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .4s ease; }
.galerie figure:hover img { transform: scale(1.05); }

/* ---------- avis ---------- */
.avis { background: #fff; border: 1px solid var(--bordure); border-left: 4px solid var(--or); border-radius: var(--rayon); padding: 24px; }
.avis-etoiles { color: var(--or); margin-bottom: 10px; display: flex; gap: 3px; }
.avis-etoiles svg { width: 16px; height: 16px; fill: var(--or); }
.avis blockquote { margin: 0 0 14px; font-style: italic; }
.avis cite { font-style: normal; font-weight: 700; color: var(--bleu); font-size: .92rem; }
.avis .lieu { color: var(--texte-doux); font-size: .85rem; }

/* ---------- questions ---------- */
.question { border-bottom: 1px solid var(--bordure); }
.question summary {
  cursor: pointer; padding: 19px 0; font-weight: 700; color: var(--bleu);
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.question summary::-webkit-details-marker { display: none; }
.question summary::after { content: "+"; color: var(--or-sombre); font-size: 1.6rem; line-height: 1; }
.question[open] summary::after { content: "\2212"; }
.question p { color: var(--texte-doux); padding-bottom: 8px; margin-bottom: 0; }
.section--clair .question { border-color: #ddd8ce; }

/* ---------- liste de liens ---------- */
.liste-liens { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.liste-liens a {
  display: inline-block; padding: 9px 16px; border: 1px solid var(--bordure);
  border-radius: 999px; text-decoration: none; color: var(--bleu); font-size: .92rem;
  font-weight: 600; background: #fff; transition: all .15s ease;
}
.liste-liens a:hover { border-color: var(--bleu); background: var(--bleu); color: #fff; }

/* ---------- appel final ---------- */
.appel-final { background: var(--bleu); color: #fff; text-align: center; padding: 72px 0; border-top: 3px solid var(--or); }
.appel-final h2 { color: #fff; }
.appel-final p { color: #c9c5bd; max-width: 62ch; margin-inline: auto; }
.appel-final .heros-actions { justify-content: center; }

/* ---------- pied ---------- */
.pied { background: var(--bleu); color: #a3a8b0; padding: 58px 0 26px; font-size: .93rem; }
.pied h2 { color: var(--or); font-size: .95rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .1em; }
.pied a { color: #a3a8b0; text-decoration: none; }
.pied a:hover { color: var(--or); }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 8px; }
.pied-bas { border-top: 1px solid rgba(255, 255, 255, .09); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; }
.pied img { height: 76px; width: auto; margin-bottom: 16px; }

/* ---------- bloc de devis en pied de page ---------- */
.section--devis { background: var(--bleu-pale); color: var(--texte); scroll-margin-top: 92px; }
.section--devis h2 { color: var(--bleu); }
.section--devis .surtitre { color: var(--or-sombre); }
.atouts { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.atouts li { display: flex; align-items: flex-start; gap: 12px; font-size: .96rem; }
.atouts svg { width: 20px; height: 20px; color: var(--corail); margin-top: 3px; }
.devis-tel { font-size: 1rem; margin-top: 24px; }
.devis-tel a { color: var(--corail); font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.devis-tel a:hover { text-decoration: underline; }
.heros--plein .heros-sous { max-width: 60ch; }

/* Bandeau d accueil a la hauteur de l ecran. On retranche le bandeau
   d urgence et l en-tete collant, et on utilise svh pour que la barre
   d adresse mobile ne tronque pas le contenu. */
.heros--accueil {
  min-height: calc(100vh - 136px);
  min-height: calc(100svh - 136px);
  display: flex; align-items: center; position: relative;
  padding: 56px 0 96px;
}
.heros-surtitre { color: var(--or-vif); margin-bottom: 14px; }
.heros--accueil h1 { max-width: 20ch; font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
.heros--accueil .heros-sous { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 56ch; }
.heros-raccourcis { margin-top: 42px; }
.heros-raccourcis-titre {
  display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em;
  color: #b9c4d8; margin-bottom: 14px; font-weight: 700;
}
.raccourcis { display: flex; flex-wrap: wrap; gap: 10px; }
.raccourci {
  display: inline-flex; align-items: center; gap: .5rem; padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
  background: rgba(255, 255, 255, .07); color: #eef2f8; text-decoration: none;
  font-size: .9rem; font-weight: 600; backdrop-filter: blur(4px);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.raccourci svg { width: 17px; height: 17px; color: var(--or); }
.raccourci:hover { background: var(--bleu-clair); border-color: var(--or); color: #fff; }
.raccourci:hover svg { color: var(--or-vif); }
.heros-defiler {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 28px; height: 46px; border: 2px solid rgba(255, 255, 255, .45);
  border-radius: 999px; z-index: 2; display: flex; justify-content: center;
}
.heros-defiler span {
  display: block; width: 4px; height: 9px; border-radius: 2px;
  background: var(--or); margin-top: 8px; animation: defiler 1.7s ease-in-out infinite;
}
@keyframes defiler { 0%, 100% { transform: translateY(0); opacity: 1 } 50% { transform: translateY(13px); opacity: .3 } }
@media (max-width: 860px) {
  .heros--accueil { min-height: calc(100svh - 108px); padding: 40px 0 78px; }
  .heros-raccourcis { margin-top: 30px; }
  .heros-defiler { display: none; }
}
.heros--plein .heros-gages { gap: 18px 30px; }

/* ---------- texte et image en alternance ---------- */
.alterne { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.alterne--inverse > div:first-child { order: 2; }
.alterne img { border-radius: var(--rayon); box-shadow: var(--ombre); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.alterne h2 { margin-top: 0; }
.alterne h2::before { content: ""; display: block; width: 46px; height: 3px; background: var(--or); border-radius: 2px; margin-bottom: 16px; }
.alterne p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .alterne { grid-template-columns: 1fr; gap: 28px; }
  .alterne--inverse > div:first-child { order: 0; }
}

/* ---------- champs propres a l estimation ---------- */
.champ-double { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.champ .aide { font-size: .8rem; color: var(--texte-doux); margin: 6px 0 0; line-height: 1.5; }
.champ input[type="file"] { padding: 9px; background: var(--clair); }

/* ---------- fiche tapis du catalogue ---------- */
.tapis { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); overflow: hidden; }
.tapis img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.tapis-corps { padding: 18px 20px 22px; }
.tapis h3 { margin-bottom: .3em; font-size: 1.06rem; }
.tapis dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 12px 0 0; font-size: .88rem; }
.tapis dt { color: var(--texte-doux); }
.tapis dd { margin: 0; font-weight: 600; color: var(--texte); }

/* ---------- coordonnees ---------- */
.coordonnees { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.coordonnee { display: flex; align-items: flex-start; gap: 15px; }
.coordonnee-icone {
  width: 46px; height: 46px; border-radius: 12px; background: var(--bleu-pale);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.coordonnee-icone svg { width: 21px; height: 21px; color: var(--bleu); }
.coordonnee-texte { display: flex; flex-direction: column; line-height: 1.45; }
.coordonnee-texte strong { color: var(--bleu); font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; }
.coordonnee-texte a { color: var(--or-sombre); text-decoration: none; font-weight: 700; font-size: 1.12rem; }
.coordonnee-texte a:hover { text-decoration: underline; }

/* ---------- divers ---------- */
.ariane { font-size: .85rem; color: var(--texte-doux); padding: 16px 0; }
.ariane a { color: var(--texte-doux); text-decoration: none; }
.ariane a:hover { color: var(--or-sombre); }

/* Un bloc de texte pleine largeur donne des lignes de 1180 px, illisibles.
   On borne la mesure des que l article n est pas deja dans une colonne. */
.section > .conteneur > .article,
.section > .conteneur > .entete-section + .article { max-width: 72ch; margin-inline: auto; }
.article h2 {
  margin-top: 2em; padding-top: .1em; position: relative;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}
.article h2::before {
  content: ""; display: block; width: 46px; height: 3px; background: var(--or);
  border-radius: 2px; margin-bottom: 16px;
}
.article h2:first-child { margin-top: 0; }
.article > p:first-child {
  font-size: 1.16rem; line-height: 1.62; color: var(--bleu); font-weight: 500;
}
.article p { max-width: 72ch; }
.article ul { padding-left: 20px; }
.article li { margin-bottom: .5em; }
.article a { font-weight: 600; }
.encadre { background: var(--bleu-pale); border-left: 4px solid var(--or); border-radius: 0 var(--rayon) var(--rayon) 0; padding: 20px 24px; margin: 28px 0; }
.encadre p:last-child { margin-bottom: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .heros-grille { grid-template-columns: 1fr; gap: 34px; }
  .grille-4 { grid-template-columns: repeat(2, 1fr); }
  .galerie { grid-template-columns: repeat(3, 1fr); }
  .deux-colonnes { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .nav.ouvert {
    display: flex; position: absolute; top: 96px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--bleu); padding: 8px 20px 20px;
    border-bottom: 1px solid rgba(214, 176, 97, .3);
  }
  .nav.ouvert a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav.ouvert .nav-tel { justify-content: center; margin-top: 14px; border-bottom: 0; }
  .burger { display: block; margin-left: auto; }
  .section { padding: 56px 0; }
  .grille-3 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grille-2, .grille-4 { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .heros { padding: 52px 0 46px; }
  .barre-confiance .conteneur { flex-direction: column; gap: 12px; }
  .btn { width: 100%; }
  .carte-formulaire { padding: 22px; }
  .logo img { height: 56px; }
  .entete .conteneur { min-height: 80px; }
  .nav.ouvert { top: 80px; }
}
@media (min-width: 861px) {
  .logo img { height: 80px; }
  .entete .conteneur { min-height: 112px; }
}
@media (min-width: 1001px) {
  .heros { background-image: var(--fond-bureau); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
