/* Page /entreprises/ : complète css/express.css, chargé avant. L'en-tête, le pied, les
   boutons, le héros et les sections sont ceux du site ; ce fichier n'apporte que les
   blocs propres à la page. Les crochets de accueil.js (#onglets, #tuiles, #panier-demo,
   #verif, #form-devis, [data-regle]…) gardent leurs noms. Servi en no-cache : pas de ?v=.
   app.html et connexion.html restent sur entreprises.css. */

:root {
  --bordure-forte: #D9CBB3;
  --pointilles:    #C9B99E;
  --actif:         #7A1F2B;
  --erreur:        #A3271F;
  --erreur-fond:   #FBE6E3;
  --ok-fond:       #E6EFE7;
  --ease:          cubic-bezier(.2, .8, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bordure-forte: #4D4037;
    --pointilles:    #5A4B40;
    --actif:         #F0C868;
    --erreur:        #F0897D;
    --erreur-fond:   #3A1C19;
    --ok-fond:       #1C2A20;
  }
  :root:not([data-theme="light"]) .ent main h2 em { color: var(--or-vif); }
}
:root[data-theme="dark"] {
  --bordure-forte: #4D4037;
  --pointilles:    #5A4B40;
  --actif:         #F0C868;
  --erreur:        #F0897D;
  --erreur-fond:   #3A1C19;
  --ok-fond:       #1C2A20;
}
:root[data-theme="dark"] .ent main h2 em { color: var(--or-vif); }

[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.discret { color: var(--texte-2); font-size: 14.5px; margin: 6px 0 0; }

.ent main h2 em { font-style: normal; color: var(--bordeaux); }
.ent .rappel h2 em { color: var(--or-vif); }
.section__titre { font-size: clamp(28px, 3.8vw, 42px); }
.section__intro { margin: 16px 0 0; max-width: 40em; color: var(--texte-2); font-size: 16.5px; }

/* ---------- En-tête : l'accès des clients déjà inscrits ---------- */
.entete__connexion {
  flex: none; white-space: nowrap; text-decoration: none;
  font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.82);
  padding: 9px 2px; transition: color .2s;
}
.entete__connexion:hover { color: #fff; }
.entete--pose .entete__connexion { color: var(--texte-2); }
.entete--pose .entete__connexion:hover { color: var(--titre); }
@media (max-width: 1100px) { .entete__connexion { display: none; } }

/* ---------- Héros : le texte sur le bordeaux, le plat en grand à côté ----------
   Partagé net, sans voile sur la photo : le bas reste libre pour la carte des
   conditions, qui chevauche les deux moitiés. */
.ent-split {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  min-height: min(100svh, 880px);
  background: var(--bordeaux); color: #fff;
}
.ent-split__texte {
  align-self: center;
  padding: 128px clamp(28px, 4vw, 64px) 132px max(var(--gouttiere), calc((100vw - var(--max)) / 2 + var(--gouttiere)));
}
.ent-split__titre {
  margin: 0; color: #fff;
  font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -.035em;
}
.ent-split__titre em { font-style: normal; color: var(--or-vif); }
.ent-split__intro { margin: 24px 0 30px; max-width: 44ch; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.9); }
.ent-split .heros__actions { justify-content: flex-start; align-items: center; gap: 14px 26px; }
.ent-split .heros__preuves {
  justify-content: flex-start; align-items: center; gap: 10px 18px;
  margin: 30px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.22);
}
.ent-split .heros__preuves > span { background: none; border: 0; padding: 0; font-size: 14px; color: rgba(255,255,255,.88); }
.ent-split .heros__deja { text-shadow: none; }
.ent-split__photo { position: relative; display: block; overflow: hidden; min-height: 100%; }
.ent-split__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: entree-fond 1.8s cubic-bezier(.2,.7,.2,1) both;
}
/* Le haut de la photo assombri : le menu de l'en-tête reste lisible. */
.ent-split__photo::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 150px; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,13,12,.55), rgba(18,13,12,0));
}
@media (prefers-reduced-motion: reduce) { .ent-split__photo img { animation: none; } }
@media (max-width: 900px) {
  .ent-split { grid-template-columns: 1fr; min-height: 0; }
  .ent-split__photo { order: -1; aspect-ratio: 4 / 3; min-height: 0; }
  .ent-split__texte { padding: 30px var(--gouttiere) 100px; }
  .ent-split__titre { font-size: clamp(34px, 9.4vw, 48px); }
  .ent-split__intro { font-size: 16px; margin: 18px 0 24px; }
}
.heros__deja {
  margin: 16px 0 0; font-size: 14.5px; color: rgba(255,255,255,.84);
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.heros__deja + .heros__deja { margin-top: 4px; }
.heros__deja a { color: var(--or-vif); font-weight: 600; }
.heros__preuves a.preuve-google {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; text-decoration: none;
  background: rgba(18,13,12,.42); border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--pill); padding: 4px 16px 4px 5px;
  transition: border-color .2s, background .2s;
}
.heros__preuves a.preuve-google:hover { border-color: var(--or-vif); background: rgba(18,13,12,.58); }
/* `.heros__preuves span` (express.css) fait une pastille de chaque span : pas ici. */
.heros__preuves .preuve-google span {
  background: none; border: 0; border-radius: 0; padding: 0; backdrop-filter: none;
}
.logo-g { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #fff; }
.heros__preuves .preuve-google .etoiles { display: inline-flex; gap: 1px; }
.etoiles svg { width: 13px; height: 13px; fill: var(--or-vif); }

/* ---------- La carte des conditions, posée sur le bas du héros ---------- */
.ent-ouverture { padding-top: 0; }
.conditions {
  position: relative; z-index: 2;
  margin: -76px 0 clamp(64px, 8vw, 92px); padding: 0 var(--gouttiere);
}
.menu-carte {
  max-width: 820px; margin: 0 auto;
  background: var(--surface); border-radius: var(--r); box-shadow: var(--ombre-l);
  padding: clamp(26px, 4vw, 44px) clamp(22px, 5vw, 56px) clamp(24px, 3.5vw, 38px);
}
.menu-carte__titre { text-align: center; font-size: clamp(22px, 2.6vw, 28px); }
.menu-carte__filet {
  width: 58px; height: 4px; margin: 16px auto 20px; border: 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--or), var(--or-vif));
}
.points { margin: 0; display: grid; gap: 2px; }
.point { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; }
.point dt { order: 0; font-weight: 500; color: var(--texte-2); white-space: nowrap; }
.point::before {
  content: ""; order: 1; flex: 1 1 24px; min-width: 24px;
  border-bottom: 2px dotted var(--pointilles); transform: translateY(-5px);
}
.point dd { order: 2; margin: 0; font-weight: 700; color: var(--titre); text-align: right; font-variant-numeric: tabular-nums; }
.menu-carte__note { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--texte-2); }
@media (prefers-reduced-motion: no-preference) {
  .menu-carte { animation: carte-monte .9s var(--ease) .15s both; }
  .point::before {
    transform-origin: left;
    animation: pointilles .7s var(--ease) both;
    animation-delay: calc(.5s + var(--i, 0) * 70ms);
  }
}
@keyframes carte-monte { from { opacity: 0; transform: translateY(28px); } }
@keyframes pointilles { from { transform: translateY(-5px) scaleX(0); } }

/* ---------- Comment ça marche ---------- */
.comment__in {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(36px, 6vw, 88px); align-items: start;
}
.etapes__liste { list-style: none; margin: 30px 0 0; padding: 0; counter-reset: etape; }
.etapes__liste li {
  counter-increment: etape;
  display: grid; grid-template-columns: 52px 1fr; column-gap: 10px;
  padding: 20px 0; border-top: 1px solid var(--bordure-forte);
}
.etapes__liste li::before {
  content: counter(etape); grid-row: span 2;
  font-family: var(--serif); font-style: italic; font-size: 40px; line-height: 1; color: var(--accent);
}
.etapes__liste h3 { font-size: 18px; }
.etapes__liste p { margin: 6px 0 0; color: var(--texte-2); font-size: 15px; }

/* Le panier d'équipe de démonstration (accueil.js le remplit puis le fait monter) */
.panier-demo { margin: 0; position: sticky; top: 104px; }
.panier-demo__carte {
  background: var(--surface); border: 1px solid var(--bordure);
  border-radius: var(--r); box-shadow: var(--ombre-l); padding: 22px 22px 20px;
}
.panier-demo__tete {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-bottom: 14px; border-bottom: 1px solid var(--bordure);
}
.panier-demo__tete p { margin: 0; }
.panier-demo__titre { font-weight: 700; font-size: 17px; color: var(--titre); }
.panier-demo__jour { font-size: 14px; color: var(--texte-2); white-space: nowrap; }
.panier-demo__qui { list-style: none; margin: 0; padding: 0; }
.panier-demo__qui li {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  padding: 13px 0; border-bottom: 1px dashed var(--bordure-forte);
}
.panier-demo__qui p { margin: 0; }
.panier-demo__avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c, var(--bordeaux)); color: #FFF8EE; font-weight: 700;
}
.panier-demo__nom { font-weight: 600; font-size: 15px; }
.panier-demo__plats { font-size: 13.5px; color: var(--texte-2); }
.panier-demo__prix { font-weight: 700; white-space: nowrap; }
.panier-demo__total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 16px 0 0; font-weight: 600;
}
.panier-demo__total b { font-size: 23px; font-weight: 800; color: var(--titre); }
.panier-demo__jauge {
  height: 10px; margin-top: 12px; border-radius: var(--pill);
  background: var(--surface-2); overflow: hidden;
}
.panier-demo__jauge span {
  display: block; height: 100%; width: calc(var(--p, 1) * 100%);
  border-radius: inherit; background: linear-gradient(90deg, var(--or), var(--or-vif));
  transition: width 1.1s var(--ease), background .4s;
}
.panier-demo--ok .panier-demo__jauge span { background: var(--ok); }
.panier-demo__etat {
  display: flex; align-items: center; gap: 7px;
  margin: 11px 0 0; font-size: 14px; font-weight: 600; color: var(--alerte);
}
.panier-demo--ok .panier-demo__etat { color: var(--ok); }
.panier-demo__etat svg {
  flex: none; width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.panier-demo:not(.panier-demo--ok) .panier-demo__etat svg { display: none; }
.panier-demo figcaption {
  margin-top: 12px; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--texte-2);
}
@media (prefers-reduced-motion: no-preference) {
  .panier-demo[data-attente] .panier-demo__jauge span { width: 0; }
}

/* ---------- La carte (onglets et tuiles posés par accueil.js) ---------- */
.onglets {
  display: flex; gap: 8px; margin: 0 0 26px; padding: 3px;
  overflow-x: auto; scrollbar-width: none;
}
.onglets::-webkit-scrollbar { display: none; }
.onglets button {
  flex: none; min-height: 44px; padding: 9px 18px;
  border: 1.5px solid var(--bordure-forte); border-radius: var(--pill);
  background: transparent; color: var(--texte);
  font: 600 14.5px var(--corps); cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.onglets button:hover { border-color: var(--or); }
.onglets button[aria-selected="true"] { background: var(--bordeaux); border-color: var(--bordeaux); color: #FFF8EE; }
.tuiles {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px 18px;
}
.tuile p { margin: 0; }
.tuile__photo {
  aspect-ratio: 4 / 3; border-radius: var(--r-s); overflow: hidden; background: var(--bordure);
}
.tuile__photo img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.tuile:hover .tuile__photo img { transform: scale(1.04); }
.tuile__nom { margin-top: 10px !important; font-size: 15.5px; font-weight: 600; color: var(--titre); }
.tuile__bas { display: flex; justify-content: space-between; gap: 10px; margin-top: 2px !important; font-size: 14px; }
.tuile__format { color: var(--texte-2); }
.tuile__prix { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tuile--squelette .tuile__photo,
.tuile--squelette .tuile__nom,
.tuile--squelette .tuile__bas { color: transparent; border-radius: var(--r-s); background: var(--bordure); }
@media (prefers-reduced-motion: no-preference) {
  .tuile--squelette > * { animation: lueur 1.4s ease-in-out infinite; }
}
@keyframes lueur { 50% { opacity: .55; } }
.carte__suite { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
#carte .section__intro { margin-top: 0; }

/* ---------- La maison ---------- */
.maison__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.maison__photos { position: relative; padding-bottom: 16%; }
.maison__photo { display: block; border-radius: var(--r); object-fit: cover; height: auto; }
.maison__photo--grande { width: 86%; aspect-ratio: 4 / 3; }
.maison__photo--petite {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1;
  border: 6px solid var(--fond); box-shadow: var(--ombre-m);
}
.maison__texte { margin: 18px 0 0; max-width: 36em; font-size: 16.5px; color: var(--texte-2); }
.maison__chiffres {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 30px 0 26px; padding-top: 22px; border-top: 1px solid var(--bordure);
}
.maison__chiffres div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.maison__chiffres dd {
  margin: 0; font-family: var(--titres); font-size: clamp(26px, 2.8vw, 34px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.1; color: var(--actif);
}
.maison__chiffres dt { margin-top: 4px; font-size: 13.5px; color: var(--texte-2); }
.ent .rayon__enseignes .lien-souligne { margin-top: 26px; }

/* ---------- Avis : le composant du site, la pastille Google devient un lien ---------- */
a.avis__google { color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
a.avis__google:hover { box-shadow: var(--ombre-l); transform: translateY(-2px); }

/* ---------- Pour tous les midis ---------- */
.occasions__in { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.occasions__in figure { margin: 0; }
.occasions__in img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); box-shadow: var(--ombre-m); }
.occasions__liste { list-style: none; margin: 26px 0 0; padding: 0; }
.occasions__liste li {
  padding: 13px 0; border-bottom: 1px solid var(--bordure);
  font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--titre);
}
.occasions__liste li:first-child { border-top: 1px solid var(--bordure); }

/* ---------- La zone de livraison ---------- */
.zone__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.verif {
  background: var(--surface); border-radius: var(--r); box-shadow: var(--ombre-m);
  padding: clamp(24px, 3vw, 34px);
}
.verif h3 { font-size: 20px; }
.verif__ligne { display: flex; gap: 10px; margin-top: 16px; }
.verif__ligne .champ__saisie { flex: 1; min-width: 0; }
.verif__ligne .btn { flex: none; justify-content: center; }
.verif__resultat { margin: 14px 0 0; min-height: 1.6em; font-weight: 500; }
.verif__resultat--ok { color: var(--ok); }
.verif__resultat--non { color: var(--alerte); }

/* ---------- Questions ---------- */
.faq__liste { max-width: 820px; border-top: 1px solid var(--bordure-forte); }
.faq__liste details { border-bottom: 1px solid var(--bordure-forte); }
.faq__liste summary {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-family: var(--titres); font-weight: 600; font-size: 17px; color: var(--titre);
}
.faq__liste summary::-webkit-details-marker { display: none; }
.faq__liste summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease);
}
.faq__liste details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq__liste summary:hover { color: var(--accent); }
.faq__liste details p { margin: 0; padding: 0 0 22px; max-width: 46em; color: var(--texte-2); }
.faq__liste details a { color: var(--accent); font-weight: 600; }

/* ---------- Devis ---------- */
.devis__in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.devis__points { list-style: none; margin: 26px 0 0; padding: 0; }
.devis__points li { padding: 13px 0; border-bottom: 1px solid var(--bordure); }
.devis__points li:first-child { border-top: 1px solid var(--bordure); }
.devis__points strong { display: block; font-weight: 700; color: var(--titre); }
.devis__points span { color: var(--texte-2); font-size: 15px; }
.devis__contact { margin: 22px 0 0; color: var(--texte-2); }
.devis__contact a { color: var(--accent); font-weight: 600; white-space: nowrap; }
.devis__form {
  background: var(--surface); border-radius: var(--r); box-shadow: var(--ombre-m);
  padding: clamp(24px, 3.4vw, 38px);
}
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.champ p { margin: 0; }
/* Les champs du site (.champ input), aussi hors d'un .champ (code postal de la zone) */
.champ__saisie {
  font-family: var(--corps); font-size: 15px; color: var(--texte);
  background: var(--surface-2); border: 1.5px solid transparent; border-radius: var(--r-s);
  padding: 14px 16px; width: 100%; min-height: 50px;
  transition: border-color .2s, background .2s;
}
.champ__saisie:focus { outline: none; border-color: var(--or); background: var(--surface); }
.champ__saisie:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--or) 30%, transparent); }
textarea.champ__saisie { min-height: 104px; resize: vertical; }
.champ__saisie[aria-invalid="true"] { border-color: var(--erreur); }
.champ__aide { font-size: 13.5px; color: var(--texte-2); }
.champ__erreur { color: var(--erreur); font-size: 14px; font-weight: 500; }
.case { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--texte-2); cursor: pointer; }
.case input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--bordeaux); }
.case a { color: var(--accent); font-weight: 600; }
.form__erreur, .form__ok { margin: 0; padding: 12px 14px; border-radius: var(--r-s); font-size: 14.5px; font-weight: 500; }
.form__erreur { color: var(--erreur); background: var(--erreur-fond); }
.form__ok { color: var(--ok); background: var(--ok-fond); }
.form__actions .btn { width: 100%; justify-content: center; }

/* ---------- Le dernier appel ---------- */
.appel__preuves {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px;
  font-size: 14.5px; color: rgba(255,255,255,.85);
}
.appel__preuves li { display: inline-flex; align-items: center; gap: 7px; }
.appel__preuves svg {
  width: 16px; height: 16px; fill: none; stroke: var(--or-vif);
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Petits écrans ---------- */
@media (max-width: 960px) {
  .comment__in, .maison__in, .occasions__in, .zone__in, .devis__in { grid-template-columns: 1fr; }
  .panier-demo { position: static; max-width: 460px; }
  .maison__photos { max-width: 560px; }
}
@media (max-width: 760px) {
  .conditions { margin-top: -60px; }
}
@media (max-width: 560px) {
  .point { flex-wrap: wrap; gap: 0 10px; padding: 9px 0; }
  .point::before { display: none; }
  .point dd { flex-basis: 100%; text-align: left; }
  .point + .point { border-top: 1px dotted var(--pointilles); }
  .tuiles { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .tuile__bas { flex-direction: column; gap: 0; }
  .champs { grid-template-columns: 1fr; }
  .verif__ligne { flex-direction: column; }
  .etapes__liste li { grid-template-columns: 40px 1fr; }
  .etapes__liste li::before { font-size: 34px; }
  .panier-demo__carte { padding: 18px 16px 16px; }
  .panier-demo__qui li { grid-template-columns: 34px 1fr auto; gap: 10px; }
  .panier-demo__avatar { width: 34px; height: 34px; }
  .maison__chiffres { gap: 12px; }
  .maison__chiffres dd { font-size: 23px; }
  .maison__chiffres dt { font-size: 12.5px; }
  .heros__actions .btn { width: 100%; justify-content: center; }
}
