/* =====================================================================
   METHODOLOGIE CSS
   ---------------------------------------------------------------------
   1. INTEGRATION DEPUIS LE FIGMA
      - On a d'abord extrait du Figma les valeurs recurrentes (couleurs,
        polices, espacements) et on les a mises dans des VARIABLES CSS
        (bloc :root plus bas). Avantage : une seule source de verite,
        changer une couleur la change partout.
      - Un seul fichier CSS, range par SECTIONS (Base, Palette, Header,
        Hero, Concept, Boutique, Profil, Back-office...). Chaque commentaire
        "===== X =====" marque une zone du site.
      - Nommage par COMPOSANT (proche BEM) : .product-card, .product-media,
        .product-foot... chaque classe = un bloc visuel du Figma. Le HTML
        reste lisible, le CSS ne se chevauche pas.

   2. RESPONSIVE (fluide d'abord, ruptures ensuite)
      - clamp(min, fluide, max) PARTOUT pour les tailles et marges : le
        contenu s'adapte en continu a la largeur, sans attendre un
        breakpoint. C'est ce qui garantit un bon rendu sur TOUTES les
        tailles (pas seulement aux points de rupture).
      - Grilles auto-adaptatives : repeat(auto-fit, minmax(...)) -> les
        cartes passent de plusieurs colonnes a une seule selon la place.
      - Les @media (max-width) ne servent qu'aux CHANGEMENTS DE STRUCTURE
        (ex : grille produit 3->2->1 colonnes, sidebar admin qui passe en
        barre, pastilles du calendrier qui deviennent des points sur petit
        ecran). Cibles testees : telephone, tablette, PC.

   3. POLICES : sous-ensemble en woff2 (leger) + preload dans le header
      pour eviter le flash de texte ; @font-face pour la typo manuscrite
      des Backrooms.
   ===================================================================== */

/* ===== Fonts ===== */
@font-face {
  font-family: "WDXL Lubrifont TC";
  src: url("../fonts/WDXLLubrifontTC-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "PostNoBills Jaffna";
  src: url("../fonts/PostNoBillsJaffna-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
/* Typo manuscrite de la zone Backrooms (la vraie police du Figma). */
@font-face {
  font-family: "Love Ya Like A Sister";
  src: url("../fonts/LoveYaLikeASister.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

/* =========================================================
   PALETTE  -  change une valeur ici = change tout le site
   ========================================================= */
:root {
  /* --- Fonds de sections --- */
  --fond-sombre: #2b3038;        /* header bas, video, points forts, contact */
  --fond-sombre-fonce: #21262d;  /* avis + champs de formulaire */
  --fond-creme: #f4f1e8;         /* hero, concept, reserver, faq, footer */
  --fond-header: #353b44;        /* haut du degrade du header */
  --fond-carte: #424a54;         /* cartes (points forts + avis) - gris clair pour contraste */

  /* --- Placeholders / surfaces images --- */
  --placeholder-image: #7f8896;  /* zones [IMG] */
  --placeholder-video: #e4e5df;  /* zone video */
  --placeholder-concept: #c9cac3;/* visuel concept */

  /* --- Texte --- */
  --texte-sombre: #2b3038;           /* texte sur fond clair */
  --texte-clair: #d9d9d9;            /* texte sur fond sombre */
  --texte-clair-fort: #eceef0;       /* texte clair accentue (cartes, boutons) */
  --texte-creme: #f4f0e6;            /* gros titres clairs sur fond sombre */
  --texte-nav: #cfd3da;              /* liens de navigation */
  --texte-secondaire-sombre: #4a505a;/* texte secondaire sur fond clair */
  --texte-secondaire-clair: #b7bcc4; /* texte secondaire sur fond sombre */
  --texte-discret-clair: #aeb4bd;    /* tagline, descriptions */
  --texte-discret: #6b7079;          /* texte discret / placeholders */
  --placeholder-texte: #7d838c;      /* texte des champs (placeholder) */
  --nav-user: #8d939c;               /* nom utilisateur connecte */
  --blanc: #ffffff;

  /* --- Accent (teal) --- */
  --accent: #2f9389;
  --accent-hover: #277a72;
  --survol-sombre: #3a414b;          /* hover boutons jour / tarif */

  /* --- Bordures --- */
  --bordure-sombre: #1f242b;         /* sous le header */
  --bordure-sur-sombre: #5a626c;     /* boutons outline sur fond sombre */
  --bordure-champ: #3a414b;          /* champs de formulaire */
  --bordure-claire: #b9bab3;         /* separateurs sur fond clair */
  --bordure-creme: #d8d4c6;          /* separateur footer */

  /* --- Etats --- */
  --etoile: #e8c14a;                 /* etoiles des avis */
  --statut-libre: #3fae62;           /* pastille disponible */
  --statut-complet: #d24b4b;         /* pastille complet */
}

/* ===== Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 18px; }

body {
  background: var(--fond-sombre);
  color: var(--texte-clair);
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}

img { display: block; max-width: 100%; height: auto; }

/* Zones de texte : on bride le redimensionnement a la verticale uniquement.
   Par defaut un <textarea> peut etre etire en largeur ET en hauteur, au point
   de deborder de la page : on coupe l'horizontal et on plafonne la hauteur. */
textarea {
  resize: vertical;
  min-height: 3.4em;
  max-height: 45vh;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:where(section)[id] { scroll-margin-top: 1.5rem; }

/* ===== Boutons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75em 1.5em;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--blanc); }
.btn-primary:hover, .btn-primary:focus { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--texte-clair); border-color: var(--bordure-sur-sombre); }
.btn-outline:hover, .btn-outline:focus { border-color: var(--texte-clair); color: var(--blanc); }
.btn-block { width: 100%; justify-content: center; }

/* ===== Header ===== */
.site-header {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(2.4rem, 4vw, 3.4rem) 1rem clamp(1.6rem, 2.5vw, 2.2rem);
  background: linear-gradient(180deg, var(--fond-header) 0%, var(--fond-sombre) 100%);
  border-bottom: 1px solid var(--bordure-sombre);
}
.site-header::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(360px, 38vw, 480px);
  height: clamp(170px, 18vw, 226px);
  background: url("../img/logo-clair.svg") no-repeat center / contain;
  opacity: 0.22;
  pointer-events: none;
}
.site-title {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-family: "WDXL Lubrifont TC", sans-serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 7.5vw, 6rem);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--texte-clair);
}
.site-title:hover, .site-title:focus { color: var(--blanc); }
.site-tagline {
  position: relative;
  margin-top: 0.5rem;
  font-size: clamp(0.8rem, 1.6vw, 1.15rem);
  letter-spacing: 0.32em;
  color: var(--texte-discret-clair);
}
.main-nav {
  position: relative;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.8rem, 6vw, 5rem);
}
.main-nav a {
  color: var(--texte-nav);
  text-decoration: none;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  letter-spacing: 0.12em;
  transition: color 0.15s ease;
}
.main-nav a:hover, .main-nav a:focus { color: var(--blanc); }
.main-nav .user-name { color: var(--nav-user); letter-spacing: 0.12em; }

/* ===== Hero ===== */
/* fond blanc creme ("blanc scientifique"), texte fonce */
.hero { background: var(--fond-creme); color: var(--texte-sombre); }
.hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 5vw, 3rem);
}
.badge {
  display: inline-block;
  border: 1px solid var(--texte-secondaire-sombre);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  padding: 0.35em 0.85em;
  margin-bottom: 1.4rem;
  border-radius: 2px;
}
.hero-title {
  /* meme typo que le header */
  font-family: "WDXL Lubrifont TC", sans-serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  line-height: 1;
  color: var(--texte-sombre);
}
.accent { color: var(--accent); }
.hero-text {
  max-width: 36rem;
  margin: 1.4rem 0 2rem;
  color: var(--texte-secondaire-sombre);
  line-height: 1.65;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .btn-outline { color: var(--texte-sombre); border-color: var(--texte-sombre); }
.hero .btn-outline:hover, .hero .btn-outline:focus { background: var(--texte-sombre); color: var(--fond-creme); }

/* ===== Vidéo ===== */
.video-section {
  background: var(--fond-sombre);
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 5vw, 3rem);
}
.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texte-discret);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.video-placeholder {
  max-width: 1320px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--placeholder-video);
  border-radius: 2px;
}
/* Cadre 16:9 responsive pour l'iframe YouTube : il garde toujours le bon ratio
   et l'iframe le remplit, quelle que soit la largeur (mobile -> PC). */
.video-ratio {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--placeholder-video);
  border-radius: 2px;
  overflow: hidden;
}
.video-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-mark { margin: 1.2rem auto 0; opacity: 0.5; }

/* ===== Concept ===== */
.concept { background: var(--fond-creme); color: var(--texte-sombre); }
.concept-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}
.concept-media {
  aspect-ratio: 1 / 1;
  background: var(--placeholder-concept) url("../img/backrooms-chronologie.webp") no-repeat center / cover;
  border-radius: 2px;
}
.concept-text h2 {
  font-family: "PostNoBills Jaffna", sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  margin-bottom: 1.2rem;
}
.concept-list { margin-bottom: 1.8rem; }
.concept-list dt { font-weight: 700; }
.concept-list dd { margin: 0 0 0.9rem; color: var(--texte-secondaire-sombre); }

/* ===== Points forts ===== */
.features { background: var(--fond-sombre); }
.card-grid {
  list-style: none;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 3vw, 1.8rem);
}
.feature-card {
  background: var(--fond-carte);
  padding: 1.4rem;
  clip-path: polygon(0 20px, 20px 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
/* Image de carte : occupe toute la largeur, recadree proprement (object-fit). */
.card-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--placeholder-image);
  border-radius: 2px;
  margin-bottom: 1.1rem;
}
.card-tag {
  font-family: "PostNoBills Jaffna", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--texte-clair-fort);
  margin-bottom: 0.5rem;
}
.feature-card > p:last-child { color: var(--texte-discret-clair); font-size: 0.95rem; line-height: 1.5; }

/* ===== Réserver ===== */
.reserver { background: var(--fond-creme); color: var(--texte-sombre); text-align: center; }
.reserver-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 5vw, 3rem);
}
.reserver-title {
  font-family: "PostNoBills Jaffna", sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
}
.reserver-sub { color: var(--texte-secondaire-sombre); margin-bottom: 2rem; letter-spacing: 0.03em; }
.field-label { font-weight: 700; margin: 1.6rem 0 1rem; }
.dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; display: inline-block; }
.dot-free { background: var(--statut-libre); }
.dot-full { background: var(--statut-complet); }
.legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--texte-secondaire-sombre);
  font-size: 0.9rem;
  margin-bottom: 1.6rem;
}
.reserver-sep { border: none; border-top: 1px solid var(--bordure-claire); margin: 2rem 0; }

/* ===== Avis ===== */
.reviews { background: var(--fond-sombre-fonce); }
.reviews-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 5vw, 3rem);
}
.reviews-title {
  font-family: "PostNoBills Jaffna", sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  margin-bottom: 1.8rem;
}
.star { color: var(--accent); }
.review-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.review { background: var(--fond-carte); padding: 1.4rem; margin: 0; border-radius: 2px; }
.stars { color: var(--etoile); margin-bottom: 0.7rem; letter-spacing: 0.12em; }
.review blockquote { margin: 0; }
.review blockquote p { color: var(--texte-secondaire-clair); font-size: 0.95rem; line-height: 1.55; }
.review figcaption { margin-top: 0.6rem; color: var(--texte-discret-clair); font-size: 0.85rem; }

/* Meilleurs scores (accueil) */
.score-list { list-style: none; max-width: 520px; margin: 0 auto; counter-reset: rang; }
.score-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0.2rem;
  border-bottom: 1px solid var(--fond-carte);
}
.score-list li::before { counter-increment: rang; content: counter(rang) "."; color: var(--texte-discret-clair); margin-right: 0.6rem; }
.score-equipe { flex: 1; color: var(--texte-clair-fort); font-weight: 700; }
.score-valeur { font-family: "PostNoBills Jaffna", sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--accent); }

/* ===== FAQ ===== */
.faq { background: var(--fond-creme); color: var(--texte-sombre); }
.faq-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 5vw, 3rem);
}
.faq-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.faq-head h2 {
  font-family: "PostNoBills Jaffna", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}
.faq-aside { color: var(--texte-discret); }
.faq-item { border-top: 1px solid var(--bordure-claire); }
.faq-item:last-of-type { border-bottom: 1px solid var(--bordure-claire); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 700;
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--texte-secondaire-sombre); }
.faq-item[open] summary::after { content: "×"; }
.faq-item > p { padding: 0 0 1.2rem; color: var(--texte-secondaire-sombre); line-height: 1.6; max-width: 62ch; }

/* ===== Contact ===== */
.contact { background: var(--fond-sombre); }
.contact-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 5vw, 3rem);
  text-align: center;
}
.contact-media {
  aspect-ratio: 3 / 1;
  background: var(--fond-carte) url("../img/logo-clair.svg") no-repeat center / 120px;
  border-radius: 2px;
  margin-bottom: 1.6rem;
}
.contact-title {
  font-family: "PostNoBills Jaffna", sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  color: var(--texte-creme);
  margin-bottom: 1.8rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.contact-form input, .contact-form textarea,
.auth-form input {
  width: 100%;
  background: var(--fond-sombre-fonce);
  border: 1px solid var(--bordure-champ);
  color: var(--texte-clair-fort);
  padding: 1rem 1.1rem;
  font-family: inherit;
  font-size: 1rem;
  border-radius: 2px;
}
.contact-form input::placeholder, .contact-form textarea::placeholder,
.auth-form input::placeholder { color: var(--placeholder-texte); }
.contact-form input:focus, .contact-form textarea:focus,
.auth-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.contact-form .btn-block { margin-top: 0.5rem; }

/* ===== Footer ===== */
.site-footer { background: var(--fond-creme); color: var(--texte-secondaire-sombre); }
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 2rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "WDXL Lubrifont TC", sans-serif;
  font-size: 1.5rem;
  color: var(--texte-sombre);
  margin-bottom: 1rem;
}
.footer-logo-img { opacity: 0.85; width: 52px; height: auto; }
.footer-desc { font-size: 0.98rem; line-height: 1.6; max-width: 36ch; }
.footer-title {
  font-family: "PostNoBills Jaffna", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--texte-sombre);
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--texte-secondaire-sombre); text-decoration: none; font-size: 0.98rem; }
.footer-col a:hover, .footer-col a:focus { color: var(--texte-sombre); }
.social-list { display: flex; gap: 0.8rem; }
.social-list a { color: var(--texte-secondaire-sombre); display: inline-flex; }
.social-list a:hover, .social-list a:focus { color: var(--accent); }
.footer-copyright {
  text-align: center;
  background: var(--fond-sombre-fonce);
  padding: 1.2rem 1rem;
  font-size: 0.8rem;
  color: var(--texte-discret-clair);
}

/* ===== Page Info Pratiques ===== */
.info-block { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.info-light { background: var(--fond-creme); color: var(--texte-sombre); }
.info-dark { background: var(--fond-sombre); color: var(--texte-clair); }
.info-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: clamp(1rem, 5vw, 3rem);
}
.info-center { text-align: center; }
.section-title {
  font-family: "PostNoBills Jaffna", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 1.8rem;
}
.info-dark .section-title { color: var(--texte-creme); }

/* Localisation */
.loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: stretch;
}
.loc-map {
  min-height: 260px;
  overflow: hidden;            /* coupe les coins de l'iframe */
  background: var(--placeholder-concept);
  border-radius: 2px;
}
/* L'iframe Google Maps remplit toute la zone. */
.loc-map iframe { display: block; width: 100%; height: 100%; min-height: 260px; border: 0; }
.loc-card {
  font-style: normal;
  border: 2px solid var(--fond-sombre);
  border-radius: 2px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.loc-card-title { font-weight: 800; font-size: 1.15rem; }
.loc-card > p { color: var(--texte-secondaire-sombre); }
.loc-contact { margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.4rem; }
.loc-contact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--bordure-claire);
}
.loc-contact-row dt { font-weight: 700; }
.loc-contact-row dd { margin: 0; }
.loc-contact-row a { color: var(--accent); text-decoration: none; font-weight: 700; }
.loc-contact-row a:hover, .loc-contact-row a:focus { text-decoration: underline; }

/* Déroulé (timeline) */
.steps-list { list-style: none; position: relative; max-width: 760px; }
.steps-list::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: var(--bordure-sur-sombre);
}
.step { position: relative; padding-left: 2.6rem; padding-bottom: 2.2rem; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--texte-clair-fort);
  transform: rotate(45deg);
}
.step-title {
  font-family: "PostNoBills Jaffna", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--texte-clair-fort);
  margin-bottom: 0.3rem;
}
.step > p { color: var(--texte-secondaire-clair); }

/* Conditions (stats) */
.facts-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1rem, 3vw, 1.8rem);
}
.stat-card {
  background: var(--fond-sombre);
  color: var(--texte-clair);
  border-radius: 2px;
  padding: clamp(1.6rem, 4vw, 2.6rem) 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.stat-num {
  font-family: "PostNoBills Jaffna", sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--texte-creme);
  line-height: 1;
}
.stat-label { font-size: 0.9rem; color: var(--texte-secondaire-clair); letter-spacing: 0.03em; }

/* Comment venir */
.come-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 3vw, 1.8rem);
  text-align: left;
}
.come-card {
  background: var(--fond-carte);
  border-radius: 2px;
  padding: clamp(1.4rem, 3vw, 2rem);
}
.come-card-title {
  font-family: "PostNoBills Jaffna", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--texte-clair-fort);
  margin-bottom: 0.6rem;
}
.come-card > p { color: var(--texte-secondaire-clair); line-height: 1.55; }

/* CTA */
.cta-text {
  max-width: 50ch;
  margin: 0 auto 1.8rem;
  color: var(--texte-secondaire-sombre);
  line-height: 1.65;
}
.cta-btns { justify-content: center; }
.cta .btn-outline { color: var(--texte-sombre); border-color: var(--texte-sombre); }
.cta .btn-outline:hover, .cta .btn-outline:focus { background: var(--texte-sombre); color: var(--fond-creme); }

/* ===== Mentions légales ===== */
.legal { max-width: 800px; margin: 0 auto; }
.legal-section + .legal-section { margin-top: 2.2rem; }
.legal-section h2 {
  font-family: "PostNoBills Jaffna", sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  color: var(--texte-sombre);
  margin-bottom: 0.7rem;
}
.legal-section p { color: var(--texte-secondaire-sombre); line-height: 1.65; }
.legal-section p + p { margin-top: 0.7rem; }
.legal-section a { color: var(--accent); text-decoration: none; }
.legal-section a:hover, .legal-section a:focus { text-decoration: underline; }
.legal-updated {
  margin-top: 2.6rem;
  font-size: 0.85rem;
  color: var(--texte-discret);
}

/* ===== Espace connecte / pages applicatives / admin =====
   Reutilise la section .auth (fond sombre, titre creme, champs sombres). */
.auth-inner--full { max-width: 1100px; }
.auth-inner--wide, .auth-inner--full { text-align: left; }

.auth h2 {
  font-family: "PostNoBills Jaffna", sans-serif;
  font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--texte-creme);
  margin: 1.8rem 0 0.9rem;
}
.auth p, .auth li { color: var(--texte-secondaire-clair); }
.auth a { color: var(--accent); text-decoration: none; }
.auth a:hover, .auth a:focus { text-decoration: underline; }
.auth ul { padding-left: 1.2rem; }
.auth ul.no-puces { list-style: none; padding-left: 0; }

/* Champs (toutes les pages auth, pas seulement .auth-form) */
.auth input[type="text"],
.auth input[type="email"],
.auth input[type="password"],
.auth input[type="tel"],
.auth input[type="number"],
.auth input[type="datetime-local"],
.auth input[type="file"],
.auth textarea,
.auth select {
  display: block;
  width: 100%;
  background: var(--fond-sombre-fonce);
  border: 1px solid var(--bordure-champ);
  color: var(--texte-clair-fort);
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth input::placeholder, .auth textarea::placeholder { color: var(--texte-discret); }
.auth input:focus, .auth textarea:focus, .auth select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 147, 137, 0.25);
  outline: none;
}
.auth label { color: var(--texte-clair); }

/* Boutons par defaut dans les pages auth (teal) */
.auth button {
  background: var(--accent);
  color: var(--blanc);
  border: none;
  border-radius: 2px;
  padding: 0.55em 1.1em;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.auth button:hover, .auth button:focus { background: var(--accent-hover); }

/* Tableaux */
/* Tableau admin : lignes separees par un simple filet (plus aere qu'une grille
   pleine), en-tete en petites capitales, survol de ligne discret. */
.app-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: var(--fond-carte);
  border: 1px solid var(--bordure-champ);
  border-radius: 8px;
  overflow: hidden;
}
.app-table th, .app-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--bordure-champ);
}
.app-table th {
  background: var(--fond-sombre-fonce);
  color: var(--texte-secondaire-clair);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.app-table tbody tr:last-child td, .app-table tr:last-child td { border-bottom: none; }
.app-table tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
.app-table img { display: block; border-radius: 4px; }

/* Pastille de statut/type dans les tableaux : petit rectangle teinte, leger. */
.tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.tag-ok   { color: var(--statut-libre);   background: rgba(63, 174, 98, 0.16); }
.tag-no   { color: var(--statut-complet); background: rgba(210, 75, 75, 0.16); }
.tag-info { color: var(--accent);         background: rgba(47, 147, 137, 0.16); }
.tag-warn { color: #d6a24b;               background: rgba(214, 162, 75, 0.18); }

/* Carte (bloc d'info) */
.app-card {
  background: var(--fond-carte);
  border-radius: 4px;
  padding: 1.2rem 1.4rem;
  margin: 1rem 0;
}
.app-card h2 { margin-top: 0; }

/* Boutons d'action alignes */
.app-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.app-actions form { margin: 0; }

/* ===== 2e ligne de navigation (utilisateur connecte / auth) ===== */
.user-nav {
  position: relative;
  margin: 1.1rem auto 0;
  padding-top: 1.1rem;
  max-width: 920px;
  border-top: 1px solid var(--bordure-sombre);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 4vw, 2.6rem);
}
.user-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--texte-discret-clair);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: color 0.15s ease;
}
.user-nav a:hover, .user-nav a:focus { color: var(--blanc); }
/* Icones de la user-nav : meme taille, en currentColor (suivent la couleur du lien). */
.nav-ico { width: 1.1em; height: 1.1em; flex-shrink: 0; }
/* Icones fournies (groupe / deconnexion) : SVG blanc utilise comme masque, on le
   peint en currentColor pour qu'il soit visible et qu'il change au survol. */
.nav-ico-mask {
  display: inline-block;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.user-nav .nav-hello { color: var(--accent); font-weight: 700; letter-spacing: 0.04em; }
.user-nav .nav-admin { color: var(--accent); }

/* ===== Espace membre (pages connecte : groupe, profil, panier) ===== */
.space { background: var(--fond-sombre); color: var(--texte-clair); }
.space-head {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 5vw, 3rem) 0;
}
.space-title {
  font-family: "PostNoBills Jaffna", sans-serif;
  font-weight: 800;
  color: var(--texte-creme);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}
.space-sub { color: var(--texte-secondaire-clair); margin-top: 0.5rem; }
.space-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 2.4rem) clamp(1rem, 5vw, 3rem) clamp(3rem, 6vw, 4.5rem);
}
.space-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
  align-items: start;
}
.space-card {
  background: var(--fond-carte);
  border: 1px solid var(--bordure-champ);
  border-radius: 10px;
  padding: 1.5rem;
}
.space-card h2 {
  font-family: "PostNoBills Jaffna", sans-serif;
  font-weight: 800;
  color: var(--texte-creme);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}
.space-card p { color: var(--texte-secondaire-clair); }
.space-card a { color: var(--accent); text-decoration: none; }
.space-card a:hover { text-decoration: underline; }
.space-list { list-style: none; padding: 0; margin: 0; }
.space-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--fond-sombre-fonce); color: var(--texte-clair); }
.space-list li:last-child { border-bottom: none; }
.space-data { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; }
.space-data dt { color: var(--texte-discret-clair); }
.space-data dd { margin: 0; color: var(--texte-clair-fort); }
.space-badge { color: var(--accent); font-family: "PostNoBills Jaffna", sans-serif; font-weight: 800; font-size: 1.6rem; }

/* Champs et boutons dans l'espace membre */
.space input[type="text"], .space input[type="email"], .space input[type="password"],
.space input[type="tel"], .space input[type="number"], .space input[type="datetime-local"],
.space textarea, .space select {
  display: block;
  width: 100%;
  background: var(--fond-sombre-fonce);
  border: 1px solid var(--bordure-champ);
  color: var(--texte-clair-fort);
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.space input::placeholder, .space textarea::placeholder { color: var(--texte-discret); }
.space input:focus, .space textarea:focus, .space select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 147, 137, 0.25);
  outline: none;
}
.space label { color: var(--texte-clair); display: block; margin-bottom: 0.35rem; font-size: 0.95rem; }
.space-inline { display: flex; flex-direction: column; gap: 0.6rem; align-items: stretch; }
.space-inline .btn { align-self: flex-start; }

/* ===== Back-office (layout sidebar) ===== */
.admin-body { margin: 0; }
.admin-shell { display: flex; min-height: 100vh; }

.admin-side {
  width: 250px;
  flex-shrink: 0;
  background: var(--fond-sombre-fonce);
  border-right: 1px solid var(--bordure-sombre);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-brand {
  font-family: "PostNoBills Jaffna", sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--texte-creme);
  padding: 0 1.5rem 1.4rem;
}
.admin-nav { display: flex; flex-direction: column; }
/* Lien de navigation = icone + libelle alignes. L'icone est un peu attenuee
   et reprend la couleur accent quand le lien est actif ou survole. */
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--texte-clair);
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.admin-nav a svg { flex-shrink: 0; color: var(--texte-discret-clair); transition: color 0.15s ease; }
.admin-nav a:hover, .admin-nav a:focus { background: rgba(255, 255, 255, 0.05); color: var(--blanc); }
.admin-nav a:hover svg, .admin-nav a:focus svg { color: var(--texte-clair); }
.admin-nav a.is-active {
  background: rgba(47, 147, 137, 0.16);
  border-left-color: var(--accent);
  color: var(--blanc);
}
.admin-nav a.is-active svg { color: var(--accent); }
/* Liens du bas (voir le site / deconnexion) : meme alignement icone + texte. */
.admin-side-bottom a { display: flex; align-items: center; gap: 0.6rem; }
.admin-side-bottom a svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-side-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.5rem 0;
  border-top: 1px solid var(--bordure-sombre);
}
.admin-side-bottom a { color: var(--texte-discret-clair); text-decoration: none; font-size: 0.9rem; }
.admin-side-bottom a:hover { color: var(--blanc); }

.admin-main {
  flex: 1;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--fond-sombre);
}
.admin-main h1 {
  font-family: "PostNoBills Jaffna", sans-serif;
  font-weight: 800;
  color: var(--texte-creme);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1.5rem;
}
.admin-main h2 {
  font-family: "PostNoBills Jaffna", sans-serif;
  font-weight: 800;
  color: var(--texte-creme);
  font-size: 1.3rem;
  margin: 0 0 1rem;
}
.admin-main a { color: var(--accent); }
.admin-main input[type="text"],
.admin-main input[type="email"],
.admin-main input[type="password"],
.admin-main input[type="tel"],
.admin-main input[type="number"],
.admin-main input[type="datetime-local"],
.admin-main input[type="file"],
.admin-main textarea,
.admin-main select {
  display: block;
  width: 100%;
  max-width: 420px;
  background: var(--fond-sombre-fonce);
  border: 1px solid var(--bordure-champ);
  color: var(--texte-clair-fort);
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.admin-main input::placeholder, .admin-main textarea::placeholder { color: var(--texte-discret); }
.admin-main input:focus, .admin-main textarea:focus, .admin-main select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 147, 137, 0.25);
  outline: none;
}
/* dans une table, les champs restent compacts */
.app-table input, .app-table select { max-width: 220px; }
.app-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.app-actions input { width: auto; }
.admin-main button {
  background: var(--accent);
  color: var(--blanc);
  border: none;
  border-radius: 4px;
  padding: 0.55em 1.1em;
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.admin-main button:hover, .admin-main button:focus { background: var(--accent-hover); }

/* Cartes de statistiques (dashboard) */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}
/* Carte de stat = icone teintee a gauche + nombre/libelle a droite.
   Bordure tres legerement arrondie (8px) pour rester dans la D.A du site
   (les boutons sont a 6px, les cartes a 10px) : pas de coins trop ronds. */
.stat-box {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--fond-carte);
  border: 1px solid var(--bordure-champ);
  border-radius: 8px;
  padding: 1.3rem 1.4rem;
}
/* Le petit carre colore qui porte l'icone. La teinte vient des classes ton-*. */
.stat-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 8px;
  flex-shrink: 0;
}
.stat-ico svg { width: 1.5rem; height: 1.5rem; }
/* Teintes : fond translucide + icone pleine couleur. On reste sur la palette
   du site (teal accent, vert/rouge des pastilles) + un ambre discret. */
.ton-teal  { background: rgba(47, 147, 137, 0.16); color: var(--accent); }
.ton-vert  { background: rgba(63, 174, 98, 0.16);  color: var(--statut-libre); }
.ton-ambre { background: rgba(214, 162, 75, 0.18); color: #d6a24b; }
.ton-rouge { background: rgba(210, 75, 75, 0.16);  color: var(--statut-complet); }
.stat-info { min-width: 0; }
.stat-box .num {
  font-family: "PostNoBills Jaffna", sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--blanc);
}
.stat-box .lab { color: var(--texte-secondaire-clair); margin-top: 0.3rem; font-size: 0.95rem; }

/* Grille de cartes admin (listes en cartes si besoin) */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

@media (max-width: 760px) {
  .admin-shell { flex-direction: column; }
  .admin-side {
    width: auto;
    height: auto;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem;
  }
  .admin-brand { padding: 0 1rem 0 0; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-nav a { padding: 0.5rem 0.8rem; border-left: none; border-bottom: 3px solid transparent; }
  .admin-nav a.is-active { border-left: none; border-bottom-color: var(--accent); }
  .admin-side-bottom { margin: 0 0 0 auto; border: none; padding: 0; flex-direction: row; gap: 1rem; }
}

/* ===== Correctifs boutons-liens (texte toujours lisible) ===== */
a.btn-primary, a.btn-primary:hover, a.btn-primary:focus { color: var(--blanc); text-decoration: none; }
.space-card a.btn, .space a.btn, .auth a.btn { color: var(--blanc); }
.space-card a.btn:hover, .space a.btn:hover, .auth a.btn:hover { color: var(--blanc); text-decoration: none; }
.space-card a.btn-outline, .space a.btn-outline, .auth a.btn-outline { color: var(--texte-clair); }

/* ===== Code d'invitation ===== */
.invite-box { display: flex; flex-direction: column; gap: 0.8rem; align-items: stretch; }
.invite-code {
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-align: center;
  background: var(--fond-sombre-fonce);
  border: 1px dashed var(--bordure-sur-sombre);
  color: var(--texte-clair-fort);
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  word-break: break-all;
}
.invite-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.copy-btn.copied { background: var(--statut-libre); }

/* ===== Page profil ===== */
.profil-head { display: flex; align-items: center; gap: 1.2rem; }
.profil-avatar {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-family: "PostNoBills Jaffna", sans-serif; font-weight: 800;
  font-size: 1.6rem; letter-spacing: 0.04em;
}
.profil-equipe-nom { margin-bottom: 0.6rem; }
.profil-score { display: flex; align-items: baseline; gap: 0.7rem; margin: 0.4rem 0 1.4rem; }
.profil-score-val { font-family: "PostNoBills Jaffna", sans-serif; font-weight: 800; font-size: 3rem; line-height: 1; color: var(--accent); }
.profil-score-lab { color: var(--texte-secondaire-clair); }
.profil-partage { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0.5rem 0; }
/* Boutons de partage : icone de marque + libelle, couleur de marque au survol. */
.partage-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6em 1.1em;
  border: 1px solid var(--bordure-sur-sombre);
  border-radius: 8px;
  background: var(--fond-sombre-fonce);
  color: var(--texte-clair);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.partage-btn svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.partage-btn:hover, .partage-btn:focus { transform: translateY(-2px); }
.part-x:hover, .part-x:focus { background: #000; border-color: #000; color: #fff; }
.part-tiktok:hover, .part-tiktok:focus { background: #000; border-color: #000; color: #25f4ee; }
.part-insta:hover, .part-insta:focus {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
  color: #fff;
}
/* Retour visuel apres copie. */
.partage-btn.est-copie { border-color: var(--statut-libre); color: var(--statut-libre); transform: none; }
.profil-note { color: var(--texte-discret-clair); font-size: 0.85rem; margin-top: 0.5rem; }
.profil-actions { margin-top: 1.4rem; }

/* Formulaires admin sur plusieurs colonnes + messages */
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1.2rem; }
.form-row p { margin: 0 0 0.9rem; }
.admin-message {
  background: var(--fond-carte);
  border-left: 3px solid var(--accent);
  padding: 0.7rem 1rem;
  border-radius: 4px;
  color: var(--texte-clair-fort);
  margin-bottom: 1.2rem;
}
/* Bloc d'import du modele 3D dans le formulaire produit. */
.form-modele3d { border: 1px solid var(--bordure-champ); border-radius: 8px; padding: 1rem 1.2rem; margin: 0 0 1rem; }
.form-modele3d legend { padding: 0 0.4rem; font-weight: 700; color: var(--texte-clair-fort); }
.admin-main input[type="color"] { width: 64px; height: 40px; padding: 2px; border: 1px solid var(--bordure-champ); border-radius: 6px; background: var(--fond-sombre-fonce); cursor: pointer; }
/* Apercu 3D dans le back-office. */
.preview-3d { width: 100%; max-width: 320px; height: 320px; border-radius: 8px; margin-top: 0.6rem; }

/* ===========================================================
   PAGE CONCEPT : dossier officiel (haut) puis immersion (bas)
   =========================================================== */
:root { --ochre: #e0a516; --ochre-clair: #f3d877; --ochre-bord: #b9871a; --back-encre: #1d1a12; }

/* --- Partie dossier (D.A du site) --- */
.concept-doc { background: var(--fond-creme); color: var(--texte-sombre); }
.doc-inner { max-width: 840px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 5vw, 3rem); }
.doc-title { font-family: "PostNoBills Jaffna", sans-serif; font-weight: 800; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; }
.doc-badge { margin: 0.7rem 0 1rem; color: var(--texte-secondaire-sombre); }
.doc-badge .accent { color: var(--accent); font-weight: 700; }
.doc-rule { border: none; border-top: 2px solid var(--texte-sombre); margin: 1rem 0 2.6rem; }
.doc-step { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; margin-bottom: 2.6rem; }
.doc-step-num { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.doc-step-num .num { font-family: "PostNoBills Jaffna", sans-serif; font-weight: 800; font-size: 2.4rem; color: var(--accent); line-height: 1; }
.doc-step-label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--texte-discret); }
.doc-step-body h2 { font-family: "PostNoBills Jaffna", sans-serif; font-weight: 800; font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 0.8rem; }
.doc-step-body p { color: var(--texte-secondaire-sombre); line-height: 1.65; margin-bottom: 0.8rem; }
.doc-table { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; border: 1px solid var(--bordure-claire); padding: 1.3rem; margin: 0.5rem 0 2rem; }
.doc-col h3 { font-size: 1rem; margin-bottom: 0.9rem; }
.doc-col ul { list-style: none; padding: 0; margin: 0; }
.doc-col li { position: relative; padding-left: 1.5rem; margin-bottom: 0.7rem; color: var(--texte-secondaire-sombre); }
.doc-col li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 0.7rem; height: 0.7rem; background: var(--texte-sombre); }
.doc-signal { font-family: ui-monospace, "Courier New", monospace; font-size: 0.8rem; color: var(--texte-discret); text-align: center; margin-top: 1.6rem; }
.doc-stamp { font-family: "PostNoBills Jaffna", sans-serif; font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.6rem); text-align: center; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.6rem; }

/* --- Bande de transition creme -> ocre, pilotee par le defilement ---
   La bande est haute (on a de la place pour "descendre"). Le JS met a jour
   deux variables au scroll : --p = progres de 0 (en haut, encore creme) a 1
   (en bas, ocre plein), et --g = intensite du glitch (une cloche qui culmine
   au milieu de la traversee). On ne calcule rien d'autre cote JS : c'est le
   CSS qui dessine, donc c'est fluide. */
.concept-transition {
  position: relative;
  height: 92vh;                  /* plus de course = descente plus longue */
  overflow: hidden;
  background: var(--ochre);      /* le jaune se revele quand le voile part */
  isolation: isolate;
  --p: 0;
  --g: 0;
}
/* Le couloir des Backrooms emerge en fondu au fur et a mesure qu'on descend
   (immersion : on a vraiment l'impression d'arriver dans l'endroit). Teinte
   chaude pour se fondre dans l'ocre, et leger zoom pendant la descente. On le
   plafonne a 0.55 d'opacite pour qu'il reste fantomatique et finisse sur l'ocre. */
.trans-couloir {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../img/backrooms-chronologie.webp") center / cover no-repeat;
  filter: sepia(0.45) saturate(1.5) brightness(0.92);
  opacity: calc(var(--p) * 0.55);
  transform: scale(calc(1.12 - var(--p) * 0.12));
  pointer-events: none;
}
/* Couche glitch + vignette : aberration chromatique, scanlines, et un
   assombrissement des bords facon tunnel. Intensite --g (forte au milieu, nulle
   aux bords), avec une legere secousse 2D. Reste volontairement doux. */
.concept-transition::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: var(--g);
  pointer-events: none;
  mix-blend-mode: multiply;
  background:
    radial-gradient(125% 95% at 50% 50%, transparent 52%, rgba(0, 0, 0, 0.5)),
    linear-gradient(90deg, rgba(54, 209, 196, 0.16), transparent 38%, transparent 62%, rgba(255, 59, 212, 0.16)),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.12) 3px 4px);
  animation: trans-secousse 0.16s steps(2) infinite;
}
/* Voile creme : opaque en haut (continuite avec le dossier blanc), il
   disparait au fur et a mesure qu'on descend (et revient si on remonte).
   z-index le plus haut : il recouvre le couloir et le glitch tant qu'on n'a
   pas commence a descendre. */
.concept-transition::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--fond-creme);
  opacity: calc(1 - var(--p));
  pointer-events: none;
}
@keyframes trans-secousse {
  0%   { transform: translate(-2px, 0); }
  50%  { transform: translate(1px, 1px); }
  100% { transform: translate(2px, -1px); }
}
@media (prefers-reduced-motion: reduce) {
  .concept-transition::after { animation: none; }
  .trans-couloir { transform: none; }
}

/* --- Partie immersion Backrooms (ocre, manuscrit) --- */
.backrooms { background: var(--ochre); color: var(--back-encre); font-family: "Love Ya Like A Sister", "Comic Sans MS", cursive; overflow: hidden; }
.back-inner { max-width: 840px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 5vw, 3rem) clamp(3rem, 6vw, 4.5rem); }
.back-hero { text-align: center; font-family: inherit; font-weight: 400; font-size: clamp(2rem, 6vw, 3.4rem); margin-bottom: 2.6rem; }
.back-step { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; margin-bottom: 2.6rem; }
.back-num { font-size: 2.2rem; font-weight: 700; color: rgba(0, 0, 0, 0.28); }
.back-body h2 { font-family: inherit; font-weight: 400; font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 0.8rem; }
.back-body p { line-height: 1.7; margin-bottom: 0.8rem; }
.back-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.back-card { background: var(--ochre-clair); border: 1px solid var(--ochre-bord); padding: 1rem; }
.back-card h3 { font-family: inherit; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.4rem; }
.back-card p { font-size: 0.95rem; line-height: 1.5; }
/* Etape 03 : le texte est un bloc normal (aligne comme les autres etapes). La
   video est POSEE par-dessus, a gauche, en position absolue (z-index) : elle
   deborde dans la gouttiere gauche et ne deplace donc pas le texte. */
.back-body--video { position: relative; }
.team-frame {
  position: absolute;
  z-index: 4;
  top: 75%;
  right: 64%;
  transform: translateY(-50%) rotate(-5deg);
  width: clamp(210px, 30vw, 340px);
  aspect-ratio: 3 / 2;
  padding: 8px;
  background: var(--ochre-clair);     /* cadre jaune comme les autres blocs */
  border: 1px solid var(--ochre-bord);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.team-video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Effet scotch sur les blocs jaunes (cartes + cadre video) : un seul bout de
   ruban translucide, plus gros, centre en haut. */
.back-card, .scotch { position: relative; }
.back-card::before, .scotch::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 96px;
  height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(245, 238, 205, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  z-index: 6;
  pointer-events: none;
}
.back-timeline { list-style: none; padding: 0; margin: 0.5rem 0 0; position: relative; }
.back-timeline::before { content: ""; position: absolute; left: 0.4rem; top: 0.4rem; bottom: 0.4rem; width: 2px; background: rgba(0, 0, 0, 0.4); }
.back-tl-step { position: relative; padding-left: 2.2rem; padding-bottom: 1.8rem; }
.back-tl-step:last-child { padding-bottom: 0; }
.back-tl-step::before { content: ""; position: absolute; left: 0; top: 0.2rem; width: 0.9rem; height: 0.9rem; background: var(--back-encre); transform: rotate(45deg); }
.back-tl-step h3 { font-family: inherit; font-weight: 700; font-size: 1.2rem; margin-bottom: 0.3rem; }
.back-tl-step p { font-size: 0.95rem; line-height: 1.5; }
/* Bloc de fin : oeil dessine au-dessus, texte manuscrit incline (style Figma),
   le tout reste sur le fond ocre de la zone Backrooms (on change juste l'angle). */
.back-end { text-align: center; margin-top: 3.4rem; transform: rotate(-3deg); }
.back-eye { display: block; width: min(260px, 70%); height: auto; margin: 0 auto 0.6rem; mix-blend-mode: multiply; }
.back-end p { font-size: 1.5rem; line-height: 1.2; margin-bottom: 0.2rem; }
.back-end-fort { font-size: 2rem; }
.back-surface { display: inline-block; margin-top: 1.4rem; background: transparent; border: none; color: var(--back-encre); font-family: inherit; font-size: 1.4rem; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.back-surface:hover, .back-surface:focus { opacity: 0.7; }
@media (max-width: 640px) {
  .doc-table { grid-template-columns: 1fr; }
  /* Sur telephone, la video repasse dans le flux (au-dessus du texte), pas en overlay. */
  .back-body--video { position: static; }
  .team-frame { position: static; transform: rotate(-3deg); width: 100%; max-width: 340px; aspect-ratio: 3 / 2; margin: 0 auto 1.4rem; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); }
}

/* ===== Boutons icones (poubelle, crayon) ===== */
/* Bouton icone (poubelle, crayon). On force padding:0 et le centrage flex via
   .admin-main pour passer devant la regle generale ".admin-main button" qui
   ajoute un padding et decalait l'icone dans son carre. */
.btn-icone,
.admin-main .btn-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  line-height: 0;
  cursor: pointer;
  background: var(--bordure-champ);
  color: var(--texte-clair-fort);
  transition: background 0.15s ease;
}
.btn-icone svg { width: 1.05rem; height: 1.05rem; display: block; }
/* On force la specificite pour passer devant la regle generale .admin-main button */
.btn-icone.btn-suppr, .admin-main .btn-icone.btn-suppr { background: #5a2b2b; color: #f4c9c9; }
.btn-icone.btn-suppr:hover, .btn-icone.btn-suppr:focus,
.admin-main .btn-icone.btn-suppr:hover { background: var(--statut-complet); color: #fff; }
/* Bouton "voir" (oeil) en teal, meme gabarit que la poubelle pour aligner. */
.btn-icone.btn-voir, .admin-main .btn-icone.btn-voir { background: rgba(47, 147, 137, 0.18); color: var(--accent); }
.btn-icone.btn-voir:hover, .btn-icone.btn-voir:focus,
.admin-main .btn-icone.btn-voir:hover { background: var(--accent); color: #fff; }
/* Crayon "editer" : meme logique de gabarit. */
.btn-icone.btn-editer, .admin-main .btn-icone.btn-editer { color: var(--texte-clair-fort); }
.btn-icone.btn-editer:hover, .admin-main .btn-icone.btn-editer:hover { background: var(--accent); color: #fff; }
/* Alignement des actions : centrees verticalement, sans retour a la ligne. */
.actions-cell { justify-content: flex-start; flex-wrap: nowrap; }

/* ===== Fenetre de confirmation de suppression ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 1rem;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: var(--fond-sombre-fonce);
  border: 1px solid var(--bordure-champ);
  border-radius: 10px;
  padding: 1.6rem;
  max-width: 460px;
  width: 100%;
  color: var(--texte-clair);
}
.modal-box h2 { font-family: "PostNoBills Jaffna", sans-serif; font-weight: 800; color: var(--texte-creme); margin: 0 0 0.8rem; }
.modal-warn { color: #e7a3a3; font-size: 0.92rem; }
.modal-check { display: flex; align-items: center; gap: 0.5rem; margin: 1.1rem 0; color: var(--texte-clair); }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.6rem; }
.btn-modal-annuler { background: transparent; border: 1px solid var(--bordure-sur-sombre); color: var(--texte-clair); border-radius: 6px; padding: 0.5em 1em; cursor: pointer; }
.btn-modal-suppr { background: var(--statut-complet); border: none; color: #fff; border-radius: 6px; padding: 0.5em 1.1em; cursor: pointer; }
.btn-modal-suppr:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Jauge de mot de passe ===== */
.pwd-meter { font-size: 0.85rem; margin: 0.4rem 0 0; min-height: 1.1em; }
.pwd-meter.ok { color: var(--statut-libre); }
.pwd-meter.faible { color: var(--statut-complet); }

/* ===== CRUD admin : bouton ajouter, cellule actions ===== */
a.btn-icone { text-decoration: none; }
.actions-cell { display: flex; gap: 0.45rem; align-items: center; }
.actions-cell form { margin: 0; }
.btn-ajout {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: var(--blanc);
  text-decoration: none;
  border-radius: 6px;
  padding: 0.55em 1.1em;
  font-weight: 700;
  margin-bottom: 1rem;
}
/* On force la couleur du texte pour passer devant la regle .admin-main a */
.admin-main a.btn-ajout, .btn-ajout, .btn-ajout:hover, .btn-ajout:focus { color: var(--blanc); }
.btn-ajout:hover, .btn-ajout:focus { background: var(--accent-hover); }
.admin-form { max-width: 620px; }
.admin-form p { margin: 0 0 1rem; }
.admin-form .form-actions { display: flex; gap: 0.6rem; align-items: center; margin-top: 0.5rem; }
.admin-form .form-actions a { color: var(--texte-discret-clair); }
.produit-actuel { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.5rem; }
.produit-actuel img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; }

/* ===== Renommer une equipe (back-office) ===== */
.admin-rename { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.6rem; }
.admin-rename input { flex: 1; min-width: 180px; }

/* ===========================================================
   Pages equipe (inscription, gestion, reservation) : theme clair
   =========================================================== */
.gform { background: var(--fond-creme); color: var(--texte-sombre); }
.gform-head { max-width: 1100px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 5vw, 3rem) 0; }
.gbadge { display: inline-block; border: 1px solid var(--texte-secondaire-sombre); color: var(--accent); font-size: 0.8rem; letter-spacing: 0.1em; padding: 0.3em 0.8em; border-radius: 2px; margin-bottom: 1rem; }
.gtitle { font-family: "PostNoBills Jaffna", sans-serif; font-weight: 800; font-size: clamp(2.4rem, 7vw, 5rem); line-height: 0.95; }
.gtitle .accent { color: var(--accent); }
.gsub { color: var(--texte-secondaire-sombre); margin-top: 0.8rem; max-width: 62ch; line-height: 1.6; }
.gform a:not(.btn) { color: var(--accent); }
.gform-inner { max-width: 1100px; margin: 0 auto; padding: clamp(1.2rem, 3vw, 2rem) clamp(1rem, 5vw, 3rem); }
.gjoin .g-inline { max-width: 480px; }
.gsep { border: none; border-top: 1px solid var(--bordure-claire); margin: 1.4rem 0; }

.gform-grid { max-width: 1100px; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 3rem) clamp(3rem, 6vw, 4rem); display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.gform-col { min-width: 0; }

.gbox { border: 2px solid var(--texte-sombre); border-radius: 4px; padding: 1.6rem 1.4rem 1.4rem; margin-bottom: 2rem; }
.gbox-titre { font-family: "PostNoBills Jaffna", sans-serif; font-weight: 800; font-size: 1.2rem; padding: 0 0.5rem; }
.gbox-num { color: var(--accent); margin-right: 0.3rem; }
.gbox-desc { color: var(--texte-secondaire-sombre); font-size: 0.9rem; margin: 0 0 1rem; }
.gbox-note { color: var(--texte-discret); font-size: 0.85rem; margin-top: 0.8rem; }

.gform input[type="text"], .gform input[type="email"], .gform input[type="tel"], .gform select, .gform textarea {
  width: 100%; background: #fff; border: 1.5px solid var(--texte-sombre); border-radius: 3px;
  padding: 0.6rem 0.8rem; font-family: inherit; font-size: 1rem; color: var(--texte-sombre);
}
.gform input[readonly] { background: #e9e6dc; color: var(--texte-secondaire-sombre); }
.gform input:focus, .gform select:focus, .gform textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.gform label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.gform .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.gform .form-row p, .gform p { margin: 0 0 1rem; }
.gform .btn-outline { color: var(--texte-sombre); border-color: var(--texte-sombre); }
.gform .btn-outline:hover, .gform .btn-outline:focus { background: var(--texte-sombre); color: var(--fond-creme); }
.gform .field-label { color: var(--texte-sombre); }

.membre-ligne { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.membre-num { font-family: "PostNoBills Jaffna", sans-serif; font-weight: 800; color: var(--accent); min-width: 1.6rem; }
.membre-ligne input { flex: 1; }
.membre-capitaine { background: #fff; border: 1.5px solid var(--bordure-claire); border-radius: 3px; padding: 0.55rem 0.8rem; }
.membre-x { width: 2rem; height: 2rem; flex-shrink: 0; border: none; background: var(--statut-complet); color: #fff; border-radius: 3px; cursor: pointer; }
#ajouter-coequipier { margin-top: 0.4rem; }
#ajouter-coequipier:disabled { opacity: 0.5; cursor: not-allowed; }

.gcheck label { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; }
.gcheck input { margin-top: 0.25rem; }

.grecap { border: 2px solid var(--texte-sombre); border-radius: 4px; padding: 1.5rem; position: sticky; top: 1rem; background: #fff; }
.grecap h2 { font-family: "PostNoBills Jaffna", sans-serif; font-weight: 800; font-size: 1.4rem; margin: 0 0 1rem; }
.grecap-list div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--bordure-claire); }
.grecap-list dt { color: var(--texte-secondaire-sombre); margin: 0; }
.grecap-list dd { margin: 0; font-weight: 700; text-align: right; }
.grecap-total dd { color: var(--accent); font-family: "PostNoBills Jaffna", sans-serif; font-weight: 800; font-size: 1.2rem; }
.grecap .btn-block { margin-top: 1.2rem; }
.grecap-note { color: var(--texte-discret); font-size: 0.85rem; text-align: center; margin-top: 0.6rem; }

/* Gestion equipe */
.g-inline { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.g-inline input { flex: 1; min-width: 200px; }
.g-rename label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.g-add-membre { margin-top: 0.8rem; }
.membres-liste { list-style: none; padding: 0; margin: 0.5rem 0 1rem; }
.membre-row { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--bordure-claire); }
.membre-row > span:first-child { font-weight: 700; flex: 1; }
.membre-row > span:nth-child(2) { color: var(--texte-secondaire-sombre); flex: 1; }
.lien-suppr { background: none; border: none; color: var(--statut-complet); cursor: pointer; font-weight: 700; padding: 0; }
.lien-suppr:hover { text-decoration: underline; }
.g-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.btn-annuler { background: transparent; border: 2px dashed var(--statut-complet); color: var(--statut-complet); padding: 0.55em 1.2em; border-radius: 4px; cursor: pointer; font-weight: 700; }
.btn-annuler:hover, .btn-annuler:focus { background: var(--statut-complet); color: #fff; }
.g-score { font-family: "PostNoBills Jaffna", sans-serif; font-weight: 800; font-size: 1.6rem; }
.gform .invite-code { background: #fff; border-color: var(--texte-sombre); color: var(--texte-sombre); }

/* Page reservation : cartes creneaux */
/* Filtre par mois au-dessus de la grille des creneaux. */
.creneau-filtre { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1.2rem; }
.creneau-filtre label { font-weight: 700; }
.creneau-filtre select { width: auto; min-width: 11rem; }
.creneau-grid { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.creneau-card { display: block; border: 2px solid var(--texte-sombre); border-radius: 4px; padding: 1rem; cursor: pointer; background: #fff; }
.creneau-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
/* Creneau deja pris : rouge et non selectionnable (comme l'accueil). */
.creneau-card.creneau-pris {
  border-color: rgba(210, 75, 75, 0.5);
  background: #f9eded;
  color: var(--statut-complet);
  cursor: not-allowed;
}
.creneau-card.creneau-pris .creneau-statut { color: var(--statut-complet); }
.creneau-date { display: block; font-weight: 700; margin: 0.3rem 0; }
.creneau-statut { font-size: 0.9rem; color: var(--texte-secondaire-sombre); }

/* Accueil : ligne de prix */
.reserver-prix { color: var(--texte-secondaire-sombre); margin-bottom: 1.5rem; }
/* Bouton contour sur le fond creme de la section reserver (sinon texte clair invisible). */
.reserver .btn-outline { color: var(--texte-sombre); border-color: var(--texte-sombre); }
.reserver .btn-outline:hover, .reserver .btn-outline:focus { background: var(--texte-sombre); color: var(--fond-creme); }
/* Ligne d'actions de la liste d'equipes (Rejoindre / Creer). */
.g-equipe-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

@media (max-width: 820px) {
  .gform-grid { grid-template-columns: 1fr; }
  .grecap { position: static; }
  .gform .form-row { grid-template-columns: 1fr; }
}

/* ===== Dashboard : deux colonnes ===== */
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.dash-bloc { background: var(--fond-carte); border: 1px solid var(--bordure-champ); border-radius: 8px; padding: 1.2rem 1.4rem; }
/* Titre de bloc = petite icone teal + texte alignes. */
.dash-bloc h2 { display: flex; align-items: center; gap: 0.55rem; }
.dash-bloc h2 svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
@media (max-width: 760px) { .dash-cols { grid-template-columns: 1fr; } }

/* ===== Cartes equipes (liste) ===== */
.equipe-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.equipe-card { margin-bottom: 0; }
.equipe-card h2 { margin-top: 0; }

/* ===== Calendrier de reservation (accueil) ===== */
/* Carte du calendrier : on l'enferme dans un encadre blanc pour le detacher du
   fond creme et lui donner un air de vrai widget. */
.calendrier-carte {
  width: 100%;
  margin: 0 auto 1.4rem;
  background: #fff;
  border: 1px solid var(--bordure-claire);
  border-radius: 10px;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
/* Fleches en petits boutons ronds, qui se remplissent au survol. */
.cal-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  text-decoration: none;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--texte-sombre);
  border: 1px solid var(--bordure-claire);
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cal-nav a:hover, .cal-nav a:focus { background: var(--accent); border-color: var(--accent); color: #fff; }
/* Fleche desactivee (premier/dernier mois) : grisee et non cliquable. */
.cal-nav a.cal-off { opacity: 0.3; pointer-events: none; }
.cal-titre { font-weight: 700; text-align: center; letter-spacing: 0.02em; }
.calendrier { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-jour-nom { text-align: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--texte-discret); padding-bottom: 0.5rem; }
.cal-vide { min-height: clamp(58px, 8vw, 84px); }
/* Jour de base (sans creneau) : case claire qui remplit la largeur (rectangle,
   pas un carre fige : min-height plutot que aspect-ratio pour occuper l'espace). */
.cal-jour {
  min-height: clamp(58px, 8vw, 84px);
  border: 1px solid var(--bordure-claire);
  border-radius: 6px;
  padding: 0.4rem 0.45rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #faf9f5;
}
.cal-num { font-size: 0.92rem; font-weight: 600; color: var(--texte-secondaire-sombre); }
/* La pastille du bas indique le nombre de creneaux libres ou "complet". */
.cal-pts {
  align-self: flex-start;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.18rem 0.4rem;
  border-radius: 4px;
}
/* Jour avec des places : fond vert pale, chiffre net, pastille verte. */
.cal-jour.cal-libre { background: #eef7f0; border-color: rgba(63, 174, 98, 0.4); }
.cal-jour.cal-libre .cal-num { color: var(--texte-sombre); }
.cal-jour.cal-libre .cal-pts { color: #fff; background: var(--statut-libre); }
/* Jour complet : fond rouge pale, chiffre barre, pastille rouge claire. */
.cal-jour.cal-complet { background: #f9eded; border-color: rgba(210, 75, 75, 0.4); }
.cal-jour.cal-complet .cal-num { color: var(--statut-complet); text-decoration: line-through; }
.cal-jour.cal-complet .cal-pts { color: var(--statut-complet); background: rgba(210, 75, 75, 0.14); }

/* --- Calendrier responsive ---
   Sur petit ecran, les 7 colonnes deviennent etroites et le libelle "3 libres"
   ne tient plus dans une case. On le transforme alors en simple pastille de
   couleur : le texte est masque (font-size 0) mais la pastille garde sa couleur
   de fond (verte = libre, rouge = complet), et la legende sous le calendrier
   suffit a la comprendre. On reduit aussi les ecarts et la hauteur des cases. */
@media (max-width: 600px) {
  .calendrier { gap: 4px; }
  .cal-jour { min-height: clamp(46px, 13vw, 64px); padding: 0.3rem; }
  .cal-num { font-size: 0.8rem; }
  .cal-jour-nom { font-size: 0.6rem; letter-spacing: 0.03em; }
  .cal-pts {
    align-self: flex-end;     /* la pastille se loge en bas a droite de la case */
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    font-size: 0;             /* masque "3 libres" / "complet" */
    border-radius: 50%;
  }
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--blanc);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 50;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.15s ease, box-shadow 0.2s ease;
}
.back-to-top svg { display: block; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover, .back-to-top:focus {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}
.back-to-top:focus-visible { outline: 2px solid var(--blanc); outline-offset: 2px; }

/* ===== Auth (connexion / inscription) ===== */
.auth { background: var(--fond-sombre); }
.auth-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 5vw, 3rem);
  text-align: center;
}
.auth-inner--wide { max-width: 900px; }
.auth-media {
  aspect-ratio: 3 / 1;
  background: var(--placeholder-image) url("../img/logo-clair.svg") no-repeat center / 110px;
  border-radius: 2px;
  margin-bottom: 1.6rem;
}
.auth-title {
  font-family: "PostNoBills Jaffna", sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  color: var(--texte-creme);
  margin-bottom: 0.6rem;
}
.auth-sub { color: var(--texte-secondaire-clair); margin-bottom: 1.8rem; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.auth-form--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.auth-form--grid .full,
.auth-form .btn-block { grid-column: 1 / -1; }
.auth-field { display: flex; flex-direction: column; gap: 0.35rem; }
.auth-field > span { font-size: 0.85rem; color: var(--texte-discret-clair); letter-spacing: 0.02em; }
.auth-switch { margin-top: 1.4rem; color: var(--texte-secondaire-clair); font-size: 0.95rem; }
.auth-switch a { color: var(--accent); text-decoration: none; }
.auth-switch a:hover, .auth-switch a:focus { text-decoration: underline; }

/* ===== Boutique / Magasin ===== */
.shop-head {
  background: var(--fond-sombre);
  color: var(--texte-clair);
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 5vw, 3rem);
}
.shop-title {
  font-family: "PostNoBills Jaffna", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--texte-creme);
}
.shop-sub {
  margin: 0.6rem auto 0;
  max-width: 48ch;
  color: var(--texte-secondaire-clair);
  line-height: 1.6;
}
.shop-grid-wrap { background: var(--fond-creme); }
.product-grid {
  list-style: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* 3 par ligne, cartes plus larges */
  gap: clamp(1.4rem, 3vw, 2.2rem);
}
@media (max-width: 820px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .product-grid { grid-template-columns: 1fr; } }
/* Carte produit : fond blanc, coins legerement arrondis (DA), elle se souleve
   au survol et l'image zoome un peu. La zone media a un ratio fixe pour que
   toutes les cartes s'alignent meme si les images n'ont pas la meme taille. */
.product-card {
  background: var(--blanc);
  border: 1px solid var(--bordure-creme);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover,
.product-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}
.product-media {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;                 /* pour les vraies images produit */
  /* Placeholder quand il n'y a pas d'image : logo discret sur un degrade clair. */
  background:
    url("../img/logo-fonce.svg") no-repeat center / 38%,
    linear-gradient(135deg, var(--placeholder-concept), #cfd3da);
  transition: transform 0.3s ease;
}
.product-card:hover .product-media { transform: scale(1.04); }
/* Visualiseur 3D : fond ocre, le canvas remplit la zone, curseur "attraper". */
.model3d { position: relative; overflow: hidden; background: var(--ochre); cursor: grab; }
.model3d:active { cursor: grabbing; }
.model3d canvas { display: block; width: 100%; height: 100%; }
.product-card:hover .model3d { transform: none; }   /* pas de zoom sur la 3D */
.product-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  padding: 1.1rem 1.2rem 1.3rem;
  color: var(--texte-sombre);
}
.product-name {
  font-family: "PostNoBills Jaffna", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
}
.product-desc { color: var(--texte-secondaire-sombre); font-size: 0.92rem; flex: 1; }
/* Pied de carte : prix a gauche, bouton "Ajouter" a droite, separes d'un filet. */
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--bordure-creme);
}
.product-price { font-family: "PostNoBills Jaffna", sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--accent); }
.product-foot .btn { padding: 0.55em 1.1em; font-size: 0.9rem; }
/* Boutique vide : petit message au lieu d'une grille vide. */
.shop-empty { max-width: 1320px; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 3rem); color: var(--texte-secondaire-sombre); }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .concept-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .auth-form--grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { width: 100%; }
}
