/* ═══════════════════════════════════════════════════════════════════
   KIT DE DÉPART DES SITES · PP IA Agency (13/11/2026)
   base.css : la structure commune à tous nos sites.
   Règle (note commune §7 bis) : on reprend la STRUCTURE, jamais le LOOK.
   Pour un client, on change seulement le bloc 1 (ses couleurs, ses polices, ses arrondis).
   Tout le reste se règle à partir de ces variables.
   Chargée en premier ; finitions-telephone.css est chargée APRÈS.
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════ 1. LE LOOK DU CLIENT : le seul bloc à changer ═══════ */
/* Easy Bennes (maquette du 15/11/2026) : jaune benne + anthracite + vert valorisation. Pas de mode nuit. */
:root {
  color-scheme: light;
  --couleur-fond: #FBFAF6;
  --couleur-fond-2: #F1EFE6;        /* sections une sur deux */
  --couleur-texte: #17190F;
  --couleur-texte-2: #4A4E43;       /* texte secondaire : contraste AA sur les deux fonds */
  --couleur-accent: #FFC21A;        /* jaune benne : boutons, détails (jamais pour du texte sur fond clair) */
  --couleur-accent-fonce: #F2AE00;  /* survol des boutons */
  --couleur-sur-accent: #17190F;    /* texte posé sur l'accent */
  --couleur-sombre: #17190F;        /* bandeau d'appel, pied de page */
  --couleur-sur-sombre: #C9CCBE;
  --couleur-trait: #E2DFD3;
  --couleur-erreur: #B3261E;
  --couleur-valo: #1F6B43;          /* vert valorisation : liens, petits titres, icônes (texte sur fond clair) */
  --couleur-valo-clair: #DCEBDD;
  --police-titres: "Archivo", "Arial Narrow", Arial, sans-serif;
  --police-texte: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --graisse-titres: 800;
  --arrondi: 6px;                   /* angles presque nets : l'acier des bennes */
}

/* ═══════ 2. LES RÉGLAGES COMMUNS (ne pas toucher sans raison) ═══════ */
:root {
  --gouttiere: clamp(20px, 5vw, 64px);       /* marge bord d'écran → contenu */
  --largeur-max: 1200px;
  --espace-section: clamp(64px, 10vw, 128px);
  --hauteur-entete: 72px;
  --taille-texte: 17px;                       /* jamais moins de 16 px pour le texte courant */
  --zone-doigt: 44px;                         /* taille minimale de tout ce qu'on touche */
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* zones sûres de l'iPhone (encoche, barre du bas) : 0 sur ordinateur */
  --zs-haut: env(safe-area-inset-top, 0px);
  --zs-droite: env(safe-area-inset-right, 0px);
  --zs-bas: env(safe-area-inset-bottom, 0px);
  --zs-gauche: env(safe-area-inset-left, 0px);
  /* marges latérales : jamais sous l'encoche en paysage */
  --bord-g: max(var(--gouttiere), var(--zs-gauche));
  --bord-d: max(var(--gouttiere), var(--zs-droite));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--couleur-fond); scroll-behavior: smooth; scroll-padding-top: calc(var(--hauteur-entete) + var(--zs-haut) + 16px); }
body {
  background: var(--couleur-fond);
  color: var(--couleur-texte);
  font-family: var(--police-texte);
  font-size: var(--taille-texte);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul[class], ol[class] { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--couleur-accent); outline-offset: 3px; }

/* Lien d'évitement (clavier, lecteurs d'écran) */
.evitement { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 12px 18px; background: var(--couleur-texte); color: var(--couleur-fond); }
.evitement:focus { top: calc(12px + var(--zs-haut)); }
.lecteur { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ═══════ 3. TYPOGRAPHIE ═══════ */
h1, h2, h3, h4 { font-family: var(--police-titres); font-weight: var(--graisse-titres); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(34px, 6.2vw + 12px, 76px); }
h2 { font-size: clamp(28px, 3.6vw + 14px, 52px); }
h3 { font-size: clamp(20px, 1vw + 16px, 24px); line-height: 1.2; }
p { max-width: 68ch; }
.chapeau { font-size: clamp(18px, 1vw + 15px, 22px); color: var(--couleur-texte-2); }
.sur-titre { font-weight: 600; color: var(--couleur-accent); margin-bottom: 12px; }
.texte-2 { color: var(--couleur-texte-2); }

/* ═══════ 4. MISE EN PAGE : conteneur, sections, grilles ═══════ */
.conteneur { width: 100%; max-width: calc(var(--largeur-max) + var(--bord-g) + var(--bord-d)); margin: 0 auto; padding-left: var(--bord-g); padding-right: var(--bord-d); }
.section { padding: var(--espace-section) 0; }
.section--alt { background: var(--couleur-fond-2); }
.section-tete { margin-bottom: clamp(32px, 5vw, 56px); display: grid; gap: 16px; }
.grille-3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.deux-colonnes { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .deux-colonnes { grid-template-columns: 1fr 1fr; } }

/* ═══════ 5. COMPOSANTS ═══════ */

/* Bouton : un seul dessin, trois variantes */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  background: var(--couleur-accent); color: var(--couleur-sur-accent);
  border: 2px solid var(--couleur-accent); border-radius: var(--arrondi);
  font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s var(--ease);
}
.btn:hover { background: var(--couleur-accent-fonce); border-color: var(--couleur-accent-fonce); }
.btn:active { transform: translateY(1px); }
.btn--secondaire { background: transparent; color: var(--couleur-texte); border-color: currentColor; }
.btn--secondaire:hover { background: var(--couleur-texte); border-color: var(--couleur-texte); color: var(--couleur-fond); }
.btn--clair { background: #FFFFFF; color: #12131A; border-color: #FFFFFF; }
.btn--clair:hover { background: transparent; color: #FFFFFF; }
.btn--petit { min-height: var(--zone-doigt); padding: 8px 16px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Lien avec flèche */
.lien-fleche { display: inline-flex; align-items: center; gap: 8px; min-height: var(--zone-doigt); font-weight: 600; color: var(--couleur-accent); text-decoration: none; }
.lien-fleche:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Carte : service, offre, réalisation */
.carte { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 3vw, 32px); background: var(--couleur-fond); border: 1px solid var(--couleur-trait); border-radius: var(--arrondi); }
.section--alt .carte { background: var(--couleur-fond); }
.carte .lien-fleche { margin-top: auto; }
.carte-icone { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--arrondi); background: var(--couleur-fond-2); color: var(--couleur-accent); }
.carte-icone svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.carte--photo { padding: 0; overflow: hidden; }
.carte--photo .carte-corps { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; }
.carte--mise-en-avant { border: 2px solid var(--couleur-accent); }
.etiquette { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--couleur-accent); color: var(--couleur-sur-accent); font-size: 14px; font-weight: 700; }
.prix { font-family: var(--police-titres); font-size: 28px; font-weight: 700; }
.liste-coches { display: grid; gap: 8px; margin: 8px 0 16px; }
.liste-coches li { position: relative; padding-left: 28px; }
.liste-coches li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--couleur-accent); border-bottom: 2px solid var(--couleur-accent); transform: rotate(-45deg); }

/* Photo : cadre au bon format, cadrage réglable image par image avec style="--pos: 50% 30%" */
.photo { position: relative; aspect-ratio: var(--format, 4 / 3); overflow: hidden; background: var(--couleur-fond-2); border-radius: var(--arrondi); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.carte--photo .photo { border-radius: 0; }

/* Avis */
.avis { display: grid; gap: 20px; margin-top: clamp(40px, 6vw, 64px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.avis blockquote { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--arrondi); background: var(--couleur-fond); border: 1px solid var(--couleur-trait); }
.avis .etoiles { color: var(--couleur-accent); letter-spacing: 2px; }
.avis blockquote footer { margin-top: auto; font-weight: 600; color: var(--couleur-texte-2); }

/* Méthode : étapes numérotées */
.etapes { counter-reset: etape; display: grid; gap: 20px; margin-top: clamp(40px, 6vw, 64px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.etapes li { counter-increment: etape; padding-top: 20px; border-top: 2px solid var(--couleur-texte); }
.etapes li::before { content: counter(etape, decimal-leading-zero); display: block; font-family: var(--police-titres); font-size: 32px; font-weight: 700; color: var(--couleur-accent); margin-bottom: 8px; }
.etapes h3 { margin-bottom: 6px; }

/* Bandeau d'appel (fond sombre) */
.bandeau { background: var(--couleur-sombre); color: #FFFFFF; padding: clamp(56px, 8vw, 96px) 0; }
.bandeau .conteneur { display: grid; gap: 24px; align-items: center; }
.bandeau p { color: var(--couleur-sur-sombre); }
@media (min-width: 900px) { .bandeau .conteneur { grid-template-columns: 1fr auto; } }

/* Formulaire */
.formulaire { display: grid; gap: 18px; padding: clamp(22px, 3vw, 36px); background: var(--couleur-fond); border: 1px solid var(--couleur-trait); border-radius: var(--arrondi); }
.champ { display: grid; gap: 6px; }
.champ label { font-weight: 600; }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font-size: 16px; /* 16 px minimum : sinon l'iPhone zoome sur le champ */
  background: var(--couleur-fond); border: 1.5px solid var(--couleur-trait); border-radius: calc(var(--arrondi) * .6);
}
.champ textarea { min-height: 140px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--couleur-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--couleur-accent) 25%, transparent); }
.champ input:user-invalid, .champ textarea:user-invalid { border-color: var(--couleur-erreur); }
.case { display: flex; align-items: flex-start; gap: 12px; min-height: var(--zone-doigt); cursor: pointer; font-size: 15px; color: var(--couleur-texte-2); }
.case input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--couleur-accent); }
.formulaire .btn { width: 100%; }
.formulaire-note { font-size: 14px; color: var(--couleur-texte-2); }

/* Coordonnées */
.coordonnees { display: grid; gap: 4px; margin-top: 28px; }
.coordonnees a, .coordonnees p { display: flex; align-items: center; gap: 12px; min-height: 52px; text-decoration: none; }
.coordonnees svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--couleur-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.coordonnees a:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* ═══════ 6. EN-TÊTE ET MENU BURGER ═══════
   Leçon PP IA (13/11) : les liens du menu ne passent jamais sur 2 lignes (nowrap),
   et le menu burger reste jusqu'à 1179 px (au-dessus, la place manque souvent). */
.entete {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: var(--zs-haut);
  background: color-mix(in srgb, var(--couleur-fond) 94%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: box-shadow .25s ease;
}
.entete.defile { box-shadow: 0 1px 0 var(--couleur-trait); }
.entete-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--hauteur-entete); }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: var(--zone-doigt); font-family: var(--police-titres); font-weight: 700; font-size: 20px; text-decoration: none; white-space: nowrap; }
.logo svg { width: 34px; height: 34px; flex: none; }
.nav { display: none; gap: clamp(20px, 2.4vw, 36px); }
.nav a { display: inline-flex; align-items: center; min-height: var(--zone-doigt); font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--couleur-accent); }
.entete-actions { display: flex; align-items: center; gap: 8px; }
.burger { position: relative; z-index: 60; display: grid; place-items: center; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; color: var(--couleur-texte); }
.burger span, .burger span::before, .burger span::after { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .35s var(--ease), background-color .2s ease; }
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
body.menu-ouvert .burger { color: #FFFFFF; }
body.menu-ouvert { overflow: hidden; }

.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; gap: 4px;
  padding: calc(var(--hauteur-entete) + var(--zs-haut) + 24px) var(--bord-d) calc(32px + var(--zs-bas)) var(--bord-g);
  background: var(--couleur-sombre); color: #FFFFFF;
  overflow-y: auto; overscroll-behavior: contain; /* défilable en paysage */
  transform: translateY(-101%); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s .5s;
}
.menu.ouvert { transform: none; visibility: visible; transition: transform .5s var(--ease); }
.menu > :first-child { margin-top: auto; }
.menu > :last-child { margin-bottom: auto; }
.menu a { display: flex; align-items: center; min-height: 52px; font-family: var(--police-titres); font-weight: 700; font-size: clamp(28px, 8vw, 44px); line-height: 1.1; text-decoration: none; }
.menu .menu-tel { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); font-family: var(--police-texte); font-size: 18px; font-weight: 600; color: var(--couleur-sur-sombre); }
/* Quand le menu est ouvert, l'en-tête passe sur le fond sombre */
body.menu-ouvert .entete { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; z-index: 60; }
body.menu-ouvert .entete .logo { color: #FFFFFF; }
body.menu-ouvert .entete .btn--petit { visibility: hidden; }

@media (min-width: 1180px) {
  .nav { display: flex; }
  .burger, .menu { display: none; }
}

/* ═══════ 7. HÉROS (première image, phrase clé, bouton principal) ═══════ */
.heros { padding: calc(var(--hauteur-entete) + var(--zs-haut) + clamp(40px, 8vw, 96px)) 0 var(--espace-section); }
.heros .conteneur { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.heros h1 { margin-bottom: 20px; }
.heros .photo { --format: 4 / 3; }
@media (min-width: 900px) {
  .heros .conteneur { grid-template-columns: 1.1fr .9fr; }
  .heros .photo { --format: 4 / 5; }
}
.preuves { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; color: var(--couleur-texte-2); font-size: 15px; }
.preuves li { display: flex; align-items: center; gap: 8px; }
.preuves li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--couleur-accent); }

/* ═══════ 8. PIED DE PAGE (avec les mentions légales) ═══════ */
.pied { background: var(--couleur-sombre); color: var(--couleur-sur-sombre); padding: clamp(56px, 7vw, 88px) 0 calc(24px + var(--zs-bas)); font-size: 16px; }
.pied a { text-decoration: none; }
.pied a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }
.pied-haut { display: grid; gap: 36px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.pied .logo { color: #FFFFFF; }
.pied-marque p { margin-top: 12px; }
.pied h2 { font-size: 16px; letter-spacing: 0; color: #FFFFFF; margin-bottom: 8px; }
.pied-col a { display: flex; align-items: center; min-height: var(--zone-doigt); }
.pied-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 20px; font-size: 14px; }
/* Leçon MPL (russe, 12/11) : la rangée des liens légaux passe à la ligne au lieu d'être coupée */
.pied-legal { display: flex; flex-wrap: wrap; column-gap: 20px; }
.pied-legal a { display: inline-flex; align-items: center; min-height: var(--zone-doigt); }

/* ═══════ 9. BARRE D'APPEL FIXE (téléphone) ═══════ */
.barre-mobile { display: none; }
@media (max-width: 759px) {
  .barre-mobile {
    position: fixed; z-index: 40;
    left: var(--bord-g); right: var(--bord-d); bottom: calc(12px + var(--zs-bas));
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 6px; border-radius: calc(var(--arrondi) + 6px);
    background: var(--couleur-sombre); box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  }
  .barre-mobile .btn { min-height: 48px; padding: 8px 12px; font-size: 15px; }
  .barre-mobile .btn--secondaire { color: #FFFFFF; border-color: rgba(255, 255, 255, .4); }
  /* rien ne reste caché sous la barre en bas de page */
  .pied { padding-bottom: calc(96px + var(--zs-bas)); }
  body.menu-ouvert .barre-mobile { visibility: hidden; }
  /* 17/11 : la barre couvrait le bouton « Trouver ma benne » du premier écran.
     Avec le JavaScript, elle n'arrive qu'une fois les boutons du héros sortis de l'écran (site.js).
     Sans JavaScript, elle reste affichée comme avant. */
  .js .barre-mobile { transform: translateY(calc(100% + 24px + var(--zs-bas))); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; }
  .js .barre-mobile.visible { transform: none; visibility: visible; transition: transform .3s var(--ease); }
  .js body.menu-ouvert .barre-mobile.visible { visibility: hidden; }
  /* un champ ou une ancre atteint au clavier ne se cache pas sous la barre */
  html { scroll-padding-bottom: calc(88px + var(--zs-bas)); }
}

/* ═══════ 10. APPARITIONS AU DÉFILEMENT (douces, coupées si l'appareil le demande) ═══════ */
.js .apparait { opacity: 0; transform: translateY(24px); transition: opacity .4s var(--ease), transform .4s var(--ease); } /* 400 ms au plus (norme du 17/11) */
.js .apparait.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .apparait { opacity: 1; transform: none; }
}
