/* Espace client Review360. Surfaces blanches sur fond crème, listes groupées ; l'orange
   Comm360 est réservé aux actions principales. */

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(poppins-400.woff2) format("woff2");
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(poppins-500.woff2) format("woff2");
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(poppins-600.woff2) format("woff2");
}

:root {
  --fond: #f6eee3;
  --fond-2: #f1ead9;
  --surface: #ffffff;
  --survol: #fbf6ef;
  --texte: #3d3d3d;
  --texte-2: #6f645b;
  --trait: rgba(105, 27, 5, 0.11);
  --champ: #f8f3ec;
  --orange: #fa3804;
  --orange-fonce: #d92f02;
  --brun: #691b05;
  --vert: #1f7a3d;
  --rouge: #c4291c;
  --gris-doux: rgba(105, 27, 5, 0.07);
  --ombre: 0 1px 2px rgba(105, 27, 5, 0.05), 0 4px 16px rgba(105, 27, 5, 0.05);
  --rayon: 14px;
  --menu: 15rem;
  --menu-replie: 4rem;
  --courbe: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 15px/1.6 Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.01em;
}

h1 {
  color: var(--brun);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
}

.sous {
  margin: 4px 0 0;
  color: var(--texte-2);
  font-size: 15px;
}

.muet {
  color: var(--texte-2);
}

.icone {
  width: 17px;
  height: 17px;
  flex: none;
}

/* ---------- Barre des pages sans menu ---------- */

.barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px max(20px, calc((100% - 880px) / 2));
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brun);
  text-decoration: none;
}

.mot-comm360 {
  display: block;
  width: 104px;
  height: auto;
}

.marque-produit {
  padding-left: 10px;
  border-left: 1px solid currentColor;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
}

.barre-compte {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.barre-email {
  color: var(--texte-2);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pied {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding: 24px 16px calc(32px + env(safe-area-inset-bottom));
  color: var(--texte-2);
  font-size: 13px;
}

.pied a {
  text-decoration: none;
}

.pied a:hover {
  color: var(--brun);
  text-decoration: underline;
}

/* ---------- Mise en page ---------- */

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 16px 80px;
}

.centre .page {
  min-height: calc(100vh - 160px);
  min-height: calc(100dvh - 160px);
  display: grid;
  place-items: center;
}

.tete {
  margin-bottom: 24px;
}

.retour {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--texte-2);
  font-size: 15px;
  text-decoration: none;
}

.retour:hover {
  color: var(--texte);
}

.carte-seule {
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--ombre);
}

.carte-seule h1 {
  font-size: 26px;
}

.carte-seule .formulaire {
  margin-top: 24px;
}

.note {
  margin: 20px 0 0;
  color: var(--texte-2);
  font-size: 14px;
}

/* ---------- Liaison d'un site ---------- */

.liaison {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 16px;
  background: var(--champ);
  border-radius: 12px;
}

.liaison dt {
  color: var(--texte-2);
  font-size: 13px;
}

.liaison dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- Indicateurs ---------- */

.indicateurs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.indicateur {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  background: var(--surface);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

.indicateur-valeur {
  font-size: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.indicateur-libelle {
  color: var(--texte-2);
  font-size: 14px;
  line-height: 1.35;
}

/* ---------- Groupes et listes ---------- */

.groupe {
  margin-bottom: 24px;
  background: var(--surface);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  overflow: hidden;
}

.groupe-tete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--trait);
}

.groupe-tete h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.groupe > .formulaire {
  padding: 20px;
}

.vide {
  margin: 0;
  padding: 22px 20px;
  color: var(--texte-2);
}

.vide:empty {
  display: none;
}

.liste {
  margin: 0;
  padding: 0;
  list-style: none;
}

.liste > li + li {
  border-top: 1px solid var(--trait);
}

.ligne {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  text-decoration: none;
}

a.ligne:hover {
  background: var(--survol);
}

.ligne-corps {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.ligne-titre {
  font-weight: 600;
}

.ligne-detail {
  color: var(--texte-2);
  font-size: 14px;
}

.chevron {
  color: #b9ab9c;
}

.ligne-detail.alerte {
  color: var(--rouge);
}

/* Premier relevé des avis : un petit anneau tourne devant le texte. */
.ligne-detail.en-cours {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--texte);
}

.ligne-detail.en-cours::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: none;
  border: 2px solid var(--trait);
  border-top-color: var(--texte-2);
  border-radius: 50%;
  animation: tourner 0.9s linear infinite;
}

@keyframes tourner {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ligne-detail.en-cours::before {
    animation: none;
  }
}

/* Ce que Google demandera, avant de connecter une fiche. */
.etapes {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 18px 20px 0 42px;
}

.etapes li::marker {
  color: var(--texte-2);
  font-variant-numeric: tabular-nums;
}

.note.groupe-note {
  margin: 14px 20px 0;
  font-size: 13px;
}

/* Boutons et messages posés sous une liste, dans la marge du groupe. */
.groupe-pied {
  margin: 0;
  padding: 0 20px 20px;
}

.actions.groupe-pied {
  margin: 0;
  padding-top: 16px;
}

.compteur {
  min-width: 24px;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- Contrôle segmenté ---------- */

.segment {
  display: flex;
  gap: 2px;
  margin-bottom: 20px;
  padding: 3px;
  background: var(--gris-doux);
  border-radius: 10px;
  width: fit-content;
  max-width: 100%;
}

.segment a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--texte);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.segment a[aria-current="page"] {
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.segment-nombre {
  color: var(--texte-2);
  font-variant-numeric: tabular-nums;
}

.segment-choix {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  background: var(--gris-doux);
  border-radius: 10px;
  width: fit-content;
  max-width: 100%;
}

.segment-choix label {
  position: relative;
}

.segment-choix input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segment-choix span {
  display: block;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.segment-choix input:checked + span {
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.segment-choix input:focus-visible + span {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

/* ---------- Avis ---------- */

.avis-liste {
  margin: 0;
  padding: 0;
  list-style: none;
}

.avis {
  padding: 20px;
}

.avis + .avis {
  border-top: 1px solid var(--trait);
}

.avis-tete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.auteur {
  font-weight: 600;
}

.quand {
  color: var(--texte-2);
  font-size: 14px;
}

.etoiles {
  display: inline-flex;
  gap: 1px;
}

.etoile {
  width: 15px;
  height: 15px;
  color: #e2d7c9;
  fill: currentColor;
  stroke: none;
}

.etoile.pleine {
  color: var(--orange);
}

.etat {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.etat-a_traiter {
  background: #fff0eb;
  color: var(--brun);
}

.etat-brouillon {
  background: var(--fond);
  color: var(--texte-2);
}

.etat-publiee {
  background: #e8f5ec;
  color: var(--vert);
}

.avis-texte {
  margin: 10px 0 16px;
  white-space: pre-line;
}

.avis .champ {
  margin-bottom: 6px;
}

.ia {
  color: var(--orange);
  font-size: 0.95em;
}

/* Réponse déjà en ligne sur Google (fiches gérées par Comm360). */
.reponse-google {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--champ);
}

.reponse-google-titre {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.reponse-google p {
  margin: 4px 0 0;
  white-space: pre-line;
}

/* ---------- Formulaires ---------- */

.formulaire {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.champ {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.champ > span {
  font-size: 14px;
  font-weight: 500;
}

/* Une largeur, pas une base flex : dans un formulaire en colonne, la base deviendrait une hauteur. */
.etroit {
  flex: 0 0 auto;
  width: 160px;
}

.rangee {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--champ);
  color: var(--texte);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.15s, background-color 0.15s;
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--surface);
}

.precision {
  margin-top: 8px;
  font-size: 15px;
}

.interrupteur {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  cursor: pointer;
}

.interrupteur input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 44px;
  height: 26px;
  margin: 0;
  flex: none;
  border-radius: 13px;
  background: #e2d7c9;
  cursor: pointer;
  transition: background-color 0.2s;
}

.interrupteur input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}

.interrupteur input:checked {
  background: var(--vert);
}

.interrupteur input:checked::after {
  transform: translateX(18px);
}

.interrupteur input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.sortie {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.sortie[hidden] {
  display: none;
}

/* ---------- Boutons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.formulaire .actions {
  margin-top: 0;
}

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 15px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, opacity 0.15s, transform 160ms var(--courbe);
}

.bouton:disabled {
  opacity: 0.55;
  cursor: progress;
}

.bouton:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.bouton.plein {
  background: var(--orange);
  color: #fff;
}

.bouton.plein:hover:not(:disabled) {
  background: var(--orange-fonce);
}

.bouton.clair {
  background: var(--gris-doux);
  color: var(--texte);
}

.bouton.clair:hover:not(:disabled) {
  background: rgba(105, 27, 5, 0.12);
}

.bouton.discret {
  min-height: 34px;
  padding: 6px 10px;
  background: transparent;
  color: var(--texte-2);
  font-weight: 500;
}

.bouton.discret:hover:not(:disabled) {
  background: rgba(105, 27, 5, 0.06);
  color: var(--texte);
}

.bouton.danger:hover:not(:disabled) {
  color: var(--rouge);
}

.carte-seule .bouton.plein {
  width: 100%;
  min-height: 44px;
}

.statut {
  margin: 8px 0 0;
  min-height: 0;
  font-size: 14px;
  color: var(--texte-2);
}

.statut:empty {
  display: none;
}

.statut.erreur {
  color: var(--rouge);
}

.statut.ok {
  color: var(--vert);
}

/* ---------- Coquille : menu latéral sur ordinateur, feuille sur téléphone ---------- */

.masque {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.evitement {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--brun);
  font-weight: 500;
  box-shadow: var(--ombre);
}

.evitement:focus {
  top: calc(12px + env(safe-area-inset-top));
}

.portrait {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.compte-texte {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.compte-nom,
.compte-email,
.compte-role {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compte-nom {
  font-size: 14px;
  font-weight: 500;
}

.compte-email,
.compte-role {
  font-size: 12px;
}

.menu {
  display: flex;
  flex-direction: column;
}

.menu-tete {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu-defile {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.menu-liste {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-lien {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.menu-icone {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.menu-libelle {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-initiale {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.menu-compteur {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.menu-intitule {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 26px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-pli {
  width: 12px;
  height: 12px;
  transition: transform 200ms var(--courbe);
}

/* Section pliée : seul le lien de la page ouverte reste visible. */
html.plie-sites:not(.menu-replie) [data-section="sites"] .menu-pli,
html.plie-page:not(.menu-replie) [data-section="page"] .menu-pli {
  transform: rotate(-90deg);
}

html.plie-sites:not(.menu-replie) [data-section="sites"] li:not(:has([aria-current])),
html.plie-page:not(.menu-replie) [data-section="page"] li {
  display: none;
}

.menu-signature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
}

.menu-signature .mot-comm360 {
  width: 96px;
}

.menu-signature span {
  font-size: 11px;
}

.fil {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--texte-2);
  font-size: 14px;
  white-space: nowrap;
}

.fil a {
  text-decoration: none;
}

.fil a:hover {
  color: var(--texte);
}

.fil [aria-current] {
  overflow: hidden;
  color: var(--texte);
  font-weight: 500;
  text-overflow: ellipsis;
}

.fil-sep {
  width: 14px;
  height: 14px;
  color: #b9ab9c;
}

.compte-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 12px;
  z-index: 60;
  width: 16rem;
  padding: 6px;
  border: 1px solid var(--trait);
  border-radius: 12px;
  background: var(--surface);
  color: var(--texte);
  box-shadow: 0 12px 40px rgba(105, 27, 5, 0.18);
  transform-origin: top left;
  animation: menu-compte 160ms var(--courbe);
}

.compte-menu[hidden] {
  display: none;
}

.compte-carte {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}

.compte-carte .portrait,
.menu-identite .portrait {
  background: var(--fond);
  box-shadow: none;
  color: var(--brun);
}

.compte-carte .compte-email,
.compte-carte .compte-role {
  color: var(--texte-2);
}

.compte-sep {
  margin: 6px 0;
  border: 0;
  border-top: 1px solid var(--trait);
}

.compte-element {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--texte);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.compte-element:hover,
.compte-element:focus-visible {
  outline: none;
  background: var(--survol);
}

.compte-element.danger {
  color: var(--rouge);
}

.avec-menu [id] {
  scroll-margin-top: 72px;
}

@keyframes menu-compte {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
}

@keyframes fenetre {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}

@keyframes apparition {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Ordinateur : menu brun fixé à gauche, repliable. */
@media (min-width: 1024px) {
  .mobile-tete,
  .voile,
  .menu-titre,
  .menu-fermer,
  .menu-compte-mobile,
  .avec-menu .retour {
    display: none;
  }

  .menu {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: var(--menu);
    background: var(--brun);
    color: #fff;
  }

  .cadre {
    margin-left: var(--menu);
  }

  html.menu-replie .menu {
    width: var(--menu-replie);
  }

  html.menu-replie .cadre {
    margin-left: var(--menu-replie);
  }

  html.menu-anime .menu {
    transition: width 200ms var(--courbe);
  }

  html.menu-anime .cadre {
    transition: margin-left 200ms var(--courbe);
  }

  .menu :focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  .menu-tete {
    padding: 10px 12px;
  }

  .compte {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .compte:hover,
  .compte[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.06);
  }

  .compte .compte-role {
    color: rgba(255, 255, 255, 0.55);
  }

  .compte-fleche {
    width: 15px;
    height: 15px;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.45);
  }

  .menu-replier {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: none;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
  }

  .menu-replier:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }

  .icone-deplier,
  html.menu-replie .icone-replier {
    display: none;
  }

  html.menu-replie .icone-deplier {
    display: block;
  }

  .menu-defile {
    gap: 18px;
    padding: 8px 12px 16px;
  }

  .menu-liste {
    gap: 2px;
  }

  .menu-lien {
    position: relative;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
  }

  .menu-lien:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }

  .menu-lien[aria-current="page"] {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  .menu-lien[aria-current="page"] .menu-icone {
    color: var(--orange);
  }

  .menu-initiale {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  .menu-lien[aria-current="page"] .menu-initiale {
    background: var(--orange);
  }

  .menu-intitule {
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.45);
  }

  .menu-intitule:hover {
    color: rgba(255, 255, 255, 0.75);
  }

  .menu-pied {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
  }

  .menu-signature {
    padding: 4px 12px 0;
    color: #fff;
  }

  .menu-signature span {
    color: rgba(255, 255, 255, 0.45);
  }

  /* Menu replié : les icônes seules, le nom en infobulle. */
  html.menu-replie .menu-tete {
    flex-direction: column;
    gap: 6px;
    padding: 10px 0;
  }

  html.menu-replie .compte {
    flex: none;
    padding: 4px;
  }

  html.menu-replie .compte-texte,
  html.menu-replie .compte-fleche,
  html.menu-replie .menu-libelle,
  html.menu-replie .menu-intitule,
  html.menu-replie .menu-signature {
    display: none;
  }

  html.menu-replie .compte-menu {
    top: 10px;
    left: calc(100% + 8px);
  }

  html.menu-replie .menu-defile {
    gap: 8px;
    padding: 8px 0 16px;
  }

  html.menu-replie .menu-section {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  html.menu-replie .menu-lien {
    justify-content: center;
    width: 40px;
    margin: 0 auto;
    padding: 0;
  }

  html.menu-replie .menu-compteur {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    line-height: 16px;
  }

  html.menu-replie .menu-pied {
    padding: 10px 0 18px;
  }

  .barre-haut {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 max(40px, calc((100% - 960px) / 2 + 40px));
    border-bottom: 1px solid var(--trait);
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    backdrop-filter: blur(20px) saturate(1.4);
  }

  .avec-menu .page {
    max-width: 960px;
    padding: 32px 40px 80px;
  }
}

/* Téléphone et tablette : en-tête brun, le menu monte en feuille depuis le bas. */
@media (max-width: 1023.98px) {
  .barre-haut,
  .compte,
  .menu-replier,
  .compte-menu {
    display: none;
  }

  .mobile-tete {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: calc(56px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    background: var(--brun);
    color: #fff;
  }

  .mobile-tete .marque {
    color: #fff;
  }

  .mobile-tete .mot-comm360 {
    width: 92px;
  }

  .mobile-menu {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
  }

  .mobile-menu:hover {
    background: rgba(255, 255, 255, 0.18);
  }

  .mobile-menu:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  .voile {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 220ms ease-out;
  }

  .voile[hidden] {
    display: none;
  }

  html.menu-ouvert .voile {
    opacity: 1;
  }

  html.menu-ouvert body {
    overflow: hidden;
  }

  .menu {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    max-height: 85vh;
    max-height: 85dvh;
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: 16px 16px 0 0;
    background: var(--fond);
    color: var(--texte);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    visibility: hidden;
  }

  html.menu-ouvert .menu {
    transform: none;
    visibility: visible;
  }

  html.menu-anime .menu {
    transition: transform 280ms var(--courbe), visibility 0s linear 280ms;
  }

  html.menu-anime.menu-ouvert .menu {
    transition: transform 280ms var(--courbe), visibility 0s;
  }

  .menu :focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: -2px;
  }

  .menu-tete {
    justify-content: space-between;
    padding: 18px 16px 10px;
  }

  .menu-titre {
    margin: 0;
    color: var(--brun);
    font-size: 18px;
    font-weight: 600;
  }

  .menu-fermer {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: var(--gris-doux);
    color: var(--texte);
    cursor: pointer;
  }

  .menu-defile {
    gap: 20px;
    padding: 8px 16px 16px;
  }

  .menu-liste {
    overflow: hidden;
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--ombre);
  }

  .menu-liste > li + li {
    border-top: 1px solid var(--trait);
  }

  .menu-lien {
    min-height: 48px;
    padding: 12px 16px;
    color: var(--texte);
    font-size: 15px;
  }

  a.menu-lien::after {
    content: "";
    width: 7px;
    height: 7px;
    flex: none;
    margin: 0 2px 0 4px;
    border-top: 1.8px solid #b9ab9c;
    border-right: 1.8px solid #b9ab9c;
    transform: rotate(45deg);
  }

  .menu-lien:hover {
    background: var(--survol);
  }

  .menu-lien[aria-current="page"] {
    background: var(--survol);
    color: var(--brun);
    font-weight: 500;
  }

  .menu-icone {
    color: var(--orange);
  }

  .menu-initiale {
    background: var(--fond);
    color: var(--brun);
  }

  .menu-lien[aria-current="page"] .menu-initiale {
    background: var(--orange);
    color: #fff;
  }

  .menu-lien.danger,
  .menu-lien.danger .menu-icone {
    color: var(--rouge);
  }

  .menu-intitule {
    height: 28px;
    margin-bottom: 4px;
    padding: 0 16px;
    color: var(--texte-2);
    font-size: 12px;
  }

  .menu-identite {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
  }

  .menu-identite .portrait {
    width: 36px;
    height: 36px;
  }

  .menu-identite .compte-email {
    color: var(--texte-2);
    font-size: 13px;
  }

  .menu-pied {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px 16px;
  }

  .menu-pied > .menu-lien {
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--ombre);
  }

  .menu-signature {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 0;
    color: var(--brun);
  }

  .menu-signature .mot-comm360 {
    width: 84px;
  }

  .menu-signature span {
    color: var(--texte-2);
  }

  .avec-menu .page {
    padding: 24px max(16px, env(safe-area-inset-right)) 64px max(16px, env(safe-area-inset-left));
  }

  .avec-menu [id] {
    scroll-margin-top: calc(72px + env(safe-area-inset-top));
  }
}

/* ---------- Fenêtre de confirmation ---------- */

.confirmation {
  width: min(420px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  color: var(--texte);
  box-shadow: 0 24px 60px rgba(105, 27, 5, 0.25);
}

.confirmation[open] {
  animation: fenetre 200ms var(--courbe);
}

.confirmation::backdrop {
  background: rgba(0, 0, 0, 0.3);
}

.confirmation-corps {
  padding: 24px 24px 4px;
}

.confirmation h2 {
  color: var(--brun);
  font-size: 18px;
}

.confirmation p {
  margin: 8px 0 0;
  color: var(--texte-2);
}

.confirmation .actions {
  justify-content: flex-end;
  margin: 0;
  padding: 20px 24px 24px;
}

@media (max-width: 640px) {
  .confirmation {
    width: 100%;
    margin: auto 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: 16px 16px 0 0;
  }

  .confirmation .actions {
    flex-direction: column-reverse;
  }

  .confirmation .actions .bouton {
    width: 100%;
    min-height: 46px;
  }
}

/* ---------- Effets des boutons ---------- */

.bouton {
  position: relative;
  isolation: isolate;
  --lueur: rgba(105, 27, 5, 0.07);
}

.bouton.plein {
  --lueur: rgba(255, 255, 255, 0.3);
}

.bouton.clair {
  --lueur: rgba(255, 255, 255, 0.6);
}

.bouton::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(5.5rem circle at var(--lx, 50%) var(--ly, 50%), var(--lueur), transparent);
  opacity: 0;
  transition: opacity 220ms ease-out;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .bouton:hover:not(:disabled)::before {
    opacity: 1;
  }
}

.bouton:active:not(:disabled) {
  transform: scale(0.97);
}

.bouton.plein.danger {
  background: var(--rouge);
}

.bouton.plein.danger:hover:not(:disabled) {
  background: #a82217;
  color: #fff;
}

.eclat {
  position: fixed;
  z-index: 2147483647;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke: var(--orange);
  stroke-width: 3;
  stroke-linecap: round;
}

.eclat line {
  stroke-dasharray: 0.55 2;
  animation: eclat 420ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes eclat {
  from {
    stroke-dashoffset: 0.4;
    opacity: 1;
  }
  55% {
    opacity: 1;
  }
  to {
    stroke-dashoffset: -1;
    opacity: 0;
  }
}

/* ---------- Petits écrans ---------- */

@media (max-width: 640px) {
  h1 {
    font-size: 26px;
  }

  .page {
    padding-top: 24px;
  }

  .indicateurs {
    grid-template-columns: 1fr;
  }

  .barre-email,
  .barre-compte .bouton span {
    display: none;
  }

  .groupe-tete {
    flex-direction: column;
    padding: 18px 16px 14px;
  }

  .avis,
  .groupe > .formulaire {
    padding: 16px;
  }

  .ligne {
    padding: 14px 16px;
  }

  .etat {
    margin-left: 0;
  }

  .etroit {
    width: 100%;
  }

  .actions .bouton {
    flex: 1 1 auto;
  }

  .carte-seule {
    padding: 26px 20px;
  }
}

/* ---------- Pages publiques : accueil et confidentialité ---------- */

.vitrine .barre {
  padding: 20px max(20px, calc((100% - 1080px) / 2));
}

.vitrine-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vitrine-nav .bouton {
  white-space: nowrap;
}

.vitrine-principal {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 72px;
}

.vitrine h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
}

.surtitre {
  margin: 0 0 14px;
  color: var(--texte-2);
  font-size: 14px;
  font-weight: 500;
}

.bouton.grand {
  min-height: 46px;
  padding: 10px 20px;
}

/* Accueil : le message à gauche, l'espace tel qu'il est à droite. */
.heros {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding: 32px 0 72px;
}

.heros h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.heros-intro {
  max-width: 34em;
  margin: 18px 0 0;
  color: var(--texte-2);
  font-size: 17px;
}

.heros-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.apercu {
  margin: 0;
}

.apercu-cadre {
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(105, 27, 5, 0.06), 0 18px 48px rgba(105, 27, 5, 0.1);
  pointer-events: none;
  user-select: none;
}

.apercu-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--trait);
}

.apercu-titre {
  color: var(--brun);
  font-weight: 600;
}

.apercu-connecte {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vert);
  font-size: 13px;
  font-weight: 500;
}

.apercu-connecte .icone {
  width: 15px;
  height: 15px;
}

.apercu-avis {
  padding: 18px 20px;
}

.apercu-avis + .apercu-avis {
  border-top: 1px solid var(--trait);
}

.apercu-texte {
  margin: 8px 0 14px;
}

.apercu-proposition {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--champ);
}

.apercu-proposition p {
  margin: 0;
}

.apercu-proposition .apercu-etiquette {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
}

.apercu-etiquette .icone {
  width: 15px;
  height: 15px;
}

.apercu-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.apercu-actions .bouton {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 14px;
}

.apercu-actions .icone {
  width: 15px;
  height: 15px;
}

.apercu-suivant {
  background: var(--survol);
}

.apercu figcaption {
  margin-top: 12px;
  color: var(--texte-2);
  font-size: 13px;
  text-align: center;
}

/* Sections de l'accueil. */
.vitrine-section {
  padding: 56px 0;
}

.vitrine-section > h2,
.engagements h2 {
  color: var(--brun);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.fonctions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.fonction {
  padding: 24px;
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: var(--ombre);
}

.fonction p {
  margin: 6px 0 0;
  color: var(--texte-2);
}

.pastille-icone {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #fff0eb;
  color: var(--orange-fonce);
}

.pastille-icone .icone {
  width: 20px;
  height: 20px;
}

.parcours-section {
  margin: 16px 0;
  padding: 40px;
  border-radius: 24px;
  background: var(--fond-2);
}

.parcours {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}

.parcours li {
  counter-increment: etape;
}

.parcours li::before {
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--brun);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.parcours p {
  margin: 6px 0 0;
  color: var(--texte-2);
}

.engagements {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  margin: 56px 0;
  padding: 40px;
  border-radius: 24px;
  background: var(--brun);
  color: #fff;
}

.engagements h2 {
  color: #fff;
}

.engagements-texte p {
  margin: 12px 0 20px;
  color: rgba(255, 255, 255, 0.78);
}

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s;
}

.lien-fleche:hover {
  text-decoration-color: currentColor;
}

.lien-fleche:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 4px;
}

.engagements-liste {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.engagements-liste li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.engagements-liste .icone {
  margin-top: 4px;
  color: var(--orange);
}

.editeur {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: 40px;
}

.editeur p {
  max-width: 36em;
  margin: 14px 0 0;
}

.coordonnees {
  padding: 24px;
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: var(--ombre);
}

.coordonnees dl {
  margin: 0 0 20px;
}

.coordonnees dl div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--trait);
}

.coordonnees dl div:first-child {
  padding-top: 0;
  border-top: 0;
}

.coordonnees dt {
  color: var(--texte-2);
  font-size: 14px;
}

.coordonnees dd {
  margin: 0;
  font-weight: 500;
}

.coordonnees dd a {
  text-decoration: none;
}

.coordonnees dd a:hover {
  color: var(--brun);
  text-decoration: underline;
}

.coordonnees .bouton {
  width: 100%;
}

/* Règles de confidentialité : une colonne de lecture. */
.legal {
  max-width: 760px;
  margin: 0 auto;
}

.legal-tete {
  padding: 24px 0 28px;
}

.legal-tete h1 {
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.maj {
  margin: 10px 0 0;
  color: var(--texte-2);
  font-size: 14px;
}

.essentiel {
  padding: 24px 28px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--ombre);
}

.essentiel h2 {
  color: var(--brun);
}

.essentiel ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.essentiel li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.essentiel .icone {
  margin-top: 4px;
  color: var(--vert);
}

.sommaire {
  margin: 32px 0 8px;
}

.sommaire ol {
  margin: 0;
  padding: 0 0 0 1.4em;
  columns: 2;
  column-gap: 32px;
  color: var(--texte-2);
  font-size: 14px;
}

.sommaire li {
  padding: 3px 0;
  break-inside: avoid;
}

.sommaire a {
  color: var(--texte);
  text-decoration: none;
}

.sommaire a:hover {
  color: var(--brun);
  text-decoration: underline;
}

.legal-section {
  padding: 28px 0 4px;
  scroll-margin-top: 16px;
}

.legal-section + .legal-section {
  border-top: 1px solid var(--trait);
}

.legal-section h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--brun);
}

.legal-numero {
  color: var(--texte-2);
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.legal-section p,
.legal-section ul,
.legal-section dl {
  margin: 12px 0 0;
}

.legal-section ul {
  padding-left: 1.2em;
}

.legal-section li + li {
  margin-top: 6px;
}

.legal-section a {
  color: var(--brun);
  text-underline-offset: 3px;
}

.legal code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--gris-doux);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

.liste-donnees div {
  padding: 12px 0;
  border-top: 1px solid var(--trait);
}

.liste-donnees div:first-child {
  padding-top: 4px;
  border-top: 0;
}

.liste-donnees dt {
  font-weight: 600;
}

.liste-donnees dd {
  margin: 2px 0 0;
}

.legal-section .durees {
  overflow: hidden;
  padding: 0;
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: var(--ombre);
  list-style: none;
}

.durees li {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  padding: 14px 18px;
}

.legal-section .durees li + li {
  margin-top: 0;
  border-top: 1px solid var(--trait);
}

.durees li span:first-child {
  font-weight: 500;
}

.durees li span:last-child {
  color: var(--texte-2);
}

.encadre {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--fond-2);
}

.legal-section.resume-anglais {
  margin-top: 32px;
  padding: 28px;
  border-top: 0;
  border-radius: 18px;
  background: var(--fond-2);
}

.resume-anglais .encadre {
  background: var(--surface);
}

mark.a-completer {
  padding: 1px 5px;
  border-radius: 4px;
  background: #fbd9cb;
  white-space: nowrap;
  color: var(--brun);
  font-weight: 500;
}

@media (max-width: 900px) {
  .heros,
  .engagements,
  .editeur {
    grid-template-columns: 1fr;
  }

  .heros {
    gap: 40px;
    padding: 16px 0 48px;
  }
}

@media (max-width: 640px) {
  .vitrine .barre {
    padding: 14px 16px;
  }

  .vitrine .mot-comm360 {
    width: 92px;
  }

  .vitrine-lien-legal {
    display: none;
  }

  .vitrine-principal {
    padding: 8px 16px 56px;
  }

  .heros-actions .bouton {
    flex: 1 1 auto;
  }

  .apercu-avis {
    padding: 16px;
  }

  .vitrine-section {
    padding: 40px 0;
  }

  .fonctions,
  .parcours {
    grid-template-columns: 1fr;
  }

  .parcours-section,
  .engagements {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .coordonnees dl div {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .essentiel,
  .legal-section.resume-anglais {
    padding: 20px;
  }

  .sommaire ol {
    columns: 1;
  }

  .durees li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }

  .compte-menu,
  .confirmation[open] {
    animation: none;
  }

  .bouton:active:not(:disabled) {
    transform: none;
  }
}
