/* ==========================================================================
   Planeo — feuille de style unique du site vitrine (planeoapp.fr)
   Reproduit le rendu de l'ancien site WordPress/Betheme sans en reprendre le code.
   Points de rupture : 1239px (menu burger), 959px (tablette), 767px (mobile).
   ========================================================================== */

/* ---------- Polices hébergées sur le site (pas d'appel à Google) ---------- */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/poppins-300.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-700.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/montserrat-500.woff2') format('woff2'); }
@font-face { font-family: 'Modak'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/modak-400.woff2') format('woff2'); }

/* ---------- Charte ---------- */
:root {
  --vert: #305049;          /* fonds sombres, titres */
  --vert-bouton: #2c5e5a;   /* boutons principaux */
  --vert-forme: #2d433d;    /* formes du fond */
  --beige: #f6ead7;         /* liens, bouton d'action */
  --beige-fonce: #efd1a9;   /* prix, survols */
  --beige-bloc: #f7eada;    /* bloc des tarifs */
  --fond: #f2f2f2;          /* fond de page */
  --texte: #747b7a;
  --texte-fort: #424242;
  --barre: #232323;         /* en-tête figé et mobile */
  --panneau: #191919;       /* menu latéral */
  --gris-menu: #a6a6a6;
  --erreur: #d63637;
  --focus: var(--vert-bouton);
  --police: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 60px; }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 15px;
  line-height: 27px;
  font-weight: 400;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, p, ul, figure, fieldset { margin: 0; }
ul { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
b, strong { font-weight: 700; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lien-evitement {
  position: absolute; left: 12px; top: -60px; z-index: 100001;
  padding: 10px 16px; border-radius: 10px; background: var(--beige); color: var(--vert-bouton);
  text-decoration: none; transition: top .2s;
}
.lien-evitement:focus { top: 12px; }

.conteneur { width: min(1102px, calc(100% - 84px)); margin-inline: auto; padding-inline: 12px; }
.conteneur-nu { width: min(1102px, calc(100% - 84px)); margin-inline: auto; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 20px; border: 0; border-radius: 10px;
  font-family: var(--police); font-size: 15px; line-height: 18px; font-weight: 400;
  text-decoration: none; cursor: pointer;
  transition: color .2s ease-in-out, background-color .2s ease-in-out;
}
.bouton svg { width: 15px; height: 15px; flex: none; }
.bouton--vert { background: var(--vert-bouton); color: var(--beige); }
.bouton--vert:hover, .bouton--vert:focus-visible { background: var(--vert); color: var(--beige-fonce); }
.bouton--beige { background: var(--beige); color: var(--vert-bouton); }
.bouton--beige:hover, .bouton--beige:focus-visible { background: var(--beige-fonce); color: var(--vert); }
.bouton[disabled] { opacity: .7; cursor: progress; }

/* ==========================================================================
   En-tête
   ========================================================================== */
.zone-entete { position: relative; background: var(--vert); }
.entete { position: absolute; top: 0; left: 0; right: 0; z-index: 30; --focus: var(--beige-fonce); }
.entete__barre { display: flex; align-items: center; height: 140px; }
.entete__logo { display: block; flex: none; margin: 0 30px 0 20px; }
.entete__logo img { width: auto; height: 60px; transition: height .3s; }

.entete__nav { flex: 1 1 auto; align-self: stretch; }
.menu { display: flex; height: 100%; }
.menu a { position: relative; display: block; padding: 40px 0; color: #fff; text-decoration: none; transition: color .3s; }
.menu a span { display: block; padding: 0 20px; line-height: 60px; border-right: 1px solid rgba(0, 0, 0, .03); }
.menu li:last-child a span { border-right: 0; }
.menu a::after {
  content: ''; position: absolute; left: 10%; top: 50%; width: 80%; height: 1px; margin-top: 20px;
  background: var(--beige); opacity: 0; transition: opacity .3s;
}
.menu a:hover, .menu a:focus-visible, .menu a.actif { color: var(--beige); }
.menu a:hover::after, .menu a:focus-visible::after, .menu a.actif::after { opacity: 1; }

.entete__droite { flex: none; margin-left: auto; padding: 0 20px; display: flex; align-items: center; }
.bouton-action { margin-left: 5px; }

.entete__burger {
  display: none; flex: none; width: 34px; height: 34px; padding: 5px; margin-left: auto;
  background: none; border: 0; border-radius: 3px; color: #fff; cursor: pointer;
}
.entete__burger svg { width: 24px; height: 24px; }

/* En-tête figé au défilement */
.entete--fige {
  position: fixed; z-index: 701; background: var(--barre); opacity: .97;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
  animation: entete-descend .3s ease-out;
}
.entete--fige .entete__barre { height: 60px; }
.entete--fige .entete__logo img { height: 35px; }
.entete--fige .menu a { padding: 0; }
.entete--fige .menu a::after { top: auto; bottom: -4px; left: 0; width: 100%; height: 4px; margin-top: 0; }
@keyframes entete-descend { from { transform: translateY(-100%); } to { transform: none; } }

/* ==========================================================================
   Menu latéral (écrans de moins de 1240 px)
   ========================================================================== */
.voile {
  position: fixed; inset: 0; z-index: 9002; background: rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
}
.voile.ouvert { opacity: 1; visibility: visible; transition: opacity .3s; }
.panneau {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100000; width: 250px;
  background: var(--panneau); color: #fff; overflow-y: auto; --focus: var(--beige-fonce);
  transform: translateX(100%); visibility: hidden;
  transition: transform .3s ease, visibility 0s .3s;
}
.panneau.ouvert { transform: none; visibility: visible; transition: transform .3s ease; }
.panneau__fermer {
  display: block; width: 34px; height: 34px; margin: 13px 13px 13px auto; padding: 5px;
  background: none; border: 0; color: #fff; cursor: pointer;
}
.panneau__fermer svg { width: 24px; height: 24px; }
.panneau__action { padding: 0 20px; }
.panneau__action .bouton { width: 210px; margin-bottom: 20px; }
.panneau__menu { margin-top: 20px; }
.panneau__menu li { border-top: 1px solid rgba(255, 255, 255, .03); }
.panneau__menu li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .03); }
.panneau__menu a {
  display: block; padding: 11px 5px 10px 20px; margin-right: 50px;
  font-size: 15px; line-height: 19px; color: var(--gris-menu); text-decoration: none; transition: color .3s;
}
.panneau__menu a:hover, .panneau__menu a:focus-visible, .panneau__menu a.actif { color: #fff; }
html.menu-ouvert { overflow: hidden; }

/* ==========================================================================
   Bandeau d'accueil (reprend la composition du slider d'origine)
   Unité --u : 1px à 1440 px de large, proportionnelle en dessous.
   ========================================================================== */
.hero {
  --u: min(1px, calc(100vw / 1440));
  position: relative; height: calc(960 * var(--u)); overflow: hidden; background: var(--vert);
}
.hero__fond {
  position: absolute; inset: 0; will-change: transform;
  background: url('../img/fond-formes.png') center top / cover no-repeat;
  background-image: image-set(url('../img/fond-formes.webp') type('image/webp'), url('../img/fond-formes.png') type('image/png'));
}
.hero__scene { position: absolute; top: 0; bottom: 0; left: 50%; width: calc(1440 * var(--u)); transform: translateX(-50%); }
.hero__textes { position: absolute; inset: 0; will-change: transform; }
.hero__h1 { margin: 0; font-weight: 400; }
.hero picture { display: contents; }
.hero__titre, .hero__accroche { display: block; }
.hero__titre {
  position: absolute; left: calc(220 * var(--u)); top: calc(307 * var(--u));
  font-family: 'Modak', var(--police); font-weight: 400; color: #fff; white-space: nowrap;
  font-size: calc(119 * var(--u)); line-height: calc(139 * var(--u));
  animation: glisse-gauche-100 .9s cubic-bezier(.25, .8, .25, 1) .2s both;
}
.hero__accroche {
  position: absolute; left: calc(221 * var(--u)); top: calc(445 * var(--u));
  font-size: max(13px, calc(16 * var(--u))); line-height: calc(30 * var(--u)); color: #fff; white-space: nowrap;
  animation: glisse-gauche-50 .9s cubic-bezier(.25, .8, .25, 1) .3s both;
}
.hero__ecran {
  position: absolute; z-index: 2; left: calc(703 * var(--u)); top: calc(396 * var(--u)); width: calc(844 * var(--u)); max-width: none;
  animation: glisse-gauche-50 1s cubic-bezier(.25, .8, .25, 1) .8s both;
}
.hero__bande { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: calc(60 * var(--u)); background: #fff; }
@keyframes glisse-gauche-100 { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: none; } }
@keyframes glisse-gauche-50 { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Sections de contenu
   ========================================================================== */
.titre-section { font-size: 55px; line-height: 65px; font-weight: 500; color: var(--vert); text-align: center; }

/* Introduction */
.intro { padding: 80px 0 50px; }
.intro .titre-section { margin-bottom: 55px; }
.intro__texte p { margin-bottom: 15px; }
.intro__surtitre { color: var(--texte-fort); font-weight: 700; }
.intro__texte { display: flow-root; margin-bottom: 40px; }
.intro__action { display: flex; justify-content: center; margin-bottom: 40px; }

/* Modules RH / Clients / Planning */
.module { padding-bottom: 40px; }
.module--dernier { padding-bottom: 30px; }
.module__grille { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-items: center; }
.module__image, .module__texte { margin-bottom: 40px; }
/* 14 % de la demi-largeur, comme l'ancien site (77 px à 1440 px) */
.module__texte--droite { padding-left: 14.63%; }
.module__texte--gauche { padding-right: 14.63%; }
.module__texte h3 { font-size: 40px; line-height: 50px; font-weight: 500; color: var(--vert); margin-bottom: 31px; }
.module__texte p { margin-bottom: 15px; }
/* Espaces de fin propres à chaque bloc de l'ancien site (séparateurs et paragraphes vides) */
.module--rh .module__texte { padding-bottom: 58px; }
.module--clients .module__texte { padding-bottom: 16px; }
.module--dernier .module__texte { padding-bottom: 42px; }

/* Pointeuse / Contrôle qualité / Extranet */
.trio { padding: 10px 0; }
.trio__grille { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 24px; align-items: start; }
.trio__bloc { padding: 0 33px; }
.trio__icone { width: 100px; height: 100px; margin: 0 auto 40px; }
.trio__bloc h3 { font-size: 22px; line-height: 32px; font-weight: 600; color: var(--vert); text-align: center; margin-bottom: 15px; }
.trio__bloc p { text-align: justify; hyphens: auto; margin-bottom: 55px; }

/* Tarifs */
.ancre-tarifs { height: 20px; }
.tarifs-entete { padding: 20px 5% 0; }
.tarifs-entete__bloc { background: var(--beige-bloc); border-radius: 30px; padding: 100px 5%; text-align: center; }
.tarifs-entete .titre-section { margin-bottom: 15px; }
.tarifs-entete__sous-titre { font-size: 15px; line-height: 25px; font-weight: 500; color: var(--vert); margin-bottom: 40px; }

.tarifs { padding: 110px 0 50px; }
.tarifs__grille { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; padding: 0 15px; }
.offre {
  margin-top: -200px; padding: 40px 32px; background: #fff; border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}
.offre__nom { font-size: 22px; line-height: 32px; font-weight: 600; color: var(--vert); text-align: center; margin-bottom: 15px; }
.offre__prix { font-size: 55px; line-height: 65px; font-weight: 500; color: var(--beige-fonce); text-align: center; margin-bottom: 15px; }
.offre__unite { text-align: center; margin-bottom: 30px; }
.offre__liste { margin-bottom: 15px; }
.offre__liste li { position: relative; display: flex; align-items: center; padding: 7px 0; margin-bottom: 1px; }
.offre__liste li::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 50px; height: 1px; background: rgba(0, 0, 0, .1); }
.offre__liste li:last-child::after { display: none; }
.offre__liste img { width: 20px; height: 20px; flex: none; margin-right: 5px; }

/* Options : connecteur, formation, reprise */
.options { padding: 0 0 50px; }
.options__grille { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 24px; }
.option {
  margin-bottom: 40px; padding: 50px 50px 35px; background: var(--vert); border-radius: 8px;
  color: #fff; text-align: center;
}
.option h3 { font-size: 15px; line-height: 25px; font-weight: 500; color: #fff; margin-bottom: 5px; }
.option__prix { font-size: 14px; line-height: 25px; font-weight: 700; margin-bottom: 15px; }
.option__detail { margin-bottom: 15px; min-height: 27px; }
.option__texte { margin-bottom: 15px; }

/* Questions fréquentes (contenu repris dans les données structurées FAQPage) */
.faq { padding: 30px 0 90px; }
.faq .titre-section { margin-bottom: 40px; }
.faq__liste { max-width: 860px; margin: 0 auto; }
.faq__item {
  margin-bottom: 12px; background: #fff; border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .06); transition: box-shadow .2s;
}
.faq__item[open] { box-shadow: 0 10px 30px rgba(0, 0, 0, .1); }
.faq__item summary {
  position: relative; display: block; padding: 20px 56px 20px 24px; cursor: pointer; list-style: none;
  font-size: 17px; line-height: 26px; font-weight: 500; color: var(--vert);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ''; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--vert-bouton); border-bottom: 2px solid var(--vert-bouton);
  transform: rotate(45deg); transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__item p { padding: 0 24px 22px; }
.faq__item a { color: var(--vert-bouton); font-weight: 500; }

/* Appel à l'action final */
.contact {
  position: relative; padding: 110px 0 70px; color: #fff; --focus: var(--beige-fonce);
  background: var(--vert) url('../img/fond-formes.png') center top / cover no-repeat;
  background-image: image-set(url('../img/fond-formes.webp') type('image/webp'), url('../img/fond-formes.png') type('image/png'));
}
.contact::before {
  content: ''; position: absolute; left: 50%; top: -25px; width: 70px; height: 70px; margin-left: -35px;
  border-radius: 50%; background: var(--vert);
}
.contact .titre-section { position: relative; color: var(--beige); margin-bottom: 31px; }
.contact__texte { text-align: center; margin-bottom: 40px; }

/* Formulaire de contact complet, dans une carte comme celle de la page démo */
.contact__carte {
  max-width: 760px; margin: 0 auto 40px; padding: 30px 40px 40px;
  background: #fff; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
  color: var(--texte); --focus: var(--vert-bouton);
}
.form-contact__grille { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.form-contact__ligne { min-width: 0; padding: 10px 0; }
.form-contact__ligne--large { grid-column: 1 / -1; }
.form-contact__envoi { margin-top: 20px; display: flex; justify-content: center; }

/* Messages des formulaires */
.form-message { margin-top: 15px; font-size: 15px; line-height: 24px; text-align: center; }
.form-message:empty { display: none; }
.form-message--ok { color: var(--vert-bouton); }
.form-message--erreur { color: var(--erreur); }
.retour-sans-js { display: none; }
.retour-sans-js:target { display: block; margin: 0 auto 30px; max-width: 527px; text-align: center; font-weight: 500; }

.form-noscript { margin: 10px 0 0; font-size: 14px; line-height: 20px; color: var(--erreur); text-align: center; }

/* Pot de miel anti-robots : invisible pour les humains */
.piege { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Pied de page (glisse sous le contenu sur grand écran, comme l'original)
   ========================================================================== */
.page { position: relative; z-index: 1; background: var(--fond); }
.pied { background: var(--vert); color: #fff; --focus: var(--beige-fonce); }
.pied__copyright {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 30px 12px 60px; text-align: center;
}
.pied__copyright a { color: var(--beige); text-decoration: none; }
.pied__copyright a:hover { text-decoration: underline; }

.haut-de-page {
  position: fixed; right: 75px; bottom: 20px; z-index: 9001; width: 30px; height: 30px; padding: 7px;
  color: var(--beige); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
}
.haut-de-page.visible { opacity: 1; visibility: visible; transition: opacity .3s; }
.haut-de-page svg { width: 16px; height: 16px; }

/* ==========================================================================
   Page « Planifiez une démo »
   ========================================================================== */
.page-demo { background: var(--vert); }
.demo {
  padding: 80px 200px 110px; --focus: var(--beige-fonce);
  background: var(--vert) url('../img/fond-formes.png') center top / cover no-repeat;
  background-image: image-set(url('../img/fond-formes.webp') type('image/webp'), url('../img/fond-formes.png') type('image/png'));
}
.demo__grille {
  display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; justify-content: center;
  max-width: 1040px; min-height: 100vh; margin: 0 auto;
}
.demo__texte { flex: 0 0 60%; padding: 0 52px 0 12px; }
.demo__logo { display: block; width: 300px; margin-bottom: 40px; }
.demo__titre { font-family: 'Montserrat', var(--police); font-size: 55px; line-height: 65px; font-weight: 500; color: #fff; margin-bottom: 15px; }
.demo__intro { font-weight: 300; color: var(--beige-fonce); margin-bottom: 30px; }
.demo__intro strong { font-weight: 700; }
.demo__retour { margin-bottom: 40px; }
.demo__zone-carte { flex: 0 0 40%; padding-top: 40px; }
.demo__carte {
  margin: 0 15px; padding: 40px 32px; background: #fff; border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .1); --focus: var(--vert-bouton);
}
.anim-fondu { animation: fondu 1s ease-out .2s both; }
.anim-droite { animation: glisse-gauche-50 1s ease-out both; }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }

/* Formulaire de démo (reprend le style des champs WPForms d'origine) */
.form-demo { margin: 24px 0; }
.form-demo__ligne { padding: 15px 0; }
.form-demo__duo { display: flex; justify-content: space-between; gap: 20px; }
.form-demo__duo > * { flex: 1 1 0; min-width: 0; }
.champ {
  display: block; width: 100%; height: 43px; padding: 0 14px;
  font-family: var(--police); font-size: 16px; line-height: 16px; color: rgba(0, 0, 0, .7);
  background: #fff; border: 1px solid rgba(0, 0, 0, .25); border-radius: 3px;
  transition: border-color .15s, box-shadow .15s;
}
.champ::placeholder { color: rgba(0, 0, 0, .35); opacity: 1; }
.champ:focus {
  outline: none; border-color: var(--vert-bouton);
  box-shadow: 0 0 0 1px var(--vert-bouton), 0 1px 2px rgba(0, 0, 0, .15);
}
select.champ {
  -webkit-appearance: none; appearance: none; padding-right: 24px; line-height: 32px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, rgba(0, 0, 0, .25) 50%), linear-gradient(135deg, rgba(0, 0, 0, .25) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
textarea.champ { height: auto; min-height: 150px; padding: 12px 14px; line-height: 24px; resize: vertical; }
.champ[aria-invalid="true"] { border-color: var(--erreur); }
.champ-erreur { margin-top: 6px; font-size: 14px; line-height: 19px; color: var(--erreur); }
.champ-erreur:empty { display: none; }
.form-demo__envoi { margin-top: 10px; display: flex; justify-content: center; }
.form-demo__envoi .bouton { height: 41px; padding: 0 20px; line-height: 15px; }

.form-succes { padding: 24px 0; text-align: center; }
.form-succes__icone {
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 auto 20px;
  border-radius: 50%; background: rgba(44, 94, 90, .14); color: var(--vert-bouton);
}
.form-succes__icone svg { width: 26px; height: 26px; }
.form-succes__titre { font-size: 22px; line-height: 32px; font-weight: 600; color: var(--vert); margin-bottom: 10px; }
.form-succes p { margin-bottom: 24px; }
.form-succes:focus { outline: none; }

/* ==========================================================================
   Page 404
   ========================================================================== */
.page-erreur .demo__grille { flex-direction: column; justify-content: center; align-content: center; text-align: center; min-height: calc(100vh - 190px); }
.page-erreur .demo__texte { flex: none; padding: 0; max-width: 640px; }
.page-erreur .demo__logo { margin: 0 auto 40px; }

/* ==========================================================================
   Apparitions au défilement (désactivées sans JavaScript et si l'utilisateur
   a demandé à réduire les animations)
   ========================================================================== */
.js [data-anim] { opacity: 0; }
.js [data-anim].visible { animation: zoom-entree 1s both; }
@keyframes zoom-entree {
  from { opacity: 0; transform: scale3d(.3, .3, .3); }
  50% { opacity: 1; }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js [data-anim] { opacity: 1; }
}

/* ==========================================================================
   Grand écran : pied de page révélé sous le contenu
   ========================================================================== */
@media (min-width: 960px) {
  .page { margin-bottom: 118px; }
  .pied { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; }
}

/* ==========================================================================
   Moins de 1240 px : menu burger, composition intermédiaire du bandeau
   ========================================================================== */
@media (max-width: 1239px) {
  .conteneur, .conteneur-nu { width: 92%; }
  .entete__nav { display: none; }
  .entete__burger { display: block; }
  .entete__droite { margin-left: 15px; }

  .hero { --u: min(1px, calc(100vw / 1024)); height: calc(910 * var(--u)); }
  .hero__scene { width: calc(1024 * var(--u)); }
  .hero__titre { left: calc(38 * var(--u)); top: calc(291 * var(--u)); font-size: calc(113 * var(--u)); line-height: calc(132 * var(--u)); }
  .hero__accroche { left: calc(39 * var(--u)); top: calc(422 * var(--u)); font-size: max(13px, calc(15 * var(--u))); line-height: calc(28 * var(--u)); }
  .hero__ecran { left: calc(496 * var(--u)); top: calc(376 * var(--u)); width: calc(800 * var(--u)); }
  .hero__bande { height: calc(56 * var(--u)); }

  .demo { padding: 80px 40px 110px; }
}

/* ==========================================================================
   Tablette
   ========================================================================== */
@media (max-width: 959px) {
  .titre-section { font-size: 44px; line-height: 54px; }
  .module__texte h3 { font-size: 32px; line-height: 40px; }
  .module__texte--droite { padding-left: 40px; }
  .module__texte--gauche { padding-right: 40px; }

  .trio__grille { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .trio__bloc p { margin-bottom: 40px; }

  .offre { padding: 40px 22px; }
  .options__grille { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .option { margin-bottom: 20px; }

  .demo { padding: 60px 24px 80px; }
  .demo__grille { min-height: 0; flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .demo__texte { flex: none; padding: 0; max-width: 560px; margin: 0 auto; text-align: center; }
  .demo__logo { width: 220px; margin: 0 auto 32px; }
  .demo__titre { font-size: 38px; line-height: 46px; }
  .demo__retour { margin-bottom: 0; }
  .demo__zone-carte { flex: none; width: 100%; max-width: 480px; margin: 0 auto; padding-top: 40px; }
  .demo__carte { margin: 0; }
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 767px) {
  html { scroll-padding-top: 0; }
  .conteneur, .conteneur-nu { width: calc(100% - 42px); }

  /* En-tête : barre sombre, logo centré, burger à droite */
  .entete, .entete--fige { position: relative; background: var(--barre); opacity: 1; box-shadow: none; animation: none; }
  .entete__barre { height: 60px; justify-content: center; position: relative; }
  .entete__logo { margin: 0; }
  .entete__logo img, .entete--fige .entete__logo img { height: 50px; }
  .entete__droite { display: none; }
  .entete__burger { position: absolute; right: 0; top: 13px; margin: 0; }

  /* Bandeau : composition empilée, textes lisibles */
  .hero { height: auto; padding: 56px 0 0; }
  .hero__fond { background-size: auto 100%; background-position: 38% top; }
  .hero__scene, .hero__textes { position: static; width: auto; transform: none; }
  .hero__textes { padding: 0 33px; }
  .hero__titre, .hero__accroche { position: static; white-space: normal; }
  .hero__titre { font-size: clamp(64px, 21vw, 110px); line-height: 1.15; }
  .hero__accroche { font-size: 15px; line-height: 27px; }
  .hero__ecran { position: relative; left: auto; top: auto; width: 125%; margin: 32px 0 0 33px; }
  .hero__bande { height: 20px; }

  .titre-section { font-size: 33px; line-height: 39px; }
  .intro .titre-section { margin-bottom: 30px; }

  .module__grille { grid-template-columns: 1fr; }
  .module__texte--droite, .module__texte--gauche { padding: 0; }
  .module__texte h3 { font-size: 24px; line-height: 30px; margin-bottom: 15px; }
  .module .module__texte { padding-bottom: 0; }
  .module__image { margin-bottom: 20px; }
  .module--clients .module__texte { margin-bottom: 20px; }

  .trio__bloc { padding: 0 10px; }
  .trio__icone { margin-bottom: 20px; }
  .trio__bloc h3 { font-size: 18px; line-height: 26px; }

  .tarifs-entete__bloc { padding: 100px 5%; }
  .tarifs__grille { grid-template-columns: 1fr; padding: 0 12px; }
  .offre { margin: 0 0 20px; padding: 40px 30px; }
  .offre__nom { font-size: 20px; line-height: 30px; }
  .offre__prix { font-size: 33px; line-height: 39px; }

  .contact .titre-section { margin-bottom: 20px; }
  .contact__texte { margin-bottom: 30px; }
  .contact__carte { padding: 24px 20px 30px; }
  .form-contact__grille { grid-template-columns: 1fr; }

  .haut-de-page { right: 16px; }

  .demo { padding: 48px 20px 64px; }
  .demo__titre { font-size: 30px; line-height: 38px; }
  .demo__carte { padding: 24px 20px; }
  .form-demo__duo { flex-direction: column; gap: 30px; }
}
