/* ==========================================================================
   Matériel Médical des Caps : feuille de style principale
   ========================================================================== */

@import url('fonts.css');

/* --------------------------------------------------------------------------
   1. Variables
   -------------------------------------------------------------------------- */
:root {
  --vert-fonce: #0F6E5D;
  --vert: #198169;          /* assombri de 15% : 4,6:1 en texte comme en fond (WCAG AA) */
  --vert-clair: #E4F1EC;
  --vert-pale: #EFF6F3;
  --anis: #C3D62E;
  --encre: #16302A;
  --texte: #3E5852;
  --texte-doux: #5C7972;
  --texte-pale: #627771;
  --fond: #F7FAF9;
  --bordure: #E3ECE9;
  --bordure-forte: #C7D8D3;
  --bordure-champ: #D7E5E1;
  --sur-vert: #CFE6DF;
  --sur-vert-doux: #C4E3DE;
  --sur-vert-pale: #CBE1DD;

  --largeur-max: 1360px;
  --gouttiere: 48px;
  --rayon: 10px;
  --rayon-carte: 16px;
  --rayon-bloc: 20px;

  /* Échelle typographique : 12 tailles, et pas une de plus.
     Toute nouvelle taille doit se rattacher à l'un de ces échelons,
     sinon la page se met à sonner faux sans qu'on sache pourquoi. */
  --t-xs: 12px;    /* badges, mentions sous les formulaires */
  --t-sm: 13px;    /* surtitres, descriptions de carte */
  --t-md: 14px;    /* texte secondaire, liens du pied de page */
  --t-base: 15px;  /* texte courant, boutons, navigation */
  --t-lg: 16px;    /* intros, paragraphes de présentation, champs */
  --t-xl: 18px;    /* accroche du héros, titres de carte coordonnées */
  --t-2xl: 22px;   /* titres de bloc */
  --t-3xl: 26px;   /* titres de section secondaires */
  --t-4xl: 30px;   /* titres de section */
  --t-5xl: 36px;   /* grands titres */
  --t-6xl: 42px;   /* titres de page */
  --t-7xl: 50px;   /* titre du héros */
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  /* Empêche l'agrandissement automatique du texte en paysage sur iOS. */
  -webkit-text-size-adjust: 100%;
  /* Les longs mots (email, URL) coupent au lieu d'élargir la page. */
  overflow-wrap: break-word;
}

a { color: var(--vert); text-decoration: none; }
a:hover { color: var(--vert-fonce); }

img { max-width: 100%; }

input,
textarea,
select,
button { font-family: inherit; }

::placeholder { color: #9AAEA9; }

h1, h2, h3 { margin: 0; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.conteneur {
  max-width: var(--largeur-max);
  margin: 0 auto;
}

.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Barre de contact + en-tête
   -------------------------------------------------------------------------- */
.barre-contact {
  background: var(--vert-fonce);
  color: var(--sur-vert);
  padding: 8px var(--gouttiere);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: var(--t-sm);
  font-weight: 600;
}

.barre-contact a {
  color: #fff;
  font-weight: 700;
}

.barre-contact a:hover { color: var(--anis); }

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 249, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bordure);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 6px 32px;
}

.entete__logo {
  height: 100px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 10px;
}

.nav__lien {
  font-size: var(--t-base);
  font-weight: 600;
  color: var(--encre);
  line-height: 1;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav__lien:hover { color: var(--vert); }

.nav__lien--actif {
  color: var(--vert);
  border-bottom-color: var(--vert);
}

/* Bouton hamburger : visible en mobile uniquement */
.nav-bascule {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  color: var(--encre);
}

.nav-bascule span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-bascule span + span { margin-top: 5px; }

/* --------------------------------------------------------------------------
   4. Boutons
   -------------------------------------------------------------------------- */
.bouton {
  display: inline-block;
  font-weight: 700;
  font-size: var(--t-base);
  padding: 15px 30px;
  border-radius: var(--rayon);
  border: 0;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bouton--primaire {
  background: var(--vert);
  color: #fff;
}

.bouton--primaire:hover {
  background: var(--vert-fonce);
  color: #fff;
}

.bouton--secondaire {
  background: transparent;
  border: 1.5px solid var(--bordure-forte);
  color: var(--encre);
}

.bouton--secondaire:hover {
  border-color: var(--vert);
  color: var(--vert);
}

.bouton--anis {
  background: var(--anis);
  color: var(--encre);
}

.bouton--anis:hover {
  background: #AEBF2A;
  color: var(--encre);
}

.bouton--encre {
  background: var(--encre);
  color: #fff;
}

.bouton--encre:hover {
  background: var(--vert-fonce);
  color: #fff;
}

.bouton--pilule {
  font-size: var(--t-md);
  padding: 11px 24px;
  border-radius: 999px;
}

.bouton--compact {
  font-size: var(--t-md);
  padding: 12px 24px;
}

.bouton--catalogue {
  font-size: var(--t-md);
  padding: 13px 24px;
}

.bouton--pleine-largeur { width: 100%; }

/* --------------------------------------------------------------------------
   5. Sections et titres
   -------------------------------------------------------------------------- */
.section {
  padding: 90px var(--gouttiere);
  max-width: var(--largeur-max);
  margin: 0 auto;
}

.section--bande {
  max-width: none;
  background: #fff;
  border-top: 1px solid var(--bordure);
  border-bottom: 1px solid var(--bordure);
}

.section--bande > .conteneur { max-width: var(--largeur-max); }

.surtitre {
  color: var(--vert);
  font-weight: 700;
  font-size: var(--t-sm);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.titre-section {
  font-weight: 800;
  font-size: var(--t-4xl);
  margin: 0;
}

.titre-page {
  font-weight: 800;
  font-size: var(--t-6xl);
  margin: 0 0 16px;
}

.intro {
  font-size: var(--t-lg);
  line-height: 1.6;
  color: var(--texte);
  max-width: 640px;
  margin: 0 0 28px;
}

.entete-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.entete-section--centre {
  display: block;
  text-align: center;
  margin-bottom: 44px;
}

.lien-fleche {
  font-weight: 700;
  font-size: var(--t-base);
  color: var(--vert);
}

/* --------------------------------------------------------------------------
   6. Accueil : héros et gages de confiance
   -------------------------------------------------------------------------- */
.heros {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 90px var(--gouttiere) 70px;
  max-width: var(--largeur-max);
  margin: 0 auto;
}

.heros__texte { flex: 1; }

.heros__visuel {
  flex: 1;
  aspect-ratio: 4 / 3;
  border-radius: var(--rayon-bloc);
  overflow: hidden;
}

.heros__visuel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.etiquette {
  display: inline-block;
  background: var(--vert-clair);
  color: var(--vert-fonce);
  font-weight: 700;
  font-size: var(--t-sm);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  letter-spacing: 0.3px;
}

.heros__titre {
  font-weight: 800;
  font-size: var(--t-7xl);
  line-height: 1.1;
  margin: 0 0 22px;
  letter-spacing: -0.5px;
}

.heros__titre span { color: var(--vert); }

.heros__accroche {
  font-size: var(--t-xl);
  line-height: 1.65;
  color: var(--texte);
  max-width: 500px;
  margin: 0 0 34px;
}

.groupe-boutons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Les deux boutons du héros gardent exactement la même largeur et la même
   ligne. En flex, la bordure du bouton secondaire s'ajoutait à sa base et
   le décalait de 2px ; en grille, les deux colonnes sont strictement
   égales quelles que soient les bordures. */
.heros .groupe-boutons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 536px;
}

.heros .groupe-boutons .bouton {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 12px;
  padding-right: 12px;
}

.bande-confiance { padding: 36px var(--gouttiere); }

/* Une grille, pas un flex « space-around » : les quatre gages s'alignent
   sur les mêmes colonnes au lieu de flotter chacun à sa place. */
.bande-confiance .conteneur {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 28px;
}

.gage {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.gage__icone {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--vert-clair);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 7px;
}

.gage__icone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gage__titre { font-weight: 700; font-size: var(--t-base); }
.gage__desc { font-size: var(--t-sm); color: var(--texte-doux); }

/* --------------------------------------------------------------------------
   7. Grilles et cartes produits
   -------------------------------------------------------------------------- */
/* 290px : donne 4 colonnes sur grand écran, soit deux rangées pleines
   pour les huit rayons : aucune carte orpheline en bout de ligne. */
.grille-cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.grille-produits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.carte {
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-carte);
  overflow: hidden;
  background: #fff;
  display: block;
  color: inherit;
  transition: box-shadow 0.18s ease;
}

a.carte:hover {
  color: inherit;
  box-shadow: 0 8px 28px rgba(15, 110, 93, 0.10);
}

.carte__visuel {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--vert-pale), var(--vert-pale) 10px, var(--fond) 10px, var(--fond) 20px);
}

.carte__visuel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Emplacement en attente de photo */
.carte__attente {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--texte-pale);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-xs);
  text-align: center;
  padding: 10px;
}

.carte__attente img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  opacity: 0.85;
}

.carte__corps { padding: 20px; }
.carte__corps--large { padding: 22px; }

.carte__titre {
  font-weight: 700;
  font-size: var(--t-lg);
  margin-bottom: 6px;
}

.carte__titre--large {
  font-size: var(--t-lg);
  margin-bottom: 8px;
}

.carte__desc {
  font-size: var(--t-sm);
  color: var(--texte-doux);
  line-height: 1.5;
}

.carte__desc--large {
  font-size: var(--t-md);
  line-height: 1.55;
  margin-bottom: 16px;
}

.badges {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.badge {
  background: var(--vert-clair);
  color: var(--vert-fonce);
  font-weight: 700;
  font-size: var(--t-xs);
  padding: 4px 10px;
  border-radius: 999px;
}

.carte__action {
  font-weight: 700;
  font-size: var(--t-md);
  color: var(--vert);
}

/* --------------------------------------------------------------------------
   8. Services et valeurs
   -------------------------------------------------------------------------- */
.grille-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.grille-valeurs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.service {
  text-align: center;
  padding: 0 8px;
}

.service__puce {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--vert-clair);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service__puce::after {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--anis);
}

.service__titre {
  font-weight: 700;
  font-size: var(--t-base);
  margin-bottom: 8px;
}

.service__desc {
  font-size: var(--t-sm);
  color: var(--texte-doux);
  line-height: 1.6;
}

.valeur {
  text-align: center;
  padding: 0 12px;
}

.valeur__puce {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--vert-clair);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.valeur__puce::after {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--anis);
}

.valeur__titre {
  font-weight: 700;
  font-size: var(--t-lg);
  margin-bottom: 8px;
}

.valeur__desc {
  font-size: var(--t-md);
  color: var(--texte-doux);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. Blocs publics (particulier / professionnel / pharmacie)
   -------------------------------------------------------------------------- */
.grille-publics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.bloc-public {
  border-radius: var(--rayon-bloc);
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.bloc-public__titre {
  font-weight: 800;
  font-size: var(--t-2xl);
  margin-bottom: 14px;
}

.bloc-public__texte {
  font-size: var(--t-base);
  line-height: 1.65;
  margin: 0 0 24px;
  flex: 1;
}

.bloc-public .bouton { align-self: flex-start; }

.bloc-public--vert {
  background: var(--vert-fonce);
  color: #fff;
}

.bloc-public--vert .bloc-public__texte { color: var(--sur-vert); }

.bloc-public--mint {
  background: var(--vert-clair);
  color: var(--encre);
}

.bloc-public--mint .bloc-public__texte { color: var(--texte); }

.bloc-public--anis {
  background: var(--anis);
  color: var(--encre);
}

.bloc-public--anis .bloc-public__texte { color: #3B4520; }

/* --------------------------------------------------------------------------
   10. Formulaires
   -------------------------------------------------------------------------- */
.formulaire {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.formulaire__duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.champ {
  padding: 14px 16px;
  border: 1.5px solid var(--bordure-champ);
  border-radius: var(--rayon);
  font-size: var(--t-md);
  outline: none;
  background: #fff;
  color: var(--encre);
  width: 100%;
}

.champ:focus { border-color: var(--vert); }

textarea.champ {
  resize: vertical;
  font-family: inherit;
}

.champ--sur-vert { border: none; }

.champ--sur-vert:focus { box-shadow: 0 0 0 2px var(--anis); }

/* Message de confirmation / d'erreur après envoi */
.retour {
  border-radius: 14px;
  padding: 28px;
  font-weight: 600;
  background: var(--vert-clair);
  color: var(--vert-fonce);
}

.retour--sur-vert {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 24px;
}

.retour--erreur {
  background: #FCE9E7;
  color: #A2261B;
}

.formulaire__mention {
  font-size: var(--t-xs);
  line-height: 1.5;
  color: var(--texte-doux);
  margin: 0;
}

.formulaire__mention--sur-vert { color: var(--sur-vert-doux); }

/* Piège à robots : invisible pour les humains */
.pot-de-miel {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.bouton[aria-busy='true'] {
  opacity: 0.7;
  cursor: progress;
}

/* --------------------------------------------------------------------------
   11. Page contact
   -------------------------------------------------------------------------- */
.grille-contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
}

.carte-coordonnees {
  background: var(--vert-fonce);
  border-radius: var(--rayon-bloc);
  padding: 40px;
  color: #fff;
  height: fit-content;
}

.carte-coordonnees__titre {
  font-weight: 800;
  font-size: var(--t-xl);
  margin-bottom: 24px;
}

/* Toutes les entrées partagent le même bord gauche. Deux d'entre elles
   portaient une icône et se retrouvaient décalées de 46px par rapport aux
   trois autres : le bloc paraissait bancal. Un filet fin sépare les
   entrées, ce que l'icône faisait auparavant de façon irrégulière. */
.carte-coordonnees__liste {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.coordonnee {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.coordonnee:first-child { padding-top: 0; border-top: 0; }
.coordonnee:last-child { padding-bottom: 0; }

.coordonnee__label {
  font-size: var(--t-xs);
  color: var(--sur-vert-doux);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.coordonnee__valeur {
  margin: 0;
  font-size: var(--t-base);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Jour et horaires sur deux lignes : les plages se lisent d'un coup d'œil
   au lieu de former un pavé « Lun–Ven : 8h30-12h00 / 14h00-18h30 ». */
.horaire {
  display: block;
  margin-bottom: 8px;
}

.horaire:last-child { margin-bottom: 0; }

.horaire__jour {
  display: block;
  font-size: var(--t-md);
  font-weight: 700;
}

.horaire__heures {
  display: block;
  font-size: var(--t-md);
  color: var(--sur-vert);
}

.carte-coordonnees a { color: #fff; }
.carte-coordonnees a:hover { color: var(--anis); }

.liens-catalogues {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.liens-catalogues a {
  font-size: var(--t-md);
  font-weight: 600;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   11 bis. Page catalogues et fenêtres modales
   -------------------------------------------------------------------------- */
.grille-catalogues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.catalogue {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-bloc);
  background: #fff;
  padding: 36px;
}

.catalogue__icone {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--vert-clair);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px;
  margin-bottom: 22px;
}

.catalogue__icone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalogue__titre {
  font-weight: 800;
  font-size: var(--t-2xl);
  margin: 0 0 12px;
}

.catalogue__desc {
  font-size: var(--t-base);
  color: var(--texte);
  line-height: 1.65;
  margin: 0 0 20px;
}

.catalogue__points {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* flex:1 pousse le bouton en bas : les deux cartes l'alignent
     même si leurs textes n'ont pas la même longueur. */
  flex: 1;
}

.catalogue__points li {
  position: relative;
  padding-left: 26px;
  font-size: var(--t-md);
  color: var(--texte-doux);
  line-height: 1.5;
}

.catalogue__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--anis);
}

.catalogue__action { align-self: flex-start; }

/* --- Fenêtre modale --------------------------------------------------- */
.modale {
  width: min(520px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  border: 0;
  border-radius: var(--rayon-bloc);
  background: var(--fond);
  color: var(--encre);
  position: relative;
}

.modale::backdrop {
  background: rgba(11, 42, 36, 0.55);
  backdrop-filter: blur(2px);
}

.modale__fermer {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--texte-doux);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.modale__fermer:hover {
  background: var(--vert-clair);
  color: var(--vert-fonce);
}

.modale__entete { margin-bottom: 24px; }

.modale__titre {
  font-weight: 800;
  font-size: var(--t-3xl);
  margin: 0 0 10px;
}

.modale__intro {
  font-size: var(--t-md);
  color: var(--texte-doux);
  line-height: 1.6;
  margin: 0;
}

.champ__label {
  display: block;
  font-size: var(--t-sm);
  font-weight: 700;
  margin-bottom: 6px;
}

/* Le libellé et son champ forment un couple : on annule l'écart du
   formulaire entre les deux pour ne le garder qu'entre les couples. */
.formulaire .champ__label + .champ { margin-top: 0; }
.formulaire > .champ__label { margin-bottom: -10px; }

/* Liens de consultation rendus par le script après envoi du formulaire */
.retour__liens {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.retour__lien {
  display: block;
  background: var(--anis);
  color: var(--encre);
  font-weight: 700;
  font-size: var(--t-base);
  padding: 14px 20px;
  border-radius: var(--rayon);
  text-align: center;
}

.retour__lien:hover {
  background: #AEBF2A;
  color: var(--encre);
}

/* --------------------------------------------------------------------------
   12. Page location
   -------------------------------------------------------------------------- */
.grille-location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.bloc-rappel {
  background: var(--vert-fonce);
  border-radius: var(--rayon-bloc);
  padding: 44px;
  color: #fff;
}

.bloc-rappel__titre {
  font-weight: 800;
  font-size: var(--t-2xl);
  margin-bottom: 18px;
}

.atouts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.atout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.atout__puce {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--vert-clair);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.atout__puce::after {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--vert);
}

.atout__titre {
  font-weight: 700;
  font-size: var(--t-base);
  margin-bottom: 4px;
}

.atout__desc {
  font-size: var(--t-md);
  color: var(--texte-doux);
  line-height: 1.6;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq__item {
  border: 1px solid var(--bordure);
  border-radius: 14px;
  padding: 24px 28px;
  background: #fff;
}

.faq__question {
  font-weight: 700;
  font-size: var(--t-lg);
  margin-bottom: 8px;
}

.faq__reponse {
  font-size: var(--t-md);
  color: var(--texte-doux);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   13. Page à propos
   -------------------------------------------------------------------------- */
.presentation {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px var(--gouttiere) 44px;
  max-width: var(--largeur-max);
  margin: 0 auto;
}

.presentation__texte { flex: 1; }

.presentation__texte h1 {
  font-weight: 800;
  font-size: var(--t-6xl);
  margin: 0 0 20px;
  line-height: 1.15;
}

.presentation__texte p {
  font-size: var(--t-lg);
  line-height: 1.65;
  color: var(--texte);
  margin: 0 0 18px;
  text-align: justify;
}

.presentation__texte p:last-child { margin-bottom: 0; }

.presentation__visuel {
  flex: 1;
  aspect-ratio: 4 / 3;
  border-radius: var(--rayon-bloc);
  overflow: hidden;
}

.presentation__visuel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banniere {
  border-radius: var(--rayon-bloc);
  overflow: hidden;
}

.banniere img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

.horaires {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.horaires__titre {
  font-weight: 700;
  font-size: var(--t-base);
  margin-bottom: 6px;
}

.horaires__valeur {
  color: var(--texte-doux);
  font-size: var(--t-md);
}

/* --------------------------------------------------------------------------
   14. Mentions légales
   -------------------------------------------------------------------------- */
.texte-legal {
  padding: 70px var(--gouttiere) 100px;
  max-width: 900px;
  margin: 0 auto;
}

.texte-legal h1 {
  font-weight: 800;
  font-size: var(--t-5xl);
  margin: 0 0 32px;
}

.texte-legal h2 {
  font-weight: 700;
  font-size: var(--t-lg);
  margin: 28px 0 10px;
}

.texte-legal p {
  font-size: var(--t-base);
  line-height: 1.7;
  color: var(--texte);
  margin: 0;
}

/* --------------------------------------------------------------------------
   15. Pied de page
   -------------------------------------------------------------------------- */
.pied {
  background: var(--vert-fonce);
  color: var(--sur-vert);
  padding: 56px var(--gouttiere) 28px;
}

.pied__haut {
  max-width: var(--largeur-max);
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.pied__logo {
  height: 250px;
  width: auto;
  margin-bottom: 16px;
}

.pied__titre {
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  font-size: var(--t-md);
}

.pied__liste {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: var(--t-md);
  /* L'email est un seul « mot » de 33 caractères : sans coupure autorisée,
     il impose sa largeur à toute la colonne. */
  overflow-wrap: anywhere;
}

.pied a { color: var(--sur-vert); }
.pied a:hover { color: #fff; }

.pied__bas {
  max-width: var(--largeur-max);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  font-size: var(--t-sm);
  color: var(--sur-vert-pale);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.pied__bas a { color: var(--sur-vert-pale); }
.pied__bas a:hover { color: #fff; }

/* ==========================================================================
   16. Adaptation aux écrans : du grand portable au téléphone

   Quatre paliers :
     ≤ 1280px  on resserre l'en-tête pour garder le menu sur une seule ligne
     ≤ 1080px  les grilles à plusieurs colonnes passent sur une colonne
     ≤ 1024px  bascule vers le menu déroulant (tablette)
     ≤  900px  mise en page verticale, textes et marges réduits
     ≤  600px  réglages propres au téléphone
   ========================================================================== */

/* --- Grand portable : l'en-tête tient encore sur une ligne ---------------- */
@media (max-width: 1280px) {
  .entete { padding: 6px 24px; }
  .entete__logo { height: 76px; }
  .nav { gap: 14px; }
  .nav__lien { font-size: var(--t-md); }
  .bouton--pilule { padding: 10px 20px; }
}

/* --- Portable / tablette paysage ----------------------------------------- */
@media (max-width: 1080px) {
  .grille-publics { grid-template-columns: 1fr; }
  /* minmax(0, …) : sans lui, l'adresse email de la carte coordonnées impose
     sa largeur min-content à toute la colonne et la page déborde à 320px. */
  .grille-contact,
  .grille-location { grid-template-columns: minmax(0, 1fr); gap: 40px; }

  /* Trois colonnes conservées : logo, navigation, contact. La colonne
     contact est la plus large : elle porte l'adresse email. */
  .pied__haut {
    grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 32px;
    align-items: start;
  }

  .pied__logo { width: 160px; height: auto; margin-bottom: 0; }
  .heros__titre { font-size: var(--t-6xl); }
}

/* --- Tablette : menu déroulant ------------------------------------------- */
@media (max-width: 1024px) {
  .nav-bascule { display: block; }

  .entete {
    padding: 10px 20px;
    align-items: center;
  }

  .entete__logo { height: 64px; }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 8px 0 16px;
    /* Un menu plus haut que l'écran reste atteignable au doigt. */
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .nav[data-ouvert='true'] { display: flex; }

  .nav__lien {
    font-size: var(--t-base);
    padding: 14px 4px;
    border-bottom: 1px solid var(--bordure);
  }

  .nav__lien--actif { border-bottom-color: var(--vert); }


  .nav .bouton {
    margin-top: 12px;
    padding: 14px 24px;
  }
}

/* --- Tablette portrait et téléphone : tout passe en colonne -------------- */
@media (max-width: 900px) {
  :root { --gouttiere: 24px; }

  .heros,
  .presentation {
    flex-direction: column;
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 40px;
  }

  /* Sans limite, une image en 4/3 pleine largeur occupe tout l'écran. */
  .heros__visuel,
  .presentation__visuel { width: 100%; max-height: 360px; }
  .banniere img { max-height: 300px; }

  .heros__titre { font-size: var(--t-5xl); }
  .heros__accroche { font-size: var(--t-lg); max-width: none; }
  .titre-page,
  .presentation__texte h1 { font-size: var(--t-4xl); }
  .titre-section { font-size: var(--t-2xl); }
  .texte-legal h1 { font-size: var(--t-3xl); }
  .intro { font-size: var(--t-lg); }

  /* Le texte justifié crée des trous sur une colonne étroite. */
  .presentation__texte p { text-align: left; }

  .section { padding: 56px var(--gouttiere); }
  .bande-confiance { padding: 28px var(--gouttiere); }
  .texte-legal { padding: 48px var(--gouttiere) 70px; }

  .bloc-public,
  .bloc-rappel,
  .carte-coordonnees { padding: 28px; }

  .formulaire__duo { grid-template-columns: 1fr; }

  /* 16px minimum : en dessous, iOS zoome tout seul à la mise au point. */
  .champ { font-size: var(--t-lg); }

  /* Cibles tactiles plus confortables. */
  .carte__action,
  .lien-fleche {
    display: inline-block;
    padding: 6px 0;
  }

  /* Services, valeurs et gages : centrés, ils laissaient de grands vides
     et des pastilles qui ne s'alignaient sur rien. En rangées : pastille à
     gauche, texte à droite : l'œil suit un seul bord vertical. C'est déjà
     la disposition des atouts de la page Location. */
  .service,
  .valeur {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    text-align: left;
    padding: 0;
  }

  /* La pastille occupe les deux rangées ; titre et description s'empilent
     à sa droite. En flex, les trois éléments se seraient alignés côte à côte. */
  .service__puce,
  .valeur__puce {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
    width: 40px;
    height: 40px;
  }

  .service__titre,
  .valeur__titre { grid-column: 2; grid-row: 1; }

  .service__desc,
  .valeur__desc { grid-column: 2; grid-row: 2; }

  .service__puce::after,
  .valeur__puce::after { width: 16px; height: 16px; }

  .service__titre,
  .valeur__titre { margin-bottom: 4px; }

  .grille-services { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .grille-valeurs { grid-template-columns: 1fr; gap: 20px; }
  .bande-confiance .conteneur { grid-template-columns: 1fr 1fr; }

  .pied { padding: 40px var(--gouttiere) 24px; }
  .pied__haut { grid-template-columns: 128px minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; }
  .pied__logo { width: 128px; }

  .grille-catalogues { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .catalogue { padding: 28px; }

  .horaires { gap: 28px; }
}

/* --- Sous la tablette : le pied n'a plus la place de trois colonnes ------ */
@media (max-width: 700px) {
  /* Logo à gauche sur les deux rangées, navigation et contact empilés à
     droite. Colonne en largeur fixe : avec « auto », le max-width:100% de
     l'image entre en boucle avec la taille de colonne et écrase le logo. */
  .pied__haut {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 26px 20px;
  }

  .pied__haut > :first-child { grid-row: 1 / span 2; }
  .pied__logo { width: 110px; }
}

/* --- Téléphone ----------------------------------------------------------- */
@media (max-width: 600px) {
  :root { --gouttiere: 20px; }

  /* La barre de contact prenait trois lignes en haut de l'écran. */
  .barre-contact {
    font-size: var(--t-xs);
    padding: 7px 16px;
    gap: 4px 8px;
    line-height: 1.4;
  }

  .heros__titre { font-size: var(--t-4xl); }
  .titre-page,
  .presentation__texte h1 { font-size: var(--t-3xl); }
  .titre-section { font-size: var(--t-2xl); }
  .etiquette { font-size: var(--t-xs); padding: 6px 14px; }

  .section { padding: 44px var(--gouttiere); }

  /* Boutons pleine largeur : plus faciles à viser au pouce. */
  .groupe-boutons { flex-direction: column; align-items: stretch; }
  .groupe-boutons .bouton { width: 100%; }
  .heros .groupe-boutons { grid-template-columns: minmax(0, 1fr); max-width: none; }
  .bloc-public .bouton { align-self: stretch; width: 100%; }

  .bloc-public,
  .bloc-rappel,
  .carte-coordonnees { padding: 24px; border-radius: 16px; }

  .faq__item { padding: 20px; }
  .carte__corps,
  .carte__corps--large { padding: 18px; }

  .catalogue { padding: 24px; }
  .catalogue__action { align-self: stretch; width: 100%; }

  .modale {
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
    padding: 24px 20px 32px;
  }

  .horaires {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  /* Une seule colonne de rangées : à 375px, deux colonnes réduiraient
     « Installation à domicile » à trois mots par ligne. */
  .grille-services { grid-template-columns: 1fr; gap: 18px; }
  .bande-confiance .conteneur { grid-template-columns: 1fr; gap: 16px; }

  /* L'adresse email fait 33 caractères : à 14px elle dépassait de la colonne
     et se coupait en plein milieu. Un cran plus bas, elle tient sur sa ligne. */
  .pied__haut { grid-template-columns: 76px minmax(0, 1fr); column-gap: 16px; }
  .pied__liste { font-size: var(--t-sm); }
  .pied__logo { width: 76px; }
  .pied__bas { flex-direction: column; gap: 8px; }
}

/* --- Petit téléphone ----------------------------------------------------- */
@media (max-width: 380px) {
  .heros__titre { font-size: var(--t-3xl); }
  .entete__logo { height: 56px; }
}
