/* Rendez-vous d'expertise — reprend la charte du thème The Collector Geeks (variables --cg-*),
   avec des valeurs de repli pour rester lisible sous un autre thème. */
/* Le nom du fichier porte la version : à changer à chaque mise à jour, sinon les navigateurs gardent l'ancienne feuille. */

.cgr {
  --r-violet: var(--cg-violet, #800086);
  --r-jaune: var(--cg-jaune, #FFCE01);
  --r-noir: var(--cg-noir, #1A1A1A);
  --r-libelle: var(--cg-libelle, "Lilita One", system-ui, sans-serif);
  --r-titre: var(--cg-titre, "Titan One", system-ui, sans-serif);
  color: #232323;
  line-height: 1.5;
}
.cgr-intro { font-size: 1.05rem; margin-bottom: 1.25rem; }
.cgr-muted { font-size: 0.9rem; color: rgba(0, 0, 0, 0.6); margin: 0.5rem 0 0; }

.cgr-step { border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 1rem; padding: 1rem 1.25rem 1.25rem; margin: 0 0 1.25rem; min-width: 0; }
.cgr-step legend {
  float: none;
  width: auto;
  padding: 0 0.5rem;
  margin: 0;
  font-family: var(--r-titre);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--r-violet);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cgr-step legend span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--r-jaune);
  color: var(--r-noir);
  font-family: var(--r-libelle);
  font-size: 0.95rem;
}

.cgr-pick { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .cgr-pick { grid-template-columns: minmax(0, 22rem) 1fr; } }

.cgr-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.cgr-cal-head strong { font-family: var(--r-libelle); font-weight: 400; text-transform: capitalize; font-size: 1.05rem; color: var(--r-violet); }
.cgr-cal-head button {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  background: #FFFFFF;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--r-violet);
  cursor: pointer;
}
.cgr-cal-head button:disabled { opacity: 0.35; cursor: default; }
.cgr-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.3rem; }
.cgr-cal-dow { text-align: center; font-family: var(--r-libelle); font-size: 0.7rem; color: rgba(0, 0, 0, 0.5); padding: 0.2rem 0; }
.cgr-day {
  aspect-ratio: 1 / 1;
  border: 2px solid var(--r-jaune);
  border-radius: 0.6rem;
  background: #FFF8D6;
  color: var(--r-noir);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.cgr-day:hover:not(:disabled) { transform: translateY(-2px); }
.cgr-day:disabled { border-color: transparent; background: transparent; color: rgba(0, 0, 0, 0.3); font-weight: 400; cursor: default; }
.cgr-day.is-on { background: var(--r-violet); border-color: var(--r-violet); color: #FFFFFF; }

.cgr-slots-title { font-family: var(--r-libelle); color: var(--r-violet); text-transform: capitalize; margin: 0 0 0.6rem; }
.cgr-slot-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cgr-slot {
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--r-noir);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.cgr-slot:hover { border-color: var(--r-violet); color: var(--r-violet); }
.cgr-slot.is-on { background: var(--r-violet); border-color: var(--r-violet); color: #FFFFFF; }

.cgr-grid { display: grid; gap: 1rem; }
@media (min-width: 576px) { .cgr-grid { grid-template-columns: 1fr 1fr; } }
.cgr-grid label { display: block; margin: 0; font-weight: 700; font-size: 0.9rem; text-align: left; }
.cgr-grid label small { font-weight: 400; color: rgba(0, 0, 0, 0.6); }
.cgr-wide { grid-column: 1 / -1; }
.cgr-grid input[type="text"], .cgr-grid input[type="email"], .cgr-grid input[type="tel"], .cgr-grid select, .cgr-grid textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem 0.75rem;
  border: 2px solid rgba(42, 21, 51, 0.28);
  border-radius: 0.75rem;
  background: #FFFFFF;
  color: var(--r-noir);
  font-weight: 400;
  font-size: 1rem;
}
.cgr-grid input:focus, .cgr-grid select:focus, .cgr-grid textarea:focus { outline: none; border-color: var(--r-jaune); box-shadow: 0 0 0 2px var(--r-jaune); }
.cgr-grid input[type="file"] { display: block; margin-top: 0.4rem; max-width: 100%; font-weight: 400; }
.cgr-check { display: flex !important; align-items: flex-start; gap: 0.6rem; font-weight: 400 !important; }
.cgr-check input { margin-top: 0.3rem; flex-shrink: 0; }
.cgr-file-error { display: block; margin-top: 0.3rem; color: #B91C1C; font-weight: 400; }
/* Champ piège pour les robots : hors écran, jamais vu ni atteint au clavier */
.cgr-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cgr-recap { font-weight: 700; color: var(--r-violet); margin: 0 0 1rem; }
.cgr-recap.is-error { color: #B91C1C; }

.cgr-box { text-align: center; padding: 1.5rem 1rem; }
.cgr-box h2 { font-family: var(--r-titre); font-weight: 400; color: var(--r-violet); text-shadow: none; }
.cgr-success { border: 2px solid #15803D; border-radius: 1rem; background: #F0FDF4; }
.cgr-back { margin-top: 1.25rem; }
.cgr-back a { color: var(--r-violet); font-weight: 700; text-decoration: underline; }

/* ── Présentation de l'expertise : texte, mascotte, bouton de rendez-vous ── */
.cgr-hero {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #FFF8D6 0%, #FFFFFF 55%, #F7E6F8 100%);
  border: 2px solid var(--r-jaune);
}
@media (min-width: 768px) {
  .cgr-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); padding: 2rem 2.25rem; }
}
.cgr-hero-lead { font-family: var(--r-libelle); font-size: 1.1rem; line-height: 1.35; color: var(--r-violet); margin-bottom: 0.9rem; }
.cgr-hero-text p { margin-bottom: 0.9rem; }
.cgr-hero-img { display: flex; justify-content: center; order: -1; }
@media (min-width: 768px) { .cgr-hero-img { order: 0; } }
.cgr-hero-img img { width: 100%; max-width: 7.5rem; height: auto; filter: drop-shadow(0 8px 16px rgba(79, 0, 82, 0.25)); }
@media (min-width: 768px) { .cgr-hero-img img { max-width: 100%; } }

.cgr-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding: 0.85rem 1.75rem;
  border: 3px solid var(--r-noir);
  border-radius: 999px;
  background: var(--r-jaune);
  box-shadow: 0 5px 0 var(--r-noir);
  color: var(--r-noir);
  font-family: var(--r-titre);
  font-size: 1.2rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.cgr-cta::after { content: "→"; font-family: system-ui, sans-serif; font-weight: 700; }
.cgr-cta:hover, .cgr-cta:focus { color: var(--r-noir); text-decoration: none; transform: translateY(2px); box-shadow: 0 3px 0 var(--r-noir); }
@media (max-width: 575.98px) { .cgr-cta { display: flex; width: 100%; } }
.cgr-cta-note { margin: 0.6rem 0 0 !important; font-size: 0.85rem; color: rgba(0, 0, 0, 0.6); }

.cgr-savoir { display: grid; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .cgr-savoir { grid-template-columns: 1fr 1fr; } }
.cgr-savoir-card { padding: 1.1rem 1.25rem; border-radius: 1rem; background: #FFFFFF; border: 1px solid rgba(0, 0, 0, 0.1); border-top: 5px solid var(--r-violet); }
.cgr-savoir-card h2 { margin: 0 0 0.5rem; font-family: var(--r-libelle); font-weight: 400; font-size: 1.15rem; color: var(--r-violet); text-shadow: none; text-transform: none; }
.cgr-savoir-card p { margin: 0; font-size: 0.95rem; }

.cgr-form-title {
  margin: 0 0 1rem;
  font-family: var(--r-titre);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--r-violet);
  text-shadow: none;
  text-align: center;
  scroll-margin-top: 8rem; /* l'en-tête du thème reste collé en haut */
}
@media (max-width: 767.98px) { .cgr-hero { padding: 1.1rem; gap: 0.75rem; } }
@media (min-width: 768px) { .cgr-hero-lead { font-size: 1.25rem; } }
