/* ==========================================================================
   OptimaFlow : feuille de style
   Écrite pour téléphone d'abord. Les règles pour écran large sont
   regroupées tout en bas, dans le bloc @media (min-width: 761px).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables : changez une couleur ici, elle change partout
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs de la marque */
  --bleu: #3D5CE6;            /* fonds forts, boutons secondaires */
  --bleu-logo: #476BFF;       /* bleu exact du logo : décoratif seulement */
  --jaune: #FFDF00;           /* boutons, chiffres, accents */
  --jaune-survol: #F2D200;    /* jaune au survol */
  --bleu-survol: #3250CC;     /* bleu au survol */

  /* Textes */
  --texte: #0E1220;
  --texte-secondaire: #585C70;
  --texte-bouton: #0B0F19;
  --texte-clair: #F2F5FF;     /* texte sur fond bleu nuit */
  --texte-pied: #C9CEDD;

  /* Fonds */
  --nuit: #0E1220;
  --fond-entete: #F5F7FE;
  --fond-clair: #EAEFFF;
  --blanc: #FFFFFF;
  --trait: #DCE2F7;           /* fines bordures des cartes */

  /* Erreurs de formulaire */
  --erreur: #B3261E;

  /* Polices */
  --police-titre: "Space Grotesk", system-ui, sans-serif;
  --police-texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Tailles (téléphone) */
  --taille-h1: 34px;
  --taille-h2: 28px;
  --espace-section: 56px;
  --largeur-max: 1120px;
}

/* --------------------------------------------------------------------------
   1 bis. Bulle de chat (n8n) : apparence
   Les noms --chat--... sont les réglages proposés par la bulle n8n.
   -------------------------------------------------------------------------- */
:root {
  --chat--font-family: 'Inter', sans-serif;
  --chat--color--primary: #3D5CE6;
  --chat--color--primary-shade-50: #2F4BC9;
  --chat--color--primary--shade-100: #263DA8;
  --chat--color--secondary: #3D5CE6;
  --chat--color-secondary-shade-50: #2F4BC9;
  --chat--color-dark: #0E1220;
  --chat--color-typing: #3D5CE6;

  /* En-tête de la fenêtre */
  --chat--header--background: #0E1220;
  --chat--header--color: #FFFFFF;
  --chat--header--padding: 16px 20px;
  --chat--header-height: auto;
  --chat--header--border-bottom: 3px solid #FFDF00;
  --chat--heading--font-size: 20px;
  --chat--subtitle--font-size: 13px;

  /* Messages */
  --chat--body--background: #F6F7FB;
  --chat--message--font-size: 15px;
  --chat--message-line-height: 1.5;
  --chat--message--padding: 12px 14px;
  --chat--message--border-radius: 16px;
  --chat--message--bot--background: #FFFFFF;
  --chat--message--bot--color: #0E1220;
  --chat--message--bot--border: 1px solid #E4E7F2;
  --chat--message--user--background: #3D5CE6;
  --chat--message--user--color: #FFFFFF;

  /* Zone de saisie */
  --chat--input--container--background: #FFFFFF;
  --chat--input--font-size: 15px;
  --chat--input--placeholder--font-size: 15px;
  --chat--textarea--height: 52px;
  --chat--input--send--button--color: #3D5CE6;
  --chat--input--send--button--color-hover: #263DA8;
  --chat--footer--background: #FFFFFF;

  /* Bouton rond (la bulle fermée) */
  --chat--toggle--background: #3D5CE6;
  --chat--toggle--hover--background: #2F4BC9;
  --chat--toggle--active--background: #0E1220;
  --chat--toggle--color: #FFFFFF;
  --chat--toggle--size: 60px;

  /* Fenêtre ouverte */
  --chat--window--width: 384px;
  --chat--window--height: 580px;
  --chat--window--border-radius: 18px;
  --chat--window--border: none;
}

.chat-window { box-shadow: 0 24px 60px rgba(14, 18, 32, 0.28); overflow: hidden; }
.chat-window-toggle { box-shadow: 0 10px 28px rgba(61, 92, 230, 0.45); }

/* En-tête centré */
.chat-header { text-align: center; align-items: center; gap: 4px; }
.chat-heading { justify-content: center; width: 100%; position: relative; }
.chat-heading h1 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.chat-close-button { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.chat-header p { margin: 0; opacity: 0.75; display: inline-flex; align-items: center; gap: 7px; }
.chat-header p::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34D17B; box-shadow: 0 0 0 3px rgba(52, 209, 123, 0.25); }

/* Messages */
.chat-message { box-shadow: 0 1px 2px rgba(14, 18, 32, 0.05); max-width: 86%; }

/* Zone de saisie */
.chat-layout .chat-footer { padding: 12px 14px 14px; border-top: 1px solid #E4E7F2; background: #FFFFFF; }
.chat-layout .chat-inputs { border: 2px solid #3D5CE6; border-radius: 16px; background: #FFFFFF; padding: 4px; align-items: center; box-shadow: 0 0 0 4px rgba(61, 92, 230, 0.12); transition: box-shadow .2s ease; }
.chat-layout .chat-inputs:focus-within { box-shadow: 0 0 0 5px rgba(61, 92, 230, 0.24); }
.chat-layout .chat-inputs textarea { text-align: center; padding: 10px 8px 10px 52px; height: 44px; min-height: 44px; border-radius: 12px; }
.chat-layout .chat-inputs textarea::placeholder { color: #6B7390; }
.chat-layout .chat-input-send-button { background: #FFDF00; color: #0E1220; border-radius: 12px; width: 44px; height: 44px; margin: 0; font-size: 20px; }
.chat-layout .chat-input-send-button:hover:not([disabled]) { background: #F2D200; color: #0E1220; }
.chat-layout .chat-input-send-button[disabled] { background: #FFDF00; color: #0E1220; opacity: 0.55; }

/* Halo bleu sur fond bleu nuit, comme sur le site */
.chat-layout .chat-header { background: radial-gradient(420px 200px at 70% -20%, rgba(61, 92, 230, 0.75), rgba(61, 92, 230, 0) 70%), #0E1220; }
.chat-window-wrapper .chat-window-toggle { background: radial-gradient(60px 60px at 70% 0%, rgba(61, 92, 230, 0.95), rgba(61, 92, 230, 0) 75%), #0E1220; border: 2px solid #3D5CE6; }
.chat-window-wrapper .chat-window-toggle:hover { background: radial-gradient(60px 60px at 70% 0%, #3D5CE6, rgba(61, 92, 230, 0.2) 80%), #0E1220; }

/* Bulle fermée : message d'invitation + point vert */
.chat-window-wrapper .chat-window-toggle { position: relative; }
.chat-window[style*="display: none"] + .chat-window-toggle::before {
  content: "Une question ? Parlez-nous.";
  position: absolute; right: 0; bottom: 74px;
  width: max-content; white-space: nowrap; box-sizing: border-box;
  padding: 12px 14px; border-radius: 16px 16px 4px 16px;
  background: #FFFFFF; color: #0E1220; border: 1px solid #E4E7F2;
  box-shadow: 0 10px 28px rgba(14, 18, 32, 0.18);
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500; line-height: 1.4; text-align: left;
}
.chat-window[style*="display: none"] + .chat-window-toggle::after {
  content: ""; position: absolute; top: 0; right: 0; width: 13px; height: 13px; border-radius: 50%;
  background: #34D17B; border: 2px solid #FFFFFF;
}

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

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

body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 17px;
  line-height: 1.5;
  color: var(--texte);
  background: var(--blanc);
}

/* L'attribut hidden doit toujours cacher, même si une classe dit autrement */
[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3 {
  font-family: var(--police-titre);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 { font-size: var(--taille-h1); }
h2 { font-size: var(--taille-h2); }
h3 { font-size: 21px; line-height: 1.25; }

p {
  margin: 0 0 16px;
}

a {
  color: inherit;
}

/* Contour visible au clavier */
:focus-visible {
  outline: 3px solid var(--bleu);
  outline-offset: 3px;
}

/* Sur les fonds foncés, le contour passe en jaune */
.accroche :focus-visible,
.appel-final :focus-visible,
.chiffres :focus-visible,
.bandeau-offre :focus-visible,
.pied :focus-visible {
  outline-color: var(--jaune);
}

/* Ancres : on laisse la place de l'en-tête collant */
section[id] {
  scroll-margin-top: 72px;
}

/* --------------------------------------------------------------------------
   3. Mise en page commune
   -------------------------------------------------------------------------- */
.conteneur {
  width: 100%;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding-top: var(--espace-section);
  padding-bottom: var(--espace-section);
}

.section--blanche { background: var(--blanc); }
.section--claire  { background: var(--fond-clair); }

.section h2 {
  margin-bottom: 32px;
}

.grille-trois,
.grille-faq,
.deux-colonnes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.deux-colonnes {
  gap: 32px;
}

/* --------------------------------------------------------------------------
   4. Boutons (forme de pilule)
   -------------------------------------------------------------------------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-family: var(--police-texte);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.bouton--principal {
  background: var(--jaune);
  color: var(--texte-bouton);
}
.bouton--principal:hover {
  background: var(--jaune-survol);
}

.bouton--secondaire {
  background: var(--bleu);
  color: var(--blanc);
}
.bouton--secondaire:hover {
  background: var(--bleu-survol);
}

.boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

/* Sur téléphone : boutons un peu resserrés pour tenir côte à côte */
.boutons .bouton {
  padding: 0 14px;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   5. Bandeau d'offre
   -------------------------------------------------------------------------- */
.bandeau-offre {
  background: var(--bleu);
  color: var(--blanc);
  text-align: center;
  padding: 8px 16px;
}

.bandeau-offre p {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   6. En-tête
   -------------------------------------------------------------------------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--fond-entete);
  color: var(--texte);
}

.entete__contenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.entete__marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  text-decoration: none;
}

.entete__logo {
  height: 34px;
  width: auto;
}

.entete__nom {
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 22px;
}

/* La navigation ordinateur est cachée sur téléphone */
.entete__nav {
  display: none;
}

/* Bouton menu à trois traits */
.entete__menu-bouton {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.entete__menu-icone,
.entete__menu-icone::before,
.entete__menu-icone::after {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--texte);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.entete__menu-icone {
  position: relative;
}

.entete__menu-icone::before,
.entete__menu-icone::after {
  content: "";
  position: absolute;
  left: 0;
}
.entete__menu-icone::before { top: -8px; }
.entete__menu-icone::after  { top: 8px; }

/* Menu ouvert : les trois traits deviennent une croix */
.entete__menu-bouton[aria-expanded="true"] .entete__menu-icone {
  background: transparent;
}
.entete__menu-bouton[aria-expanded="true"] .entete__menu-icone::before {
  top: 0;
  transform: rotate(45deg);
}
.entete__menu-bouton[aria-expanded="true"] .entete__menu-icone::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Menu déroulant sous l'en-tête, pleine largeur */
.menu-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 20px 20px;
  background: var(--fond-entete);
  border-top: 1px solid var(--trait);
  box-shadow: 0 12px 24px rgba(14, 18, 32, 0.12);
}

.menu-mobile a:not(.bouton) {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--trait);
}

.menu-mobile .bouton {
  margin-top: 16px;
  min-height: 52px;
}

/* --------------------------------------------------------------------------
   7. Accroche
   -------------------------------------------------------------------------- */
.accroche {
  position: relative;
  overflow: hidden;
  padding: 28px 0 var(--espace-section);
  color: var(--blanc);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(61, 92, 230, 0.55), rgba(61, 92, 230, 0) 100%),
    var(--nuit);
}

/* Motif d'hexagones blancs à 10 % d'opacité, coin haut droit */
.accroche::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  background: url("hexagones.svg") no-repeat top right / contain;
  pointer-events: none;
}

.accroche__contenu {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.accroche h1 {
  color: var(--blanc);
  margin-bottom: 14px;
}

.accent {
  color: var(--jaune);
}

.surtitre {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--jaune);
}

.accroche__texte > p:not(.surtitre):not(.note) {
  color: var(--texte-clair);
}

.note {
  margin: 0;
  font-size: 15px;
  color: var(--texte-pied);
}

/* --------------------------------------------------------------------------
   8. Cartes
   -------------------------------------------------------------------------- */
.carte {
  padding: 28px;
  border-radius: 12px;
  background: var(--fond-entete);
  border: 1px solid var(--trait);
}

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

.section--claire .carte,
.carte--blanche {
  background: var(--blanc);
}

.carte h3 {
  margin-bottom: 10px;
}

/* Icône au trait blanc sur carré bleu arrondi */
.carte__icone {
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 12px;
  background-color: var(--bleu);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
}

.carte__icone--lune {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/%3E%3C/svg%3E");
}

.carte__icone--repere {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.carte__icone--euro {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M15.5 8.5a4.5 4.5 0 1 0 0 7'/%3E%3Cpath d='M7 10.5h6.5M7 13.5h6.5'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   9. Conversation (accroche et exemples par métier)
   -------------------------------------------------------------------------- */
.carte-conversation,
.carte-demande {
  box-shadow: 0 12px 32px rgba(14, 18, 32, 0.18);
}

.carte-conversation {
  padding: 28px;
  border-radius: 12px;
  background: var(--blanc);
  color: var(--texte);
}

.carte-conversation__entete {
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--texte-secondaire);
}

.conversation {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.bulle {
  margin: 0;
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.45;
}

/* Visiteur : à droite, fond bleu foncé */
.bulle--visiteur {
  align-self: flex-end;
  background: var(--nuit);
  color: var(--blanc);
  border-bottom-right-radius: 4px;
}

/* Assistant : à gauche, fond clair */
.bulle--assistant {
  align-self: flex-start;
  background: var(--fond-clair);
  color: var(--texte);
  border-bottom-left-radius: 4px;
}

.encadre {
  margin: 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--fond-clair);
  font-weight: 600;
  font-size: 16px;
}

/* Dans une carte claire sur fond clair, l'encadré reste lisible */
.section--claire .encadre {
  background: var(--fond-clair);
}

/* --------------------------------------------------------------------------
   10. Bande de chiffres
   -------------------------------------------------------------------------- */
.chiffres {
  padding: 44px 0;
  background: var(--bleu);
  color: var(--blanc);
  text-align: center;
}

.chiffres .grille-trois {
  gap: 28px;
}

.chiffre__valeur {
  margin: 0 0 4px;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.1;
  color: var(--jaune);
}

.chiffre__legende {
  margin: 0;
  color: var(--texte-clair);
}

/* --------------------------------------------------------------------------
   11. Ce qu'il fait
   -------------------------------------------------------------------------- */
.deux-colonnes__texte h3 {
  margin-top: 32px;
}

.liste {
  margin: 0 0 8px;
  padding-left: 22px;
}

.liste li {
  margin-bottom: 12px;
}

.liste li::marker {
  color: var(--bleu);
}

.etiquette {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--jaune);
  color: var(--texte-bouton);
  font-size: 14px;
  font-weight: 700;
}

.demande {
  margin: 0;
}

.demande__ligne {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--trait);
}

.demande__ligne:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.demande dt {
  color: var(--texte-secondaire);
}

.demande dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

/* --------------------------------------------------------------------------
   12. Comment ça marche
   -------------------------------------------------------------------------- */
.etapes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.etape__numero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--bleu);
  color: var(--blanc);
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 20px;
}

/* --------------------------------------------------------------------------
   13. Onglets Menuisier / Couvreur
   -------------------------------------------------------------------------- */
.onglets__liste {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.onglet {
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid var(--bleu);
  border-radius: 999px;
  background: var(--blanc);
  color: var(--bleu);
  font-family: var(--police-texte);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.onglet:hover {
  background: var(--fond-entete);
}

.onglet[aria-selected="true"] {
  background: var(--bleu);
  color: var(--blanc);
}

.onglets__panneau {
  max-width: 640px;
  padding: 28px;
  border-radius: 12px;
  background: var(--blanc);
}

/* --------------------------------------------------------------------------
   14. Appel final et formulaire
   -------------------------------------------------------------------------- */
.appel-final {
  padding: var(--espace-section) 0;
  color: var(--blanc);
  text-align: center;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(61, 92, 230, 0.55), rgba(61, 92, 230, 0) 100%),
    var(--nuit);
}

.appel-final h2 {
  color: var(--blanc);
  margin-bottom: 14px;
}

.appel-final__contenu > p:not(.liens-finaux) {
  color: var(--texte-clair);
  margin-bottom: 28px;
}

.appel-final .carte {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
  color: var(--texte);
  border: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.champ {
  margin-bottom: 18px;
}

.champ label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.champ input,
.champ select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #6B7088;
  border-radius: 8px;
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--police-texte);
  font-size: 17px;
}

/* Champ en erreur (classe ajoutée par script.js) */
.champ--erreur input,
.champ--erreur select {
  border-color: var(--erreur);
  border-width: 2px;
}

.message-erreur {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--erreur);
}

.formulaire .bouton {
  width: 100%;
  margin-top: 4px;
}

.formulaire .note {
  margin-top: 14px;
  text-align: center;
  color: var(--texte-secondaire);
}

/* Message affiché après l'envoi (ou en cas d'échec) */
.formulaire-resultat {
  text-align: center;
}

.formulaire-resultat p {
  font-size: 19px;
  font-weight: 600;
}

.liens-finaux {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 24px 0 0;
}

.liens-finaux a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--blanc);
}

/* --------------------------------------------------------------------------
   14 bis. Page des mentions légales
   -------------------------------------------------------------------------- */
.page-legale {
  padding: 40px 0 var(--espace-section);
}

.page-legale .conteneur {
  max-width: 760px;
}

.page-legale h1 {
  margin-bottom: 28px;
}

.page-legale h2 {
  margin: 32px 0 10px;
  font-size: 22px;
}

.page-legale a {
  color: var(--bleu);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   15. Pied de page
   -------------------------------------------------------------------------- */
.pied {
  padding: 40px 0;
  background: var(--nuit);
  color: var(--texte-pied);
  font-size: 16px;
}

.pied p {
  margin-bottom: 8px;
}

.pied a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--blanc);
}

/* ==========================================================================
   ÉCRANS LARGES (au-dessus de 760 px)
   ========================================================================== */
@media (min-width: 761px) {

  :root {
    --taille-h1: 52px;
    --taille-h2: 38px;
    --espace-section: 88px;
  }

  h3 { font-size: 22px; }

  .conteneur {
    padding-left: 32px;
    padding-right: 32px;
  }

  .bandeau-offre {
    padding: 10px 16px;
  }
  .bandeau-offre p {
    font-size: 16px;
  }

  .section h2 {
    margin-bottom: 44px;
  }

  /* En-tête complet : on cache le menu mobile, on montre la navigation */
  .entete__menu-bouton,
  .menu-mobile {
    display: none !important;
  }

  .entete__nav {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .entete__nav a:not(.bouton) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 700;
    text-decoration: none;
  }

  .entete__nav a:not(.bouton):hover {
    text-decoration: underline;
  }

  /* Les liens du menu ne passent jamais sur deux lignes */
  .entete__nav a {
    white-space: nowrap;
  }

  .entete__logo {
    height: 38px;
  }

  /* Accroche : deux colonnes */
  .accroche {
    padding: 72px 0 var(--espace-section);
  }

  .accroche::before {
    width: 340px;
    height: 340px;
  }

  .accroche__contenu {
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
  }

  .boutons .bouton {
    padding: 0 28px;
    font-size: 17px;
  }

  /* Grilles de cartes */
  .grille-trois {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .grille-faq {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .deux-colonnes {
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
  }

  .chiffres {
    padding: 56px 0;
  }

  .chiffre__valeur {
    font-size: 48px;
  }

  .liens-finaux {
    flex-direction: row;
    justify-content: center;
    gap: 32px;
  }

  .pied .conteneur {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 32px;
  }

  .pied p {
    margin: 0;
  }
}

/* ==========================================================================
   ÉCRANS MOYENS (761 à 1020 px) : l'en-tête est resserré pour tenir sur une ligne
   Le numéro de téléphone y est masqué (il reste dans le menu mobile et en bas de page).
   ========================================================================== */
@media (min-width: 761px) and (max-width: 1020px) {
  .entete__nav {
    gap: 18px;
  }

  .entete__nav a:not(.bouton) {
    font-size: 15px;
  }

  .entete__nav a[href^="tel:"] {
    display: none;
  }
}

/* ==========================================================================
   TÉLÉPHONE (760 px et moins) : message d'invitation de la bulle
   Caché en haut de page (il recouvrirait les boutons de l'accroche).
   Il apparaît quand le visiteur défile : script.js ajoute alors la classe
   "page-defilee" sur la page, et la retire quand le formulaire est à l'écran.
   Le point vert reste visible dans tous les cas.
   ========================================================================== */
@media (max-width: 760px) {
  .chat-window[style*="display: none"] + .chat-window-toggle::before {
    display: none;
  }

  html.page-defilee .chat-window[style*="display: none"] + .chat-window-toggle::before {
    display: block;
  }
}
