/* ==========================================================================
   MANTSOS & Fils — feuille de style unique
   Charte relevee sur le logo : rouge #D02F27, noir, blanc.
   QUATRE rouges, ne pas simplifier : le rouge du logo tombe a 3,70 sur fond
   noir (insuffisant) et a 5,10 sur blanc.
   ========================================================================== */

:root {
  --rouge:        #D02F27; /* rouge du logo, decoratif uniquement */
  --rouge-bouton: #C92318; /* fond de bouton, texte blanc (5,62) */
  --rouge-texte:  #C21D14; /* texte rouge sur fond clair (5,64) */
  --rouge-clair:  #F4746A; /* rouge sur fond sombre (6,78) */
  --rouge-pale:   #FDF0EF;

  --noir:      #111113;
  --noir-2:    #0B0B0D;
  --gris:      #5C5C63;
  --gris-bord: #E3E3E6;
  --clair:     #F7F7F8;
  --blanc:     #FFFFFF;

  --rayon:    14px;
  --rayon-sm: 8px;
  --ombre:    0 1px 2px rgba(17,17,19,.06), 0 8px 24px rgba(17,17,19,.08);
  --ombre-forte: 0 18px 50px rgba(17,17,19,.18);
  --gouttiere: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1200px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0; background: var(--clair); color: var(--noir);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: "Archivo", "Archivo Narrow", "Segoe UI", system-ui, sans-serif;
  font-weight: 800; line-height: 1.06; letter-spacing: -.02em;
  margin: 0 0 .5em; text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1.1em; max-width: 68ch; }

a { color: var(--rouge-texte); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--noir); }
:focus-visible { outline: 3px solid var(--rouge-bouton); outline-offset: 3px; border-radius: 3px; }

.conteneur { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gouttiere); }

.lien-evitement { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--noir); color: #fff; padding: .8rem 1.2rem; }
.lien-evitement:focus { left: .5rem; top: .5rem; }

/* ------------------------------------------------------------- Titres */
.surtitre {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rouge-texte); margin-bottom: 1rem;
}
.surtitre::before { content: ""; width: 26px; height: 2px; background: var(--rouge); }
.surtitre--clair { color: var(--rouge-clair); }
.chapo { font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: var(--gris); max-width: 62ch; }
.section--sombre .chapo { color: rgba(255,255,255,.78); }

/* ------------------------------------------------------------- Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: var(--rayon-sm);
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  transition: var(--transition); cursor: pointer;
}
.bouton--plein { background: var(--rouge-bouton); color: #fff; box-shadow: 0 6px 18px rgba(201,35,24,.3); }
.bouton--plein:hover { background: #A81B12; color: #fff; transform: translateY(-2px); }
.bouton--fantome { background: transparent; color: var(--noir); border-color: var(--noir); }
.bouton--fantome:hover { background: var(--noir); color: #fff; }
.bouton--clair { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); }
.bouton--clair:hover { background: #fff; color: var(--noir); }

/* --------------------------------------------------------- Barre urgence */
.bandeau-urgence {
  background: var(--noir); color: #fff; font-size: .9rem;
  display: flex; justify-content: center; align-items: center; gap: .9rem;
  padding: .55rem var(--gouttiere); text-align: center; flex-wrap: wrap;
}
.bandeau-urgence strong { color: var(--rouge-clair); }
.bandeau-urgence a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.bandeau-urgence a:hover { color: var(--rouge-clair); }

/* ------------------------------------------------------------- En-tete */
.entete { position: sticky; top: 0; z-index: 60; background: rgba(247,247,248,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--gris-bord); }
.entete__barre { display: flex; align-items: center; gap: 1.4rem; min-height: 72px; }
.entete__logo { margin-right: auto; display: flex; align-items: center; text-decoration: none; }
.entete__logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a { color: var(--noir); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .35rem 0; border-bottom: 2px solid transparent; transition: var(--transition); }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--rouge); }
.entete__tel { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--noir); text-decoration: none; white-space: nowrap; }
.entete__tel:hover { color: var(--rouge-texte); }
.burger { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--noir); margin: 5px 0; transition: var(--transition); }

@media (max-width: 1180px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--clair); border-bottom: 1px solid var(--gris-bord);
    padding: .5rem var(--gouttiere) 1.5rem; box-shadow: var(--ombre);
    transform: translateY(-160%); transition: transform var(--transition);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav[data-ouvert="oui"] { transform: translateY(0); }
  .nav a { padding: .95rem 0; border-bottom: 1px solid var(--gris-bord); }
}
@media (max-width: 720px) { .entete__tel { display: none; } }

/* --------------------------------------------------------------- Hero */
.hero { position: relative; background: var(--noir-2); color: #fff; overflow: hidden; }
.hero__fond { position: absolute; inset: 0; }
.hero__fond img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: .5; }
.hero__voile { position: absolute; inset: 0; background: linear-gradient(103deg, rgba(11,11,13,.96) 0%, rgba(11,11,13,.86) 45%, rgba(11,11,13,.34) 100%); }
.hero__contenu { position: relative; padding-block: clamp(3.2rem, 8vw, 6rem) clamp(2.8rem, 6vw, 4.5rem); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--rouge-clair); }
.hero__chapo { color: rgba(255,255,255,.85); font-size: clamp(1.05rem, 1.8vw, 1.22rem); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }
.hero__note { margin-top: 1.1rem; font-size: .92rem; color: rgba(255,255,255,.7); }

/* Pastille avis Google */
.avis-pastille {
  display: flex; width: fit-content; max-width: 100%; align-items: center; gap: .7rem; text-decoration: none;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px; padding: .5rem 1.1rem .5rem .8rem; color: #fff; margin-bottom: 1.4rem;
  font-size: .92rem; transition: var(--transition);
}
.avis-pastille:hover { background: rgba(255,255,255,.16); color: #fff; }
.avis-pastille b { font-size: 1.05rem; }
.etoiles { color: #FFC043; letter-spacing: .08em; }

.reperes { position: relative; display: flex; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.14); margin-top: clamp(2.2rem, 4vw, 3.4rem); }
.repere { flex: 1 1 180px; padding: 1.5rem 1.4rem 1.5rem 0; }
.repere + .repere { border-left: 1px solid rgba(255,255,255,.14); padding-left: 1.4rem; }
.repere__valeur { font-family: "Archivo", sans-serif; font-weight: 800; font-size: clamp(1.6rem, 2.9vw, 2.2rem); line-height: 1.05; color: var(--rouge-clair); }
.repere__texte { font-size: .92rem; color: rgba(255,255,255,.76); margin: .35rem 0 0; }
@media (max-width: 640px) {
  .repere { flex-basis: 45%; padding-right: 1rem; }
  .repere:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
}

/* ----------------------------------------------------------- Sections */
.section { padding: clamp(3.2rem, 7vw, 6rem) 0; }
.section--sombre { background: var(--noir); color: #fff; }
.section--sombre h2, .section--sombre h3 { color: #fff; }
.section--sombre p { color: rgba(255,255,255,.78); }
.section--blanche { background: var(--blanc); }
.section__tete { max-width: 62ch; margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem); }

.grille { display: grid; gap: 1.2rem; }
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.grille--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grille--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.carte { background: var(--blanc); border: 1px solid var(--gris-bord); border-radius: var(--rayon); padding: 1.6rem 1.5rem; transition: var(--transition); }
.carte:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.carte h3 { margin-bottom: .4rem; }
.carte p { font-size: .96rem; color: var(--gris); margin: 0; }
.carte__numero { font-family: "Archivo", sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--rouge); line-height: 1; margin-bottom: .5rem; display: block; }
a.carte { text-decoration: none; color: inherit; display: block; }
a.carte h3::after { content: " \2192"; color: var(--rouge-texte); }
.section--sombre .carte { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.13); }
.section--sombre .carte p { color: rgba(255,255,255,.74); }
.section--sombre .carte__numero { color: var(--rouge-clair); }

/* Carte illustree (prestation avec photo) */
.carte-photo { background: var(--blanc); border: 1px solid var(--gris-bord); border-radius: var(--rayon); overflow: hidden; text-decoration: none; color: inherit; display: block; transition: var(--transition); }
.carte-photo:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); color: inherit; }
.carte-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.carte-photo__corps { padding: 1.3rem 1.4rem 1.5rem; }
.carte-photo h3 { margin-bottom: .35rem; }
.carte-photo h3::after { content: " \2192"; color: var(--rouge-texte); }
.carte-photo p { font-size: .95rem; color: var(--gris); margin: 0; }

.liste { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .65rem; }
.liste li { position: relative; padding-left: 1.8rem; }
.liste li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; background: var(--rouge); border-radius: 2px; transform: rotate(45deg); }

.duo { display: grid; gap: clamp(2rem, 4.5vw, 3.5rem); align-items: center; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.duo--haut { align-items: start; }
.duo__media img { border-radius: var(--rayon); box-shadow: var(--ombre-forte); width: 100%; }
.duo__legende { font-size: .87rem; color: var(--gris); margin: .8rem 0 0; }
.section--sombre .duo__legende { color: rgba(255,255,255,.58); }

/* ---------------------------------------------------------- Galerie */
.galerie { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.galerie figure { margin: 0; border-radius: var(--rayon-sm); overflow: hidden; background: var(--noir); position: relative; }
.galerie img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s ease; }
.galerie figure:hover img { transform: scale(1.04); }
.galerie figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem .9rem .8rem;
  background: linear-gradient(transparent, rgba(11,11,13,.9));
  color: #fff; font-size: .84rem; line-height: 1.35;
}
.galerie--large { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

/* ------------------------------------------------------------- Avis */
.avis { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.avis blockquote { margin: 0; background: var(--blanc); border: 1px solid var(--gris-bord); border-radius: var(--rayon); padding: 1.5rem 1.5rem 1.3rem; }
.avis p { font-size: .97rem; margin: 0 0 1rem; }
.avis footer { font-size: .88rem; color: var(--gris); }
.avis cite { font-style: normal; font-weight: 700; color: var(--noir); }
.section--sombre .avis blockquote { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.13); }
.section--sombre .avis cite { color: #fff; }
.section--sombre .avis footer { color: rgba(255,255,255,.6); }

/* ------------------------------------------------------------ Communes */
.communes { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1.5rem; list-style: none; }
.communes li { background: var(--blanc); border: 1px solid var(--gris-bord); border-radius: 100px; padding: .42rem 1rem; font-size: .92rem; }
.section--sombre .communes li { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.88); }

/* -------------------------------------------------------- Bandeau appel */
.appel { background: var(--rouge-bouton); color: #fff; }
.appel h2 { color: #fff; }
.appel p { color: rgba(255,255,255,.93); }
.appel .bouton--fantome { color: #fff; border-color: #fff; }
.appel .bouton--fantome:hover { background: #fff; color: var(--rouge-bouton); }
.appel__interieur { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.appel__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* --------------------------------------------------------------- FAQ */
.faq { display: grid; gap: .75rem; max-width: 820px; }
.faq details { background: var(--blanc); border: 1px solid var(--gris-bord); border-radius: var(--rayon-sm); padding: 1.1rem 1.3rem; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rouge-texte); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { margin-bottom: .7rem; }
.faq p { margin: 0 0 .6em; font-size: .98rem; color: var(--gris); }
.faq p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- Ariane */
.ariane { font-size: .86rem; color: var(--gris); padding-block: 1rem 0; }
.ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; }
.ariane li + li::before { content: "/"; margin-right: .45rem; color: #C4C4C9; }
.ariane a { color: var(--gris); text-decoration: none; }
.ariane a:hover { color: var(--rouge-texte); text-decoration: underline; }

/* --------------------------------------------------------- Formulaire */
.formulaire { background: var(--blanc); border: 1px solid var(--gris-bord); border-radius: var(--rayon); padding: clamp(1.5rem, 3vw, 2.4rem); }
.champ { margin-bottom: 1.15rem; }
.champ label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: .4rem; }
.champ input, .champ textarea, .champ select {
  width: 100%; padding: .8rem .95rem; font: inherit; font-size: 1rem; color: var(--noir);
  background: var(--clair); border: 1px solid var(--gris-bord); border-radius: var(--rayon-sm); transition: var(--transition);
}
.champ input:focus, .champ textarea:focus, .champ select:focus { border-color: var(--rouge); background: #fff; }
.champ textarea { min-height: 150px; resize: vertical; }
.champ__aide { font-size: .84rem; color: var(--gris); margin: .35rem 0 0; }
.champ--invisible { display: none; }
.formulaire__mention { font-size: .84rem; color: var(--gris); margin-top: 1rem; }
.erreur { color: #B00020; font-size: .88rem; margin: .35rem 0 0; }

.coordonnees { margin: 0 0 2rem; }
.coordonnees dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); margin: 0; }
.coordonnees dd { margin: .15rem 0 1.3rem; font-size: 1.08rem; font-weight: 600; }
.coordonnees dd a { color: var(--noir); text-decoration: none; }
.coordonnees dd a:hover { color: var(--rouge-texte); }

/* Texte long */
.texte-long { max-width: 74ch; }
.texte-long h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); margin-top: 2.5rem; }
.texte-long dt { font-weight: 700; margin-top: .8rem; }
.texte-long dd { margin: 0 0 .2rem; }
.a-completer { background: #FFF3CD; border-left: 3px solid #B08900; padding: .1rem .45rem; font-weight: 700; }

/* ---------------------------------------------------------- Pied de page */
.pied { background: var(--noir-2); color: rgba(255,255,255,.72); padding: clamp(3rem, 6vw, 4.5rem) 0 0; font-size: .95rem; }
.pied__grille { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pied img { height: 40px; width: auto; margin-bottom: 1.1rem; }
.pied h3 { color: #fff; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.pied a { color: rgba(255,255,255,.72); text-decoration: none; }
.pied a:hover { color: var(--rouge-clair); }
.pied p { color: rgba(255,255,255,.72); }
.pied__bas { margin-top: 3rem; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .87rem; }

/* ------------------------------------------------------- Barre mobile */
.barre-mobile { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 62px; }
  .barre-mobile { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; background: var(--noir); box-shadow: 0 -4px 20px rgba(0,0,0,.25); }
  .barre-mobile a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem .5rem; color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; }
  .barre-mobile a + a { background: var(--rouge-bouton); }
}

/* ------------------------------------------------------- Fournisseur */
/* ⚠ Le logo BWT est bleu marine : il DISPARAIT sur fond sombre.
   Ce bloc doit rester sur une section claire. */
.fournisseur {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.5rem, 4vw, 3rem);
  background: var(--blanc); border: 1px solid var(--gris-bord);
  border-radius: var(--rayon); padding: clamp(1.5rem, 3vw, 2.4rem);
}
.fournisseur__logo {
  flex: 0 0 auto; display: grid; place-items: center;
  min-width: 210px; padding: 1rem 1.5rem;
  border-right: 1px solid var(--gris-bord);
}
.fournisseur__logo img { height: 56px; width: auto; }
.fournisseur__texte { flex: 1 1 320px; }
.fournisseur__texte p:last-child { margin-bottom: 0; }
@media (max-width: 680px) {
  .fournisseur__logo { border-right: 0; border-bottom: 1px solid var(--gris-bord); min-width: 100%; }
}

/* --------------------------------------------------------- Bloc confiance */
/* Placé juste sous le hero. Règle : rien ici qui ne soit vérifiable en ligne,
   et chaque élément porte son lien de vérification. */
.confiance { background: var(--blanc); border-block: 1px solid var(--gris-bord); }
.confiance__grille {
  display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.confiance__item { padding: 1.7rem 1.6rem 1.6rem 0; }
.confiance__item + .confiance__item { border-left: 1px solid var(--gris-bord); padding-left: 1.6rem; }
.confiance__titre {
  display: flex; align-items: baseline; gap: .5rem;
  font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.08rem;
  letter-spacing: -.01em; margin: 0 0 .35rem;
}
.confiance__titre::before {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px;
  background: var(--rouge); border-radius: 2px; transform: rotate(45deg);
}
.confiance__item p { font-size: .92rem; color: var(--gris); margin: 0 0 .5rem; max-width: 34ch; }
.confiance__item a { font-size: .86rem; font-weight: 700; text-decoration: none; }
.confiance__item a:hover { text-decoration: underline; }
.confiance__item a::after { content: " \2192"; }
.confiance__pied {
  border-top: 1px solid var(--gris-bord); padding: 1.1rem 0;
  font-size: .9rem; color: var(--gris);
}
@media (max-width: 860px) {
  .confiance__item { padding: 1.3rem 0; border-left: 0 !important; padding-left: 0 !important; }
  .confiance__item + .confiance__item { border-top: 1px solid var(--gris-bord); }
}
