/* Gastinel Compte — thème clair uniquement, pas de mode sombre */
:root {
  --fond: #fff;
  --texte: #111;
  --texte-doux: #333;
  --gris: #767676;
  --gris-leger: #f5f5f5;
  --gris-bord: #dedede;
  --gris-bord-fort: #bbb;
  --alerte: #8a1c1c;
  --alerte-fond: #fdf2f2;
  --succes: #1a5c2a;
  --succes-fond: #f0f7f0;
  --sidebar-w: 224px;
}

/* ----- Reset minimal ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }

body {
  background: var(--fond);
  color: var(--texte);
  font: 400 15px/1.6 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--texte); }
button { cursor: pointer; font: inherit; border-radius: 0; }

/* ----- Typographie ----- */
.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.02em;
}

/* ----- Inputs ----- */
input {
  font: inherit;
  padding: 9px 11px;
  border: 1px solid var(--gris-bord);
  background: var(--fond);
  color: var(--texte);
  border-radius: 0;
  width: 100%;
}
input:focus {
  outline: 2px solid var(--texte);
  outline-offset: -2px;
  border-color: var(--texte);
}

/* ----- Boutons ----- */
.btn-principal {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  font: 600 .95rem/1 Inter, system-ui, sans-serif;
  background: var(--texte);
  color: var(--fond);
  border: 1px solid var(--texte);
  text-align: center;
  cursor: pointer;
}
.btn-principal:hover:not(:disabled) { opacity: .86; }

.btn-secondaire {
  display: inline-block;
  padding: 8px 15px;
  font: 500 .875rem/1 Inter, system-ui, sans-serif;
  background: var(--fond);
  color: var(--texte);
  border: 1px solid var(--gris-bord);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-secondaire:hover { border-color: var(--texte); }

.btn-google {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 9px 12px;
  margin-top: 10px;
  font: 500 .95rem/1 Inter, system-ui, sans-serif;
  background: var(--fond);
  color: var(--texte);
  border: 1px solid var(--gris-bord);
  text-decoration: none;
}
.btn-google:hover { border-color: var(--texte); }
.btn-google .icone-inline { display: flex; align-items: center; width: 18px; height: 18px; }
.btn-google .icone-inline svg { width: 18px; height: 18px; display: block; }

.btn-danger {
  display: inline-block;
  padding: 8px 15px;
  font: 600 .875rem/1 Inter, system-ui, sans-serif;
  background: var(--alerte);
  color: #fff;
  border: 1px solid var(--alerte);
  cursor: pointer;
}
.btn-danger:hover { opacity: .88; }

.lien {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

button:disabled { opacity: .45; cursor: wait; }

/* ----- Messages de statut ----- */
.msg {
  padding: 10px 14px;
  border: 1px solid var(--gris-bord);
  font-size: .875rem;
  margin-bottom: 18px;
}
.msg.erreur  { border-color: var(--alerte); color: var(--alerte); background: var(--alerte-fond); }
.msg.succes  { border-color: #9fcba7; color: var(--succes); background: var(--succes-fond); }

/* ----- Aides texte ----- */
.aide-texte { font-size: .82rem; color: var(--gris); margin-top: 6px; }
.aide-texte.bientot { font-style: italic; }
.note-label { font-weight: 400; color: var(--gris); }
.liens-bas  { margin-top: 18px; font-size: .875rem; color: var(--gris); }
.liens-bas a { color: var(--texte); }

/* ================================
   ZONE AUTHENTIFICATION
   ================================ */
#zone-auth {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 16px 64px;
}
.auth-entete {
  width: 100%;
  max-width: 440px;
  margin-bottom: 36px;
}
.auth-panneau {
  width: 100%;
  max-width: 440px;
}
.auth-panneau h1 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
.auth-panneau form { display: grid; gap: 11px; }
.champ { display: grid; gap: 4px; }
.champ label { font-size: .875rem; font-weight: 500; }
#msg-auth { max-width: 440px; }

/* ================================
   ZONE COMPTE
   ================================ */
#zone-compte { display: flex; min-height: 100svh; }

/* ----- Barre latérale ----- */
#sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  border-right: 1px solid var(--gris-bord);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 20;
  background: var(--fond);
}

.sidebar-haut {
  padding: 18px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.sidebar-profil {
  padding: 10px 14px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--gris-bord);
  flex-shrink: 0;
}
.sidebar-profil-texte { min-width: 0; }
.sb-nom   { font-weight: 600; font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-email { font-size: .78rem; color: var(--gris); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----- Avatar ----- */
.avatar {
  width: 34px;
  height: 34px;
  background: var(--texte);
  color: var(--fond);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
  user-select: none;
  letter-spacing: 0;
}
.avatar-xl { width: 68px; height: 68px; font-size: 1.5rem; }

/* ----- Navigation sidebar ----- */
nav { flex: 1; padding: 6px 8px; overflow-y: auto; }

.nav-lien {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--texte-doux);
  font-size: .875rem;
  border-left: 3px solid transparent;
}
.nav-lien:hover { background: var(--gris-leger); color: var(--texte); }
.nav-lien.actif { border-left-color: var(--texte); background: var(--gris-leger); color: var(--texte); font-weight: 600; }

.nav-icone {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-icone svg { width: 18px; height: 18px; display: block; }

.sidebar-bas { padding: 8px; border-top: 1px solid var(--gris-bord); flex-shrink: 0; }
.nav-deconnexion {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  width: 100%;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  font-size: .875rem;
  color: var(--gris);
  text-align: left;
}
.nav-deconnexion:hover { color: var(--texte); background: var(--gris-leger); }

/* ----- Bouton icône (hamburger, fermer) ----- */
.b-icone {
  background: none;
  border: none;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texte);
}
.b-icone svg { width: 22px; height: 22px; display: block; }

/* ----- Zone de contenu principal ----- */
#contenu {
  flex: 1;
  min-width: 0;
  padding: 36px 44px 80px;
}
#topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
#msg-compte { max-width: 640px; }

/* ----- Sections ----- */
.section-titre {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 28px;
}

.groupe {
  border: 1px solid var(--gris-bord);
  padding: 18px 22px;
  margin-bottom: 14px;
  max-width: 640px;
}

.sous-titre {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.sous-titre-icone { width: 18px; height: 18px; display: flex; flex-shrink: 0; }
.sous-titre-icone svg { width: 18px; height: 18px; display: block; }
.sous-titre-danger { color: var(--alerte); }

/* ----- Formulaires dans les sections ----- */
.ligne-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.ligne-form-col { flex-direction: column; align-items: flex-start; }
.champ-flex { flex: 1; min-width: 160px; }

/* ----- Champ lecture seule ----- */
.ligne-lecture {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--gris-bord);
}
.lecture-label  { font-size: .82rem; color: var(--gris); min-width: 120px; flex-shrink: 0; }
.lecture-valeur { font-size: .9rem; }

/* ----- Appareils ----- */
.liste-appareils { list-style: none; padding: 0; }
.liste-appareils li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--gris-bord);
}
.liste-appareils li:last-child { border-bottom: none; }
.appareil-icone { width: 18px; height: 18px; flex-shrink: 0; color: var(--gris); }
.appareil-icone svg { width: 18px; height: 18px; display: block; }
.appareil-info  { flex: 1; min-width: 0; }
.appareil-nom   { font-size: .875rem; font-weight: 500; }
.appareil-detail { font-size: .78rem; color: var(--gris); margin-top: 1px; }
.appareil-actuel { font-weight: 700; }

/* ----- Section Accueil ----- */
.accueil-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.accueil-nom   { font-size: 1.15rem; font-weight: 700; margin-bottom: 2px; }
.accueil-email { color: var(--gris); font-size: .875rem; margin-bottom: 6px; }
.etiquette-tier {
  display: inline-block;
  font-size: .75rem;
  padding: 2px 8px;
  border: 1px solid var(--gris-bord);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--texte-doux);
}
.meta-compte { font-size: .82rem; color: var(--gris); margin-top: 18px; }

.bandeau-alerte {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid var(--alerte);
  background: var(--alerte-fond);
  color: var(--alerte);
  font-size: .875rem;
  margin-bottom: 18px;
  max-width: 640px;
}
.bandeau-icone { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.bandeau-icone svg { width: 16px; height: 16px; display: block; }

/* Cartes de navigation (accueil) */
.cartes-nav { display: grid; gap: 7px; max-width: 640px; margin-bottom: 8px; }
.carte-nav {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  text-decoration: none;
  color: var(--texte);
  border: 1px solid var(--gris-bord);
}
.carte-nav:hover { border-color: var(--texte); }
.carte-nav > span:nth-child(2) { flex: 1; display: grid; }
.carte-nav strong { font-size: .875rem; display: block; margin-bottom: 1px; }
.carte-nav small  { font-size: .78rem; color: var(--gris); display: block; }
.carte-icone  { width: 22px; height: 22px; flex-shrink: 0; }
.carte-icone svg { width: 22px; height: 22px; display: block; }
.carte-chevron { width: 16px; height: 16px; flex-shrink: 0; color: var(--gris); }
.carte-chevron svg { width: 16px; height: 16px; display: block; }

/* ----- Bientôt disponible ----- */
.bientot-liste { display: grid; gap: 8px; }
.bientot-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  background: var(--gris-leger);
  border: 1px solid var(--gris-bord);
  opacity: .72;
}
.bientot-icone {
  width: 36px;
  height: 36px;
  background: var(--gris-bord);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bientot-icone svg { width: 20px; height: 20px; display: block; color: var(--gris); }
.bientot-ia { background: var(--texte); color: var(--fond); font-weight: 700; font-size: .9rem; }
.bientot-item > div { flex: 1; min-width: 0; }
.bientot-nom  { font-size: .875rem; font-weight: 600; margin-bottom: 2px; }
.bientot-desc { font-size: .78rem; color: var(--gris); }
.etiq-bientot {
  font-size: .72rem;
  padding: 2px 7px;
  border: 1px solid var(--gris-bord);
  color: var(--gris);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ----- Formulaire suppression ----- */
.details-danger { margin-top: 10px; }
.details-danger > summary {
  font-size: .875rem;
  color: var(--alerte);
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.details-danger > summary::-webkit-details-marker { display: none; }
.details-danger > summary::before { content: "▸ "; font-size: .75em; }
details[open] > summary::before { content: "▾ "; }
.details-danger > summary:hover { text-decoration: underline; }
.form-danger { display: grid; gap: 11px; margin-top: 14px; }

/* ================================
   OVERLAY MOBILE
   ================================ */
#overlay-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.38);
  z-index: 15;
}
#overlay-menu.visible { display: block; }

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 820px) {
  #contenu { padding: 16px 16px 80px; }
  #topbar  { display: flex; }

  #sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: none;
  }
  #sidebar.ouvert {
    transform: translateX(0);
    box-shadow: 3px 0 20px rgba(0,0,0,.14);
  }
  #b-fermer-menu { display: flex !important; }

  .ligne-form:not(.ligne-form-col) { flex-direction: column; }
  .champ-flex { min-width: 0; width: 100%; }
  .ligne-form .btn-secondaire { width: 100%; }

  .accueil-hero { gap: 12px; }
  .avatar-xl { width: 52px; height: 52px; font-size: 1.2rem; }
  .accueil-nom { font-size: 1rem; }
  .section-titre { font-size: 1.2rem; }
  .groupe { padding: 14px 14px; }
}

@media (max-width: 420px) {
  .bientot-item { flex-wrap: wrap; }
  .etiq-bientot { margin-top: 4px; align-self: flex-start; }
  .ligne-lecture { flex-direction: column; gap: 1px; }
  .lecture-label { min-width: 0; }
}

/* =====================================================================
   HUB : ajouts (vitrine, abonnements, services). Thème clair uniquement.
   ===================================================================== */
:root { --marge: 16px; }
html { color-scheme: light; }
:focus-visible { outline: 2px solid var(--texte); outline-offset: 2px; }
main:focus { outline: none; }

.logo { color: var(--texte); text-decoration: none; }
.logo-hub {
  font-weight: 500; font-size: .7em; margin-left: 6px; padding: 1px 5px;
  border: 1px solid var(--texte); letter-spacing: .04em; vertical-align: 2px;
}

.lien-evitement {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  padding: 8px 12px; background: var(--texte); color: var(--fond); border: none;
}
.lien-evitement:focus { top: 8px; }

.btn-noir {
  display: inline-block; padding: 8px 15px;
  font: 600 .875rem/1 Inter, system-ui, sans-serif;
  background: var(--texte); color: var(--fond); border: 1px solid var(--texte);
  text-decoration: none; white-space: nowrap;
}
.btn-noir:hover { opacity: .86; }
.btn-grand { padding: 13px 20px; font-size: .95rem; }
.btn-petit { font-size: .78rem; padding: 5px 10px; }
.gris { color: var(--gris); }
.vide { padding: 10px 0; color: var(--gris); font-size: .875rem; }

/* ----- Vitrine ----- */
#zone-vitrine { min-height: 100svh; display: flex; flex-direction: column; }
.vt-entete, .vt-main, .vt-pied { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: var(--marge); padding-right: var(--marge); }
.vt-entete {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap;
}
.vt-actions { display: flex; gap: 8px; flex: initial; padding: 0; overflow: visible; }
.vt-main { flex: 1; }
.vt-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 48px 0 56px; border-bottom: 1px solid var(--gris-bord);
}
.vt-surtitre {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--gris); margin-bottom: 14px;
}
.vt-hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.1rem); line-height: 1.08;
  letter-spacing: -.035em; font-weight: 800; margin-bottom: 18px;
}
.vt-intro { font-size: 1.05rem; color: var(--texte-doux); max-width: 34em; margin-bottom: 26px; }
.vt-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.vt-schema { color: var(--texte); max-width: 520px; justify-self: center; width: 100%; }
.vt-schema svg { width: 100%; height: auto; display: block; }
.vt-bloc { padding: 44px 0 8px; }
.vt-titre2, .titre-bloc {
  font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.vt-titre2::after { content: ""; flex: 1; height: 1px; background: var(--gris-bord); }
.titre-bloc { margin-top: 30px; font-size: 1rem; }
.vt-note { font-size: .875rem; color: var(--gris); margin-top: 18px; }
.vt-pied {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between;
  padding-top: 22px; padding-bottom: 28px; margin-top: 48px;
  border-top: 1px solid var(--gris-bord); font-size: .82rem; color: var(--gris);
}

/* Grille des services : cartes carrées, numéro en coin */
.grille-services {
  list-style: none; padding: 0; display: grid; gap: 0;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  border-top: 1px solid var(--gris-bord); border-left: 1px solid var(--gris-bord);
}
.service {
  position: relative; padding: 22px 18px 18px;
  border-right: 1px solid var(--gris-bord); border-bottom: 1px solid var(--gris-bord);
  display: flex; flex-direction: column; gap: 6px; background: var(--fond);
  transition: box-shadow .15s ease;
}
.service:hover { box-shadow: inset 0 -3px 0 var(--texte); }
.service-num {
  position: absolute; top: 14px; right: 16px; font: 500 .72rem/1 ui-monospace, Consolas, monospace;
  color: var(--gris);
}
.service-icone { width: 30px; height: 30px; margin-bottom: 8px; }
.service-icone svg { width: 30px; height: 30px; display: block; }
.service-nom { font-size: .98rem; font-weight: 700; }
.service-desc { font-size: .84rem; color: var(--texte-doux); flex: 1; }
.service .etiq-bientot { align-self: flex-start; margin-top: 8px; }
#s-accueil .grille-services { max-width: 900px; }

/* Étapes */
.etapes { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.etapes li { display: flex; gap: 12px; align-items: flex-start; }
.etape-num {
  width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--texte); font-weight: 700; font-size: .85rem;
}
.etapes strong { display: block; font-size: .92rem; }
.etapes p { font-size: .84rem; color: var(--gris); }

/* ----- Authentification ----- */
.auth-entete { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.retour { display: inline-flex; align-items: center; gap: 4px; font-size: .84rem; color: var(--gris); text-decoration: none; }
.retour:hover { color: var(--texte); }
.retour .icone-inline, .retour .icone-inline svg { width: 16px; height: 16px; display: block; }
.auth-main { width: 100%; display: flex; justify-content: center; }
.aide-haut { margin: -12px 0 18px; }

/* ----- Connecté ----- */
.nav-groupe {
  margin: 14px 10px 4px; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--gris);
}
.section-titre span { overflow-wrap: anywhere; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 900px; }
.carte-duo {
  display: flex; align-items: center; gap: 13px; padding: 18px;
  border: 1px solid var(--gris-bord); text-decoration: none; color: var(--texte);
}
.carte-duo:hover { border-color: var(--texte); }
.carte-duo-texte { flex: 1; min-width: 0; display: grid; }
.carte-duo strong { font-size: .95rem; }
.carte-duo small { font-size: .8rem; color: var(--gris); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aide-bloc { margin: -10px 0 14px; }

.grille-offres {
  list-style: none; padding: 0; display: grid; gap: 10px; max-width: 900px; margin-bottom: 24px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.offre-vide {
  border: 1.5px dashed var(--gris-bord-fort); padding: 18px; min-height: 170px;
  display: flex; flex-direction: column; gap: 6px;
}
.offre-num { font: 500 .75rem/1 ui-monospace, Consolas, monospace; color: var(--gris); }
.offre-nom { font-weight: 700; margin-top: 6px; }
.offre-desc { font-size: .82rem; color: var(--gris); flex: 1; }
.offre-vide .etiq-bientot { align-self: flex-start; }

/* ----- Responsive ----- */
@media (max-width: 820px) {
  .vt-hero { grid-template-columns: 1fr; padding: 28px 0 36px; gap: 28px; }
  .vt-schema { max-width: 460px; justify-self: center; }
  .etapes { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  #topbar .logo { font-size: 1.05rem; }
}
@media (max-width: 420px) {
  .vt-actions .btn-secondaire { display: none; }
  .vt-cta a { width: 100%; text-align: center; }
  .grille-services { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Offres prévisionnelles */
.offre { border: 1px solid var(--gris-bord); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.offre-nom { font-weight: 700; }
.offre-prix { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.offre-prix > span:not([data-prix]) { font-size: .8rem; font-weight: 400; color: var(--gris); }
.offre-note { font-size: .78rem; color: var(--texte-doux); border-left: 2px solid var(--texte); padding-left: 8px; }
.offre-liste { padding-left: 18px; font-size: .84rem; color: var(--texte-doux); flex: 1; margin: 4px 0 10px; }
.offre .btn-secondaire { align-self: flex-start; }
.liste-unite { list-style: none; padding: 0; max-width: 640px; border-top: 1px solid var(--gris-bord); margin-bottom: 18px; }
.liste-unite li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--gris-bord); font-size: .9rem; }
.liste-unite li span:last-child { white-space: nowrap; font-weight: 600; }
.etiq-dispo { font-size: .72rem; padding: 2px 7px; border: 1px solid var(--texte); color: var(--texte); align-self: flex-start; margin-top: 8px; }

/* ===== Finitions : relief, animations (désactivées si mouvement réduit) ===== */
.service, .offre, .carte-duo, .carte-nav, .groupe {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service:hover, .offre:hover, .carte-duo:hover, .carte-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(17,17,17,.08), 0 1px 3px rgba(17,17,17,.06);
}
.service { z-index: 0; }
.service:hover { z-index: 1; }
.service-icone, .service-icone svg { width: 40px; height: 40px; }
.carte-icone, .carte-icone svg { width: 26px; height: 26px; }
.btn-service { align-self: flex-start; margin-top: 10px; }
.btn-noir, .btn-secondaire, .btn-principal { transition: opacity .15s ease, border-color .15s ease, transform .1s ease; }
.btn-noir:active, .btn-secondaire:active:not(:disabled), .btn-principal:active { transform: translateY(1px); }
.offre-prix [data-prix] { font-variant-numeric: tabular-nums; }

/* Bouton Google (consignes de marque : fond blanc, bordure grise, logo couleur) */
.btn-google {
  background: #fff; color: #1f1f1f; border: 1px solid #747775; border-radius: 4px;
  font: 500 .9rem/1 Roboto, Inter, system-ui, sans-serif; gap: 10px; padding: 11px 12px;
}
.btn-google:hover { border-color: #747775; box-shadow: 0 1px 3px rgba(60,64,67,.3); }
.btn-google .icone-inline, .btn-google .icone-inline svg { width: 20px; height: 20px; }

/* Apparition au défilement */
.anime .apparait { opacity: 0; transform: translateY(14px); transition: opacity .5s ease var(--delai, 0ms), transform .5s ease var(--delai, 0ms), box-shadow .2s ease; }
.anime .apparait.visible { opacity: 1; transform: none; }
.anime .apparait.visible:hover { transform: translateY(-2px); transition-delay: 0ms; }

/* Fondu des rubriques (sans View Transitions) */
@keyframes fondu { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.anime .section:not([hidden]), .anime .auth-panneau:not([hidden]) { animation: fondu .28s ease both; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

/* Pas de débordement de texte */
.bientot-desc, .bientot-nom, .service-nom, .service-desc, .offre-liste li, .sb-email, .accueil-email, .lecture-valeur { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  .anime .apparait { opacity: 1; transform: none; }
  .service:hover, .offre:hover, .carte-duo:hover, .carte-nav:hover { transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ===== Titre : block reveal + split text mask ===== */
#h-vitrine { position: relative; }
.titre-anime .mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.titre-anime .mot-in {
  display: inline-block; transform: translateY(105%);
  animation: monte .62s cubic-bezier(.2,.75,.2,1) forwards;
  animation-delay: calc(380ms + var(--i) * 55ms);
}
.titre-anime::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 100%;
  background: var(--texte); transform-origin: left; transform: scaleX(0);
  animation: balaie .75s cubic-bezier(.7,0,.25,1) forwards;
}
@keyframes monte { to { transform: none; } }
@keyframes balaie {
  0% { transform: scaleX(0); transform-origin: left; }
  48% { transform: scaleX(1); transform-origin: left; }
  52% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ===== Schéma ===== */
.vt-schema svg { overflow: visible; }
.sch-libelle { font: 600 12px Inter, system-ui, sans-serif; fill: #333; }
.sch-mono { font: 800 17px Inter, system-ui, sans-serif; fill: #111; }
.sch-c1 { font: 500 11px Inter, system-ui, sans-serif; fill: #bbb; }
.sch-c2 { font: 700 15px Inter, system-ui, sans-serif; fill: #fff; }
.sch-lien { fill: none; stroke: #111; stroke-opacity: .28; stroke-width: 1.3; stroke-dasharray: 3 5; stroke-linecap: round; }
.sch-noeud-in, .sch-centre-in { transform-box: fill-box; transform-origin: center; }
.anime .sch-noeud-in { opacity: 0; animation: noeud .5s cubic-bezier(.2,.8,.2,1.2) forwards; animation-delay: var(--d); }
.anime .sch-lien { opacity: 0; animation: lien .6s ease forwards; animation-delay: var(--d); }
.anime .sch-centre-in { opacity: 0; animation: noeud .55s cubic-bezier(.2,.8,.2,1.1) .55s forwards; }
.anime .sch-onde { animation: onde 3.2s ease-in-out 1.6s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes noeud { from { opacity: 0; transform: translateY(8px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes lien { to { opacity: 1; } }
@keyframes onde { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: .2; transform: scale(1.05); } }
.sch-mobile .sch-libelle { font-size: 12.5px; }

@media (prefers-reduced-motion: reduce) {
  .titre-anime .mot-in { transform: none; animation: none; }
  .titre-anime::after { display: none; }
  .anime .sch-noeud-in, .anime .sch-lien, .anime .sch-centre-in { opacity: 1; animation: none; }
  .anime .sch-onde { animation: none; }
}
