:root {
  --fond: #0d1220;
  --fond-carte: #151c2f;
  --fond-clair: #f5f7fb;
  --texte: #1a2033;
  --texte-clair: #e8ecf5;
  --gris: #5d6782;
  --accent: #19bfa6;
  --accent-sombre: #0f8d7a;
  --bordure: #d8deec;
  --erreur: #b3261e;
  --succes: #0f7b4a;
  --rayon: 12px;
  --largeur: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--texte);
  background: #fff;
  line-height: 1.6;
}

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 20px;
}

/* En-tête */

.entete {
  background: var(--fond);
  color: var(--texte-clair);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.entete .conteneur {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--texte-clair);
  text-decoration: none;
}

.logo span { color: var(--accent); }

.navigation a {
  color: var(--texte-clair);
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.94rem;
}

.navigation a:hover,
.navigation a:focus { color: var(--accent); text-decoration: underline; }

/* Hero */

.hero {
  background: linear-gradient(160deg, #0d1220 0%, #1b2742 100%);
  color: var(--texte-clair);
  padding: 64px 0 72px;
}

.hero h1 {
  font-size: 2.2rem;
  margin: 0 0 14px;
  line-height: 1.25;
}

.hero p {
  font-size: 1.08rem;
  max-width: 640px;
  color: #c3cbdd;
  margin: 0 0 26px;
}

/* Sections */

section { padding: 56px 0; }

section:nth-of-type(even) { background: var(--fond-clair); }

h2 {
  font-size: 1.6rem;
  margin: 0 0 8px;
}

.sous-titre {
  color: var(--gris);
  margin: 0 0 30px;
  max-width: 680px;
}

/* Offres */

.offres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.offre {
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 26px 22px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.offre.mise-en-avant {
  border: 2px solid var(--accent);
  box-shadow: 0 8px 26px rgba(25, 191, 166, 0.16);
}

.etiquette {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent);
  color: #05261f;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.offre h3 { margin: 0 0 10px; font-size: 1.15rem; }

.prix {
  font-size: 2rem;
  font-weight: 700;
  color: var(--fond);
  margin: 0;
}

.prix small {
  display: block;
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--gris);
  margin-top: 4px;
}

.offre ul {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  flex: 1;
}

.offre li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.offre li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-sombre);
  font-weight: 700;
}

/* Mécanisme acompte / solde */

.mecanisme {
  margin-top: 30px;
  background: #fff;
  border: 1px solid var(--bordure);
  border-left: 4px solid var(--accent);
  border-radius: var(--rayon);
  padding: 22px;
}

.mecanisme h3 { margin: 0 0 14px; font-size: 1.05rem; }

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

.etapes li {
  counter-increment: etape;
  padding-left: 38px;
  position: relative;
  font-size: 0.93rem;
}

.etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--fond);
  color: var(--texte-clair);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Formulaires */

form { max-width: 620px; }

.champ { margin-bottom: 18px; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  font: inherit;
  color: var(--texte);
  background: #fff;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

textarea { resize: vertical; min-height: 130px; }

.aide {
  font-size: 0.84rem;
  color: var(--gris);
  margin-top: 5px;
}

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

.case input { margin-top: 5px; flex-shrink: 0; }

.case label { font-weight: 400; font-size: 0.9rem; margin: 0; }

/* Le pot de miel reste hors écran sans être masqué pour les robots. */
.pot-de-miel {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Boutons */

.bouton {
  display: inline-block;
  background: var(--accent);
  color: #05261f;
  border: none;
  border-radius: 8px;
  padding: 13px 26px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.bouton:hover:not(:disabled),
.bouton:focus:not(:disabled) { background: var(--accent-sombre); color: #fff; }

.bouton:disabled { opacity: 0.55; cursor: not-allowed; }

.bouton.secondaire {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.bouton.secondaire:hover,
.bouton.secondaire:focus { background: var(--accent); color: #05261f; }

.hero .bouton { margin-right: 10px; }

/* Messages d'état */

.message {
  margin-top: 16px;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 0.93rem;
  border: 1px solid transparent;
}

.message:empty { display: none; }

.message.succes { background: #e6f7f1; border-color: #9bd9c5; color: #0b5f47; }

.message.erreur { background: #fdeceb; border-color: #f0b3ae; color: var(--erreur); }

.message.attente { background: #eef2fb; border-color: #c3cfe8; color: #33405f; }

/* Rendez-vous */

.cadre-rdv {
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
  background: #fff;
  margin-top: 20px;
}

.cadre-rdv iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
}

.repli-rdv {
  padding: 16px;
  font-size: 0.9rem;
  color: var(--gris);
  border-top: 1px solid var(--bordure);
}

/* Assistant IA */

.reponse-assistant {
  margin-top: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  white-space: pre-wrap;
  font-size: 0.94rem;
}

.reponse-assistant:empty { display: none; }

/* Pages courtes */

.page-simple { padding: 64px 0; min-height: 60vh; }

.page-simple h1 { font-size: 1.8rem; margin: 0 0 12px; }

.encart {
  background: var(--fond-clair);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 22px;
  margin: 22px 0;
}

.encart p { margin: 0 0 10px; }

.encart p:last-child { margin-bottom: 0; }

code {
  background: #eef1f8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  word-break: break-all;
}

.lien-genere {
  display: block;
  margin-top: 10px;
  word-break: break-all;
  color: var(--accent-sombre);
  font-weight: 600;
}

/* Mentions légales */

.legal h2 { font-size: 1.15rem; margin: 28px 0 8px; }

.legal p { margin: 0 0 12px; }

.a-fournir {
  background: #fff6e0;
  border: 1px solid #f0d089;
  border-radius: 8px;
  padding: 14px;
  font-size: 0.9rem;
  color: #6b5010;
}

/* Pied de page */

.pied {
  background: var(--fond);
  color: #aab3c8;
  padding: 30px 0;
  font-size: 0.88rem;
}

.pied .conteneur {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.pied a { color: var(--accent); text-decoration: none; }

.pied a:hover, .pied a:focus { text-decoration: underline; }

.pied-build { color: #7c879e; font-size: 0.8rem; }

@media (max-width: 640px) {
  .hero { padding: 44px 0 50px; }
  .hero h1 { font-size: 1.7rem; }
  section { padding: 40px 0; }
  .navigation a { margin: 0 14px 0 0; }
  .cadre-rdv iframe { height: 460px; }
}
