/* =========================================================================
   Entretien64 — feuille de style unique.

   Mobile d'abord : la maquette de reference est une colonne de 560px, et le
   visiteur type consulte le site depuis son jardin, sur telephone, en
   situation d'urgence. Au-dela de 720px la colonne s'elargit a 1080px et
   quelques grilles passent sur plusieurs colonnes ; les paragraphes, eux,
   restent limites a 65 caracteres.

   Aucune animation en dehors de la rotation du « + » des accordeons : la
   priorite est le temps de chargement.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Jetons de design
------------------------------------------------------------------------- */
:root {
  /* Verts */
  --vert: #2E7D1E;
  --vert-fonce: #1E5613;
  --vert-clair: #EAF3E4;
  --vert-bordure: #D7E6CD;
  --vert-pied: #6FBF4A;

  /* Urgence */
  --urgence: #C63F17;
  --urgence-survol: #A33110;
  --urgence-fond: #FDEFE9;
  --urgence-bordure: #F3D6C8;

  /* Textes */
  --encre: #121310;
  --texte-2: #4A4E46;
  --texte-3: #6B6E65;
  --texte-4: #8A8D83;

  /* Fonds et bordures */
  --fond-colonne: #FBFAF6;
  --fond-alt: #F4F2EA;
  --fond-hors-colonne: #EDEBE4;
  --blanc: #FFFFFF;
  --bordure: #E4E2DA;
  --bordure-champ: #C6C8BE;
  --pointilles: #B9BBB1;

  /* Rayons */
  --r-petit: 8px;
  --r-grand: 10px;

  /* Largeurs */
  --colonne: 560px;
  --colonne-large: 1080px;
  --mesure: 65ch;
}

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

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

/* L'en-tete colle en haut : sans cette marge, une ancre place sa cible
   sous l'en-tete. */
:target { scroll-margin-top: 76px; }

body {
  margin: 0;
  background: var(--fond-hors-colonne);
  color: var(--encre);
  font-family: Archivo, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

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

img, svg { max-width: 100%; }

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

/* Focus visible et lisible sur les deux fonds sombres et clairs. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--vert-fonce);
  outline-offset: 2px;
  border-radius: 4px;
}

footer a:focus-visible { outline-color: var(--vert-pied); }
.carte-urgence a:focus-visible { outline-color: var(--urgence-survol); }

.lien-evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: var(--encre);
  color: var(--blanc);
  font-weight: 700;
  text-decoration: none;
}
.lien-evitement:focus {
  left: 8px;
  top: 8px;
  color: var(--blanc);
}

/* Reserve aux lecteurs d'ecran. */
.hors-ecran {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------------------
   3. Colonne et sections
------------------------------------------------------------------------- */
.colonne {
  max-width: var(--colonne);
  margin: 0 auto;
  background: var(--fond-colonne);
  min-height: 100vh;
  box-shadow: 0 0 0 1px var(--bordure);
}

.section { padding: 22px 18px; }
.section--accroche { padding: 24px 18px 20px; }
.section--contact { padding: 24px 18px; }

.section--vert {
  background: var(--vert-clair);
  border-top: 1px solid var(--vert-bordure);
  border-bottom: 1px solid var(--vert-bordure);
}

.section--gris {
  background: var(--fond-alt);
  border-top: 1px solid var(--bordure);
  border-bottom: 1px solid var(--bordure);
}

.section--urgence {
  padding: 20px 18px 22px;
  background: var(--urgence-fond);
  border-top: 1px solid var(--urgence-bordure);
  border-bottom: 1px solid var(--urgence-bordure);
}

/* La section contact ferme la page : pas de bordure basse, le pied de page
   sombre fait la separation. */
.section--contact.section--vert { border-bottom: none; }

/* Aucun paragraphe ne depasse une longueur de ligne confortable, y compris
   quand la colonne s'elargit en desktop. */
p, li, .mesure { max-width: var(--mesure); }

/* -------------------------------------------------------------------------
   4. Titres
------------------------------------------------------------------------- */
h1 {
  margin: 0 0 10px;
  font-size: 29px;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--vert-fonce);
  text-wrap: pretty;
}

h2.h2--urgence {
  font-size: 21px;
  color: var(--urgence);
}

h2.h2--sombre { color: var(--encre); }

.sur-titre {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vert);
}

/* -------------------------------------------------------------------------
   5. En-tete
------------------------------------------------------------------------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blanc);
  border-bottom: 1px solid var(--bordure);
}

.entete__interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--colonne);
  margin: 0 auto;
  padding: 9px 14px;
}

.entete__identite {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.marque {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.marque__64 { color: var(--vert); }

.entete__metier {
  font-size: 12px;
  line-height: 1.25;
  color: var(--texte-2);
  max-width: none;
}

/* -------------------------------------------------------------------------
   6. Boutons et liens d'appel
------------------------------------------------------------------------- */
.bouton {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  border: none;
  border-radius: var(--r-petit);
  background: var(--vert);
  color: var(--blanc);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.bouton:hover { background: var(--vert-fonce); color: var(--blanc); }

.bouton--urgence { background: var(--urgence); }
.bouton--urgence:hover { background: var(--urgence-survol); }

/* Appel dans l'en-tete : deux lignes, numero toujours visible. */
.bouton--entete {
  flex: none;
  flex-direction: column;
  gap: 0;
  line-height: 1.1;
}
.bouton--entete .bouton__intitule {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.9;
}
.bouton--entete .bouton__numero {
  font-size: 16px;
  font-weight: 800;
}

.bouton--principal {
  min-height: 60px;
  border-radius: var(--r-grand);
  font-size: 21px;
}

.bouton--contour {
  min-height: 52px;
  padding: 0 12px;
  border: 2px solid var(--encre);
  border-radius: var(--r-grand);
  background: var(--blanc);
  color: var(--encre);
  font-size: 17px;
  font-weight: 700;
}
.bouton--contour:hover { background: #F0EEE6; color: var(--encre); }

.bouton--zone {
  min-height: 54px;
  border-radius: var(--r-grand);
  font-size: 18px;
}

.bouton--contact {
  min-height: 64px;
  border-radius: var(--r-grand);
  font-size: 22px;
  letter-spacing: -0.01em;
}

/* Bouton d'action au pied d'un accordeon : largeur du contenu. */
.bouton--compact {
  display: inline-flex;
  align-self: start;
  min-height: 46px;
  padding: 0 16px;
  font-size: 15px;
}

.bouton--envoi {
  min-height: 56px;
  border-radius: var(--r-grand);
  background: var(--encre);
  font-size: 18px;
}
.bouton--envoi:hover { background: var(--vert); }
.bouton--envoi[disabled] {
  background: var(--texte-3);
  cursor: progress;
}

.pile { display: grid; gap: 10px; }

/* -------------------------------------------------------------------------
   7. Accroche
------------------------------------------------------------------------- */
.ligne-seo {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--vert-fonce);
}

.accroche__texte {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.45;
  text-wrap: pretty;
}

.accroche__texte--fort {
  margin-bottom: 18px;
  font-weight: 700;
}

.reperes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--texte-2);
}
.reperes li {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: none;
}
.reperes li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vert);
}
.reperes strong { color: var(--encre); }

/* -------------------------------------------------------------------------
   8. Urgence
------------------------------------------------------------------------- */
.cartes-urgence { display: grid; gap: 10px; }

.carte-urgence {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--blanc);
  border: 1px solid var(--urgence-bordure);
  border-radius: var(--r-grand);
}
.carte-urgence__titre {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.carte-urgence__risque {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--texte-2);
}
.carte-urgence__risque strong { color: var(--encre); }
/* Le bouton reste colle en bas quand les cartes s'alignent en 3 colonnes
   et que les textes n'ont pas la meme hauteur. */
.carte-urgence .bouton { margin-top: auto; }

/* -------------------------------------------------------------------------
   9. Prestations
------------------------------------------------------------------------- */
.intro {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--texte-2);
}

.prestations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}

.prestation {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.prestation__pastille {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--vert);
  color: var(--blanc);
}

/* Pictogrammes dessines dans l'esprit des pastilles du flyer : silhouette
   blanche, les evidements reprennent le vert du fond. */
.prestation__icone {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}
.prestation__titre {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.prestation__exemples {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  color: var(--texte-2);
}

/* -------------------------------------------------------------------------
   10. Accordeons
   Le contenu replie est present dans le HTML servi et seulement masque :
   jamais d'injection au clic, sinon Google ne l'indexe pas.
------------------------------------------------------------------------- */
.accordeons {
  display: grid;
  margin-top: 16px;
  border-top: 1px solid var(--bordure);
}

.accordeon { border-bottom: 1px solid var(--bordure); }

.accordeon > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--vert-fonce);
  list-style: none;
  cursor: pointer;
}
.accordeon > summary::-webkit-details-marker { display: none; }

.accordeon__plus {
  flex: none;
  display: inline-block;
  font-size: 20px;
  font-weight: 400;
  color: var(--texte-4);
}
.accordeon[open] > summary .accordeon__plus { transform: rotate(45deg); }

.accordeon__contenu {
  display: grid;
  gap: 12px;
  padding: 0 0 16px;
}
.accordeon__contenu p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--texte-2);
}
.accordeon__contenu p strong { color: var(--encre); }
.accordeon__contenu ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--texte-2);
}

/* -------------------------------------------------------------------------
   11. Deroulement de l'intervention
------------------------------------------------------------------------- */
.etapes {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.etape {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 4px 10px;
  max-width: none;
}
.etape__numero {
  font-size: 14px;
  font-weight: 800;
  color: var(--vert);
  padding-top: 2px;
}
.etape__titre {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}
.etape__texte {
  grid-column: 2;
  font-size: 15px;
  line-height: 1.4;
  color: var(--texte-2);
  max-width: var(--mesure);
}

/* -------------------------------------------------------------------------
   12. Pourquoi Entretien64
------------------------------------------------------------------------- */
.atouts {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.atout {
  display: flex;
  gap: 10px;
  max-width: none;
}
.atout::before {
  content: "\2713";
  flex: none;
  color: var(--vert);
  font-weight: 800;
}
.atout__texte {
  font-size: 16px;
  line-height: 1.45;
  max-width: var(--mesure);
}
.atout__texte span { color: var(--texte-2); }

/* -------------------------------------------------------------------------
   13. Zone d'intervention
------------------------------------------------------------------------- */
/* Bandeau repris du flyer (« INTERVENTION EN PYRENEES-ATLANTIQUES ET
   ALENTOURS »). La pastille blanche accueillera la silhouette du departement
   quand le fichier source du flyer sera fourni ; en attendant, un reperage
   cartographique. Voir README, section « Visuels a fournir ». */
.bandeau-zone {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--r-grand);
  background: var(--vert);
  color: var(--blanc);
}

.bandeau-zone__pastille {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--blanc);
  color: var(--vert);
}
.bandeau-zone__pastille svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.bandeau-zone__texte {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 600;
}
.bandeau-zone__texte strong {
  display: block;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.bandeau-zone__texte span {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #CDE8BF;
}

.zone__texte {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--texte-2);
}
.zone__texte strong { color: var(--encre); }

.zone__intitule {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.zone__communes {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.5;
}

.accordeon--zone {
  border-top: 1px solid var(--bordure);
  border-bottom: 1px solid var(--bordure);
}
.accordeon--zone > summary { padding: 13px 0; }
.accordeon--zone p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--texte-2);
}

/* -------------------------------------------------------------------------
   14. Questions frequentes
------------------------------------------------------------------------- */
.faq { display: grid; }
.faq h2 { margin-bottom: 8px; }

.accordeon--faq > summary {
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  line-height: 1.3;
  color: var(--encre);
}
.accordeon--faq p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--texte-2);
}
.accordeon--faq p strong { color: var(--encre); }

/* -------------------------------------------------------------------------
   15. Contact
------------------------------------------------------------------------- */
.contact__intro {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--texte-2);
}

.coordonnees {
  display: grid;
  gap: 4px;
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--texte-2);
}
.coordonnees p { margin: 0; }
.coordonnees__nom,
.coordonnees__horaires { font-weight: 700; color: var(--encre); }
.coordonnees__horaires { font-weight: 600; }
.coordonnees a { font-weight: 600; }

.formulaire {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.champ {
  display: grid;
  gap: 5px;
  font-size: 15px;
  font-weight: 600;
}

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  /* Sans cela, la largeur intrinseque d'un champ (environ 20 caracteres)
     fait deborder la page sur les petits telephones. */
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--bordure-champ);
  border-radius: var(--r-petit);
  background: var(--blanc);
  color: var(--encre);
  /* 17px : au-dessus des 16px en deca desquels iOS zoome au focus. */
  font-size: 17px;
}
.champ select { padding: 0 10px; }
.champ textarea {
  padding: 10px 12px;
  line-height: 1.45;
  resize: vertical;
}
.champ input[type="file"] {
  padding: 11px 12px;
  border: 1px dashed #A8AB9F;
  font-size: 15px;
}

.champ input[aria-invalid="true"],
.champ select[aria-invalid="true"],
.champ textarea[aria-invalid="true"] {
  border-color: var(--urgence);
  border-width: 2px;
}

.champ__erreur {
  font-size: 14px;
  font-weight: 600;
  color: var(--urgence);
}
.champ__erreur:empty { display: none; }

.champ__facultatif {
  font-weight: 400;
  color: var(--texte-3);
}

.consentement {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.4;
  color: var(--texte-2);
  font-weight: 400;
}
.consentement input {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 1px 0 0;
  flex: none;
  padding: 0;
}
.consentement span { max-width: var(--mesure); }

/* Piege a robots : invisible a l'ecran comme aux lecteurs d'ecran, mais
   rempli par les automates qui completent tous les champs. */
.piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.panneau {
  margin: 18px 0 0;
  padding: 16px;
  background: var(--blanc);
  border: 1px solid var(--vert-bordure);
  border-radius: var(--r-grand);
  font-size: 16px;
  line-height: 1.45;
}
.panneau--erreur {
  border-color: var(--urgence-bordure);
  background: var(--urgence-fond);
}
.panneau p { margin: 0; }
.panneau p + p { margin-top: 8px; }

[hidden] { display: none !important; }

/* -------------------------------------------------------------------------
   16. Pied de page
------------------------------------------------------------------------- */
.pied {
  padding: 22px 18px 28px;
  background: var(--encre);
  color: #A9ABA2;
}
.pied__marque {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 800;
  color: var(--blanc);
}
.pied__marque .marque__64 { color: var(--vert-pied); }
.pied__slogan {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--vert-pied);
}
.pied__mentions,
.pied__seo {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
}
.pied__liens {
  margin: 0 0 14px;
  font-size: 14px;
}
.pied a { color: var(--vert-pied); }
.pied a:hover { color: var(--blanc); }
.pied__biocides {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid #2C2E29;
  font-size: 13px;
  line-height: 1.5;
}

/* Valeurs en attente de confirmation (SIRET, Certibiocide, assurance...).
   Rechercher « a-completer » avant la mise en ligne. */
.a-completer { color: #C9CBC2; }

/* -------------------------------------------------------------------------
   17. Pages secondaires (mentions legales, confidentialite)
------------------------------------------------------------------------- */
.page-texte h1 {
  font-size: 26px;
  margin-bottom: 6px;
}
.page-texte h2 {
  margin-top: 26px;
  font-size: 19px;
}
.page-texte p,
.page-texte li {
  font-size: 16px;
  line-height: 1.55;
  color: var(--texte-2);
}
.page-texte ul { padding-left: 20px; }
.page-texte .retour {
  display: inline-block;
  margin-top: 26px;
  font-weight: 700;
}
.page-texte__date {
  font-size: 14px;
  color: var(--texte-3);
}

/* -------------------------------------------------------------------------
   18. Desktop
   Au-dela de 720px la colonne s'elargit ; les paragraphes gardent leur
   longueur de ligne (--mesure), seules les grilles se deploient.
------------------------------------------------------------------------- */
@media (min-width: 720px) {
  :root { --colonne: var(--colonne-large); }

  .section,
  .section--accroche,
  .section--urgence,
  .section--contact { padding: 34px 32px; }

  .entete__interieur { padding: 11px 32px; }

  h1 { font-size: 40px; }
  h2, h2.h2--urgence { font-size: 26px; }

  .accroche__cta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .accroche__cta .bouton--contour { min-height: 60px; }

  .cartes-urgence { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prestations { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
  .atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }

  /* Formulaire sur deux colonnes ; message, photos, consentement et bouton
     occupent la largeur entiere. */
  .formulaire { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .champ--large,
  .consentement,
  .bouton--envoi,
  .panneau { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .accordeons--prestations { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .accordeons--prestations .accordeon:nth-last-child(-n+2) { border-bottom: 1px solid var(--bordure); }
}

/* -------------------------------------------------------------------------
   19. Impression et preferences systeme
------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .entete { position: static; }
  .colonne { box-shadow: none; max-width: none; }
  .bouton { border: 1px solid var(--encre); color: var(--encre); background: none; }
  .accordeon__plus, .lien-evitement { display: none; }
}

/* Wordmark cliquable des pages secondaires : il retourne a l'accueil mais
   ne doit pas prendre l'allure d'un lien dans le texte. */
a.marque {
  color: var(--encre);
  text-decoration: none;
}
a.marque:hover { color: var(--vert-fonce); }
