/* =====================================================================
   TriCycle — feuille de style
   ===================================================================== */

/* --- Couleurs, rayons, ombres : à modifier ici pour changer tout le site --- */
:root {
  --vert: #2e7d32;
  --vert-fonce: #23622a;
  --vert-pale: #eaf4eb;
  --vert-logo: #2e9b57;

  --encre: #1d2125;          /* texte principal */
  --encre-douce: #5b6169;    /* texte secondaire */
  --fond: #f5f6f3;           /* fond de page */
  --surface: #ffffff;        /* panneaux et cartes */
  --surface-dessin: #f1f3ef; /* fond des dessins */
  --bordure: #e2e5e0;

  --rayon: 14px;
  --rayon-petit: 9px;
  --ombre: 0 1px 2px rgba(20, 30, 20, 0.04), 0 4px 16px rgba(20, 30, 20, 0.05);
  --ombre-survol: 0 4px 10px rgba(20, 30, 20, 0.06), 0 14px 32px rgba(20, 30, 20, 0.10);

  --largeur-max: 1120px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--fond);
  color: var(--encre);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; }

/* =====================================================================
   Barre de navigation
   ===================================================================== */
.barre {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px max(24px, calc((100% - var(--largeur-max)) / 2 + 24px));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bordure);
}

.barre a {
  padding: 8px 14px;
  border-radius: var(--rayon-petit);
  color: var(--encre-douce);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.barre a:hover { background: var(--fond); color: var(--encre); }

.barre a.actif { color: var(--vert); background: var(--vert-pale); }

.barre .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  padding: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--encre);
}

.barre .logo:hover { background: none; }
.barre .logo img { width: 40px; height: 40px; }
.barre .logo .tri { color: var(--vert-logo); }

/* =====================================================================
   En-tête de page et mise en page
   ===================================================================== */
header {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 44px 24px 20px;
}

header .retour {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--encre-douce);
  text-decoration: none;
}

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

header h1 {
  margin: 0 0 8px;
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

header p {
  margin: 0;
  max-width: 640px;
  font-size: 1.08rem;
  color: var(--encre-douce);
}

main {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 12px 24px 56px;
}

main.colonne {
  flex-direction: column;
  flex-wrap: nowrap;
}

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

.rangee .panneau { max-width: none; }

/* =====================================================================
   Panneaux (options) et aperçu (dessin)
   ===================================================================== */
.panneau, .apercu {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 24px;
  box-shadow: var(--ombre);
}

.panneau {
  flex: 1 1 300px;
  max-width: 380px;
}

.panneau h2 {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--encre-douce);
}

/* Séparateur entre les sections du panneau */
.panneau .controle + .controle > h2 {
  margin-top: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--bordure);
}

.apercu {
  flex: 2 1 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#dessin {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--rayon-petit);
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, var(--surface-dessin) 75%);
}

/* =====================================================================
   Champs de formulaire
   ===================================================================== */
.controle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.controle > label { font-weight: 500; font-size: 0.95rem; }
.controle label span { font-weight: 700; color: var(--vert); }

.controle.case {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.controle.case label { font-weight: 400; }
.controle.case label span { color: inherit; }

.controle small { color: var(--encre-douce); font-size: 0.85rem; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--encre);
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-petit);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--vert);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6169' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

input[type="range"] {
  width: 100%;
  margin: 4px 0 0;
  accent-color: var(--vert);
  cursor: pointer;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--vert);
  cursor: pointer;
}

input[type="color"] {
  width: 56px;
  height: 36px;
  padding: 3px;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-petit);
  background: var(--surface);
  cursor: pointer;
}

.graduations {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--encre-douce);
}

/* =====================================================================
   Boutons
   ===================================================================== */
#commander,
.carte .bouton,
.banniere .bouton,
.demande button {
  display: inline-block;
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  text-align: center;
  color: white;
  background: var(--vert);
  border: none;
  border-radius: var(--rayon-petit);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

#commander:hover,
.banniere:hover .bouton,
.carte:hover .bouton,
.demande button:hover { background: var(--vert-fonce); }

#commander:active, .demande button:active { transform: translateY(1px); }

#animer {
  margin-top: 8px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--vert);
  background: var(--vert-pale);
  border: 1px solid transparent;
  border-radius: var(--rayon-petit);
  cursor: pointer;
  transition: border-color 0.15s;
}

#animer:hover { border-color: var(--vert); }

/* =====================================================================
   Résumé (dimensions, volume, prix)
   ===================================================================== */
.resume {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  width: 100%;
  margin: 20px 0;
  padding-top: 20px;
  border-top: 1px solid var(--bordure);
}

.resume div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.resume span {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--encre-douce);
}

.resume strong { font-size: 1.3rem; letter-spacing: -0.02em; white-space: nowrap; }

/* =====================================================================
   Catalogue des produits
   ===================================================================== */
.grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  width: 100%;
}

.carte {
  display: flex;
  flex-direction: column;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  transition: transform 0.2s, box-shadow 0.2s;
}

.carte:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-survol);
}

.vignette {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: var(--rayon-petit);
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, var(--surface-dessin) 75%);
}

.carte h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.carte p {
  flex: 1;
  margin: 0 0 14px;
  font-size: 0.93rem;
  color: var(--encre-douce);
}

.carte .a-partir {
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--encre-douce);
}

.carte .a-partir strong { font-size: 1.1rem; color: var(--encre); }

/* Bannière location sur la page produits */
.banniere {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(120deg, var(--vert-pale), #f6faf1);
  border: 1px solid #cfe5d1;
  border-radius: var(--rayon);
}

.banniere strong { display: block; font-size: 1.1rem; margin-bottom: 2px; }
.banniere span:first-child { color: var(--encre-douce); }
.banniere span:first-child strong { color: var(--encre); }

/* =====================================================================
   Page de location
   ===================================================================== */
.avantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.avantages div {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px 18px 56px;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

.avantages div::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--vert);
  background: var(--vert-pale);
  border-radius: 50%;
}

.avantages span { font-size: 0.93rem; color: var(--encre-douce); }

.quantites {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.quantites label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.quantites input, #jours { width: 72px; text-align: center; }

.apercu-signe {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: var(--rayon-petit);
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, var(--surface-dessin) 75%);
}

.apercu-signe span {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--encre-douce);
}

.apercu-signe svg { width: 100%; max-width: 360px; height: 120px; }

.stations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  width: 100%;
}

.station {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border-radius: var(--rayon-petit);
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, var(--surface-dessin) 75%);
}

.station svg { width: 100%; aspect-ratio: 3 / 4; }
.station span { margin-top: 4px; font-size: 0.9rem; font-weight: 600; }
.vide { color: var(--encre-douce); }

.detail {
  width: 100%;
  max-width: 440px;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.detail td {
  padding: 8px 0;
  border-bottom: 1px solid var(--bordure);
  color: var(--encre-douce);
}

.detail td:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  color: var(--encre);
}

.panneau.demande { max-width: none; }

.demande form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.demande label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 500;
}

.demande textarea { resize: vertical; }
.demande .large { grid-column: 1 / -1; }
.demande button { grid-column: 1 / -1; justify-self: start; }

/* =====================================================================
   Boutons génériques
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  color: white;
  text-decoration: none;
  background: var(--vert);
  border: 1px solid var(--vert);
  border-radius: var(--rayon-petit);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:hover { background: var(--vert-fonce); border-color: var(--vert-fonce); }
.btn:active { transform: translateY(1px); }

.btn-secondaire { color: var(--encre); background: var(--surface); border-color: var(--bordure); }
.btn-secondaire:hover { background: var(--fond); border-color: #c9cfc8; }

.btn-clair { color: var(--vert-fonce); background: white; border-color: white; }
.btn-clair:hover { background: var(--vert-pale); border-color: var(--vert-pale); }

.barre a.btn-nav {
  margin-left: 8px;
  padding: 8px 16px;
  font-weight: 600;
  color: white;
  background: var(--vert);
}

.barre a.btn-nav:hover { color: white; background: var(--vert-fonce); }

a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(46, 125, 50, 0.35);
  outline-offset: 2px;
}

.surtitre {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vert);
}

/* =====================================================================
   Configurateur : tuiles des types, pastilles, quantité
   ===================================================================== */
.etiquette { font-weight: 500; font-size: 0.95rem; }
.etiquette span { font-weight: 700; color: var(--vert); }

.tuiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tuile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px;
  text-align: center;
  background: var(--surface);
  border: 1.5px solid var(--bordure);
  border-radius: var(--rayon-petit);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.tuile:hover { border-color: #b9c4b9; }
.tuile:has(input:checked) { border-color: var(--vert); background: var(--vert-pale); }
.tuile:has(input:focus-visible) { outline: 3px solid rgba(46, 125, 50, 0.35); outline-offset: 2px; }
.tuile input { position: absolute; opacity: 0; pointer-events: none; }
.tuile svg { width: 100%; height: 54px; margin-bottom: 4px; }

.controle .tuile .tuile-nom {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--encre);
}

.tuile-nom i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.controle .tuile small { font-size: 0.75rem; line-height: 1.2; }

.pastilles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.pastille {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 3px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--bordure);
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}

.pastille:hover { transform: scale(1.08); }
.pastille.actif { box-shadow: 0 0 0 2px var(--vert); }

.pastille.perso {
  position: relative;
  display: inline-block;
  overflow: hidden;
  background: conic-gradient(#e53935, #fdd835, #43a047, #1e88e5, #8e24aa, #e53935);
}

.pastille.perso input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  opacity: 0;
  cursor: pointer;
}

.inclus {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--encre-douce);
}

.inclus li::before { content: "✓"; margin-right: 6px; font-weight: 700; color: var(--vert); }

.achat {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
}

.quantite {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-petit);
}

.quantite button {
  width: 42px;
  font-size: 1.2rem;
  color: var(--encre);
  background: var(--fond);
  border: none;
  cursor: pointer;
}

.quantite button:hover { background: var(--vert-pale); color: var(--vert); }

.quantite input[type="number"] {
  width: 52px;
  padding: 10px 4px;
  text-align: center;
  border: none;
  border-radius: 0;
  -moz-appearance: textfield;
}

.quantite input::-webkit-outer-spin-button,
.quantite input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantite input:focus { box-shadow: none; }

.mention { margin: 12px 0 0; font-size: 0.8rem; color: var(--encre-douce); }

/* =====================================================================
   Fenêtre de confirmation
   ===================================================================== */
.modale {
  width: 100%;
  max-width: min(440px, calc(100% - 32px));
  padding: 0;
  color: var(--encre);
  border: none;
  border-radius: var(--rayon);
  box-shadow: 0 24px 64px rgba(10, 20, 10, 0.25);
}

.modale::backdrop { background: rgba(20, 28, 20, 0.45); backdrop-filter: blur(2px); }

.modale-contenu { padding: 28px; }
.modale h2 { margin: 0 0 18px; font-size: 1.35rem; letter-spacing: -0.02em; }

.modale dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  margin: 0 0 18px;
}

.modale dt { color: var(--encre-douce); }
.modale dd { margin: 0; font-weight: 600; text-align: right; }

.modale .note {
  margin: 0 0 18px;
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--encre-douce);
  background: var(--fond);
  border-radius: var(--rayon-petit);
}

.modale form { display: flex; justify-content: flex-end; }

/* =====================================================================
   Page d'accueil
   ===================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 56px 24px 32px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero h1 .accent { color: var(--vert); }

.hero-texte > p {
  max-width: 520px;
  margin: 0 0 28px;
  font-size: 1.12rem;
  color: var(--encre-douce);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.chiffres {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin: 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--bordure);
}

.chiffres li { display: flex; flex-direction: column; }
.chiffres strong { font-size: 1.35rem; letter-spacing: -0.02em; white-space: nowrap; }
.chiffres span { font-size: 0.88rem; color: var(--encre-douce); }

.hero-visuel, .details-visuel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 1px solid var(--bordure);
  border-radius: 28px;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #ecf1ea 65%, #e2eadf 100%);
}

.hero-visuel svg { width: 80%; height: 86%; }
.details-visuel svg { width: 76%; height: 84%; }

.hero-type {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  background: white;
  border: 1px solid var(--bordure);
  border-radius: 999px;
  box-shadow: var(--ombre);
}

.hero-type::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c, var(--vert));
  transition: background 0.3s;
}

main.sections {
  display: block;
  padding: 0 24px 40px;
}

.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--bordure); }

.section-tete { max-width: 640px; margin: 0 auto 36px; text-align: center; }

.section-tete h2, .details-texte h2, .bandeau-location h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-tete p { margin: 0; font-size: 1.05rem; color: var(--encre-douce); }

.etapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.etapes li {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

.numero {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  font-weight: 700;
  color: white;
  background: var(--vert);
  border-radius: 50%;
}

.etapes h3 { margin: 0 0 6px; font-size: 1.12rem; }
.etapes p { margin: 0; font-size: 0.95rem; color: var(--encre-douce); }

.types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.type-carte {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  transition: transform 0.2s, box-shadow 0.2s;
}

.type-carte:hover { transform: translateY(-4px); box-shadow: var(--ombre-survol); }

.type-carte svg {
  width: 100%;
  height: 130px;
  padding: 16px;
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, var(--surface-dessin) 80%);
  border-bottom: 4px solid var(--c);
}

.type-carte div { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.type-carte h3 { margin: 0; font-size: 1.15rem; }

.type-carte .ouverture {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

.type-carte p { flex: 1; margin: 0 0 10px; font-size: 0.93rem; color: var(--encre-douce); }
.type-carte .lien { font-size: 0.93rem; font-weight: 600; color: var(--vert); }

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.liste-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.liste-details li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 40px;
}

.liste-details li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--vert);
  background: var(--vert-pale);
  border-radius: 50%;
}

.liste-details span { font-size: 0.95rem; color: var(--encre-douce); }

.gamme {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.modele-carte {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px 16px;
  text-align: center;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  scroll-snap-align: start;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.modele-carte:hover { border-color: var(--vert); box-shadow: var(--ombre-survol); }
.modele-carte svg { width: 100%; height: 230px; margin-bottom: 12px; }
.modele-carte strong { font-size: 1.35rem; letter-spacing: -0.02em; }
.modele-carte span { font-size: 0.85rem; color: var(--encre-douce); }
.modele-carte .prix { margin-top: 6px; font-size: 0.95rem; font-weight: 600; color: var(--encre); }

.bandeau-location {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 44px;
  color: white;
  background: linear-gradient(120deg, #1d5525, #2e7d32 60%, #3f9c47);
  border-radius: 22px;
}

.bandeau-location p { max-width: 560px; margin: 0; color: rgba(255, 255, 255, 0.86); }

/* Page 404 */
.introuvable {
  flex-direction: column;
  align-items: center;
  padding: 96px 24px;
  text-align: center;
}

.introuvable h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.03em; }
.introuvable p { max-width: 460px; margin: 0 0 28px; color: var(--encre-douce); }
.introuvable .hero-actions { justify-content: center; }

.code-erreur {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--vert-pale);
  -webkit-text-stroke: 2px var(--vert);
}

/* =====================================================================
   Icône du panier dans la barre
   ===================================================================== */
.barre a.lien-panier {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: 4px;
  padding: 0;
  color: var(--encre);
}

.lien-panier svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge-panier {
  position: absolute;
  top: -3px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  color: white;
  background: var(--vert);
  border: 2px solid white;
  border-radius: 999px;
  box-sizing: content-box;
}

.lien-panier.rebond { animation: rebond 0.5s ease; }

@keyframes rebond {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.22); }
  65% { transform: scale(0.94); }
}

/* =====================================================================
   Notification (toast)
   ===================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  padding: 12px 14px 12px 12px;
  font-size: 0.95rem;
  color: white;
  background: #1f2622;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s, transform 0.25s;
}

.toast.visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }

.toast-icone {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--vert);
  border-radius: 50%;
}

.toast a, .toast button {
  flex-shrink: 0;
  padding: 6px 10px;
  font: inherit;
  font-weight: 600;
  color: #9be3a6;
  white-space: nowrap;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.toast a:hover, .toast button:hover { background: rgba(255, 255, 255, 0.16); }

/* =====================================================================
   Page Panier
   ===================================================================== */
main.page-panier { display: block; }

.panier-contenu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 24px;
}

.articles {
  padding: 8px 24px 20px;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

.articles ul { margin: 0 0 16px; padding: 0; list-style: none; }

/* Image à gauche ; infos en haut, quantité et prix en bas */
.article {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  grid-template-areas: "image infos infos" "image quantite prix";
  align-items: center;
  gap: 12px 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--bordure);
}

.article-infos { grid-area: infos; }
.article .quantite { grid-area: quantite; justify-self: start; }
.article-prix { grid-area: prix; }

.article-vignette {
  grid-area: image;
  align-self: start;
  display: block;
  width: 96px;
  height: 96px;
  padding: 8px;
  border-radius: var(--rayon-petit);
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, var(--surface-dessin) 80%);
}

.article-vignette svg { width: 100%; height: 100%; }

.article-infos h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.puce-modele {
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--vert);
  background: var(--vert-pale);
  border-radius: 999px;
}

.article-infos p { margin: 0; font-size: 0.88rem; color: var(--encre-douce); }

.lien-retirer {
  margin-top: 6px;
  padding: 0;
  font: inherit;
  font-size: 0.85rem;
  color: var(--encre-douce);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  cursor: pointer;
}

.lien-retirer:hover { color: #b3261e; }

.article .quantite button { min-height: 40px; }
.quantite button:disabled { color: #b8bdb8; cursor: default; background: var(--fond); }

.article-prix { display: flex; flex-direction: column; align-items: flex-end; min-width: 96px; }
.article-prix strong { font-size: 1.05rem; white-space: nowrap; }
.article-prix span { font-size: 0.8rem; color: var(--encre-douce); white-space: nowrap; }

.articles .retour {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--vert);
  text-decoration: none;
}

.recap {
  position: sticky;
  top: 84px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

.recap h2 { margin: 0 0 16px; font-size: 1.15rem; }

.recap dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 0;
  margin: 0 0 18px;
  font-size: 0.95rem;
}

.recap dt { color: var(--encre-douce); }
.recap dd { margin: 0; padding-left: 12px; font-weight: 600; text-align: right; }

.recap .total {
  padding-top: 12px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--encre);
  border-top: 1px solid var(--bordure);
}

.seuil { margin-bottom: 18px; font-size: 0.88rem; color: var(--encre-douce); }
.seuil p { margin: 0 0 8px; }
.seuil strong { color: var(--vert); }

.jauge { height: 6px; overflow: hidden; background: var(--fond); border-radius: 999px; }
.jauge span { display: block; height: 100%; background: var(--vert); border-radius: 999px; transition: width 0.4s; }

.btn-large { width: 100%; padding: 14px 22px; font-size: 1.02rem; }
.recap .mention { text-align: center; }

.panier-vide {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
}

.panier-vide svg { width: 140px; height: 160px; margin-bottom: 12px; }
.panier-vide h2 { margin: 0 0 8px; font-size: 1.5rem; letter-spacing: -0.02em; }
.panier-vide p { max-width: 420px; margin: 0 0 24px; color: var(--encre-douce); }
.panier-vide .hero-actions { justify-content: center; margin: 0; }

.caisse { max-width: none; margin-top: 24px; scroll-margin-top: 84px; }
.caisse h2 { font-size: 1.15rem; text-transform: none; letter-spacing: -0.01em; color: var(--encre); }

.caisse form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.caisse label { display: flex; flex-direction: column; gap: 6px; font-size: 0.95rem; font-weight: 500; }
.caisse .large { grid-column: 1 / -1; }
.caisse textarea { resize: vertical; }
.caisse button { grid-column: 1 / -1; justify-self: start; width: auto; }
.facultatif { font-weight: 400; color: var(--encre-douce); }

.note-demo {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--encre-douce);
  background: var(--fond);
  border-radius: var(--rayon-petit);
}

input:user-invalid { border-color: #c62828; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-petit);
  transition: border-color 0.15s;
}

.faq details[open] { border-color: #c5d8c7; }

.faq summary {
  position: relative;
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--vert);
  transform: translateY(-50%);
  transition: transform 0.2s;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--encre-douce); }
.faq a { font-weight: 600; color: var(--vert); }

/* =====================================================================
   Décor du héros et apparitions au défilement
   ===================================================================== */
.hero { position: relative; isolation: isolate; }

.hero::before {
  content: "";
  position: absolute;
  inset: -56px 0 -40px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(520px 320px at 78% 40%, rgba(46, 125, 50, 0.12), transparent 70%),
    radial-gradient(420px 260px at 8% 12%, rgba(47, 109, 181, 0.07), transparent 70%);
}

.hero-visuel { box-shadow: 0 30px 60px -30px rgba(30, 60, 30, 0.35); }

.hero-direct {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--encre-douce);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--bordure);
  border-radius: 999px;
}

.hero-direct i {
  width: 8px;
  height: 8px;
  background: #43a047;
  border-radius: 50%;
  animation: pulsation 1.8s infinite;
}

@keyframes pulsation {
  0% { box-shadow: 0 0 0 0 rgba(67, 160, 71, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(67, 160, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 160, 71, 0); }
}

.apparait {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.apparait.visible { opacity: 1; transform: none; }

/* =====================================================================
   Pied de page
   ===================================================================== */
.pied {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  max-width: var(--largeur-max);
  margin: 24px auto 0;
  padding: 40px 24px 24px;
  font-size: 0.92rem;
  color: var(--encre-douce);
  border-top: 1px solid var(--bordure);
}

.pied a { color: inherit; text-decoration: none; }
.pied a:hover { color: var(--vert); }

.pied-marque p { margin: 10px 0 0; max-width: 300px; }

.pied .logo-pied {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--encre);
}

.logo-pied img { width: 30px; height: 30px; }
.logo-pied .tri { color: var(--vert-logo); }

.pied-liens { display: flex; flex-direction: column; gap: 8px; }

.pied-liens h3 {
  margin: 0 0 4px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--encre);
}

.pied-bas {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--bordure);
  font-size: 0.85rem;
}

/* =====================================================================
   Cellulaire
   ===================================================================== */
@media (max-width: 720px) {
  .barre { padding: 8px 16px; gap: 2px; }
  .barre a { padding: 8px 10px; }
  .barre .logo { font-size: 1.15rem; }
  .barre .logo img { width: 34px; height: 34px; }

  header { padding: 28px 16px 12px; }
  header h1 { font-size: 1.75rem; }
  header p { font-size: 1rem; }

  main { padding: 8px 16px 40px; gap: 16px; }
  .rangee { gap: 16px; }

  .panneau { max-width: none; }
  .panneau, .apercu { padding: 18px; }
  .apercu { order: -1; } /* l'aperçu passe avant les options sur petit écran */

  .resume { gap: 12px 24px; }
  .resume strong { font-size: 1.2rem; }

  .pied { grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px 16px 20px; }
  .pied-marque { grid-column: 1 / -1; }

  .hero { grid-template-columns: 1fr; gap: 28px; padding: 32px 16px 8px; }
  .hero-visuel { width: 100%; max-width: 440px; margin: 0 auto; }
  main.sections { padding: 0 16px 32px; }
  .section { padding: 40px 0; }
  .details { grid-template-columns: 1fr; gap: 28px; }
  .bandeau-location { padding: 28px 22px; }
  .gamme { grid-template-columns: repeat(5, 150px); }
  .introuvable { padding: 56px 16px; }

  .panier-contenu { grid-template-columns: 1fr; }
  .recap { position: static; }
  .articles { padding: 4px 16px 16px; }
  .article { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 10px 14px; }
  .article-vignette { width: 72px; height: 72px; }
  .article-prix { min-width: 0; }
}

@media (max-width: 480px) {
  .barre a.btn-nav { display: none; }
  .barre a:not(.logo):not(.lien-panier) { padding: 8px 8px; font-size: 0.95rem; }
  .barre .logo span { font-size: 1.05rem; }
  .tuile small { display: none; }
}
