/* ============================================================
   IDEC Pilot — Site vitrine
   Feuille de style. Tu n'as normalement pas besoin d'y toucher
   pour changer les textes : ceux-ci sont dans index.html.
   Les couleurs de la marque sont regroupées juste en dessous.
   ============================================================ */

:root {
  --navy: #0f244d;        /* Bleu marine (fonds sombres) */
  --primary: #1e88e5;     /* Bleu principal (boutons, liens) */
  --primary-dark: #1565c0;/* Bleu foncé (survol des boutons) */
  --teal: #2dd4bf;        /* Turquoise (accents) */

  --text: #0f172a;        /* Texte principal */
  --text-soft: #475569;   /* Texte secondaire */
  --text-mut: #64748b;    /* Texte discret */
  --border: #e2e8f0;      /* Bordures */
  --bg: #ffffff;          /* Fond blanc */
  --bg-soft: #f8fafc;     /* Fond gris très clair */

  --maxw: 1120px;         /* Largeur maximale du contenu */
}

/* --- Base --- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Roboto", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Boutons --- */
.btn {
  display: inline-block;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 600;
  font-family: "Open Sans", sans-serif;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 136, 229, 0.25);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-light {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
}
.btn-light:hover { border-color: var(--primary); }

/* --- En-tête --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.header-logo img { height: 34px; width: auto; }

.header-nav {
  display: flex;
  gap: 26px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
}
.header-nav a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .link-login {
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
}
.header-actions .link-login:hover { color: var(--primary); }
.header-actions .btn { padding: 9px 16px; font-size: 15px; }

/* --- Sections génériques --- */
section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-center { text-align: center; }

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}
h2.section-title { font-size: 32px; font-weight: 700; margin-top: 10px; }
.lead {
  font-size: 18px;
  color: var(--text-soft);
  margin-top: 16px;
  max-width: 640px;
}
.section-center .lead { margin-left: auto; margin-right: auto; }

/* --- Hero --- */
.hero {
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 90px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.badge {
  display: inline-block;
  background: rgba(45, 212, 191, 0.15);
  color: var(--teal);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
}
.hero h1 { color: #fff; font-size: 46px; font-weight: 700; margin-top: 20px; }
.hero-sub { color: #cbd5e1; font-size: 19px; margin-top: 20px; max-width: 480px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { color: #94a3b8; font-size: 14px; margin-top: 16px; }

/* Aperçu illustré des modules dans le hero */
.hero-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.hero-dots { display: flex; gap: 6px; margin-bottom: 16px; }
.hero-dots span { width: 11px; height: 11px; border-radius: 50%; opacity: 0.7; }
.dot-r { background: #f87171; }
.dot-y { background: #fbbf24; }
.dot-g { background: #4ade80; }
.hero-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-mod {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
}
.hero-mod .emoji { font-size: 22px; }
.hero-mod p { font-weight: 500; color: #fff; margin-top: 4px; font-size: 14px; }

/* --- Cartes (problème) --- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.cards-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  text-align: center;
}
.card .emoji { font-size: 30px; }
.card h3 { font-size: 18px; font-weight: 600; margin-top: 12px; }
.card p { font-size: 14px; color: var(--text-soft); margin-top: 8px; }

/* --- Chiffres / résultats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.stat {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 20px;
  background: #fff;
  text-align: center;
}
.stat-num {
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.05;
}
.stat-label { margin-top: 10px; color: var(--text-soft); font-size: 15px; }
.stat-num small { font-size: 0.5em; font-weight: 600; color: var(--text-mut); }
/* Note en étoiles (façon avis) */
.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 16px;
}
.rating-stars { font-size: 26px; line-height: 1; letter-spacing: 2px; }
.rating-stars .on { color: #fbbf24; }
.rating-stars .off { color: #d1d5db; }
.rating-text { color: var(--text-soft); font-size: 15px; }
.rating-text strong { color: var(--text); font-size: 17px; }

/* Badge « Nouveau » (mise en avant d'un module récent) */
.tag-new {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  background: var(--teal);
  color: var(--navy);
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 2px 8px;
}

/* --- Encart phare (continuité des soins) --- */
.highlight {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--navy);
  color: #fff;
  border-radius: 20px;
  padding: 32px 34px;
  margin-top: 44px;
}
.highlight-icon { flex-shrink: 0; font-size: 40px; line-height: 1; }
.highlight h3 { color: #fff; font-size: 22px; font-weight: 700; }
.highlight p { color: #cbd5e1; margin-top: 10px; font-size: 16px; }

/* --- Fonctionnalités --- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.feature {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.feature:hover {
  border-color: rgba(30, 136, 229, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(30, 136, 229, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.feature h3 { font-size: 18px; font-weight: 600; margin-top: 16px; }
.feature p { font-size: 14px; color: var(--text-soft); margin-top: 8px; }

/* --- Aperçu en images (captures d'écran) --- */
.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
  align-items: start;
}
.shot { margin: 0; }
/* Capture verticale (connexion) : occupe la colonne de droite sur deux lignes,
   à côté du Répertoire et de la To-Do. */
.shot--tall {
  grid-column: 2;
  grid-row: 2 / span 2;
  align-self: center;
  text-align: center;
}
.shot--tall img {
  width: auto;
  max-width: 100%;
  max-height: 540px;
  margin: 0 auto;
}
.shot img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 36, 77, 0.12);
  cursor: zoom-in;
  transition: transform 0.15s, box-shadow 0.15s;
}
.shot img:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 36, 77, 0.2);
}
.shot figcaption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--text-soft);
  text-align: center;
}
.shot figcaption strong { color: var(--text); }

/* Vue agrandie d'une capture (au clic) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 36, 77, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

/* --- Pour qui (fond sombre) --- */
.dark-section { background: var(--navy); color: #fff; }
.dark-section h2 { color: #fff; font-size: 32px; font-weight: 700; }
.dark-section .lead { color: #cbd5e1; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: #e2e8f0; }
.check {
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.2);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-top: 2px;
}

/* --- FAQ --- */
.faq { max-width: 720px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 18px 20px;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { color: var(--primary); font-size: 20px; transition: transform 0.2s; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq details p { color: var(--text-soft); font-size: 15px; margin-top: 12px; }

/* --- Avis / Témoignages --- */
.reviews-empty {
  max-width: 560px;
  margin: 40px auto 0;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 36px 24px;
  background: var(--bg-soft);
}
.reviews-empty p { color: var(--text-soft); font-size: 17px; }
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.review {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  background: #fff;
}
.review > p { color: var(--text); font-size: 16px; font-style: italic; }
.review footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-soft);
  font-style: normal;
}
.review-avatar {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(30, 136, 229, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
/* Variante 2 témoignages : deux colonnes centrées */
.reviews--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Bandeau final --- */
.cta-band {
  background: var(--navy);
  color: #fff;
  border-radius: 24px;
  padding: 56px 24px;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.cta-band h2 { color: #fff; font-size: 32px; font-weight: 700; }
.cta-band p { color: #cbd5e1; font-size: 18px; margin: 16px auto 0; max-width: 520px; }
.cta-band .btn { margin-top: 28px; padding: 14px 32px; }

/* --- Formulaire de demande de devis --- */
.devis-form { max-width: 820px; margin: 36px auto 0; text-align: left; }
.form-error {
  max-width: 820px;
  margin: 20px auto 0;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field .req { color: #dc2626; }
.field .opt { color: var(--text-mut); font-weight: 400; font-size: 13px; }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
}
.field textarea { resize: vertical; }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}
.consent input { margin-top: 3px; flex: 0 0 16px; width: 16px; height: 16px; }
.consent a { color: var(--primary); }
.consent .req { color: #dc2626; }
.form-submit { margin-top: 22px; text-align: center; }
.form-submit .btn { border: none; cursor: pointer; font-size: 16px; padding: 13px 34px; }
/* Champ anti-spam (honeypot) — caché aux humains et aux lecteurs d'écran */
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Pages légales (mentions légales…) --- */
.legal { max-width: 760px; margin: 0 auto; padding: 60px 20px; }
.legal .back {
  display: inline-block;
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 24px;
}
.legal .back:hover { text-decoration: underline; }
.legal h1 { font-size: 32px; font-weight: 700; }
.legal .updated { color: var(--text-mut); font-size: 14px; margin-top: 6px; }
.legal h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 36px;
  padding-top: 4px;
}
.legal p { color: var(--text-soft); margin-top: 12px; }
.legal ul { color: var(--text-soft); margin-top: 12px; padding-left: 20px; }
.legal li { margin-top: 6px; }
.legal a { color: var(--primary); }
.legal a:hover { text-decoration: underline; }

/* Repère jaune pour les informations à compléter */
.placeholder {
  background: #fef3c7;
  color: #92400e;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.92em;
  font-style: italic;
}

/* --- Pied de page --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  color: var(--text-mut);
  font-size: 14px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 8px;
}
.site-footer a:hover { color: var(--primary); text-decoration: underline; }

/* --- Bandeau de consentement cookies (Google Analytics) --- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 36, 77, 0.18);
  padding: 20px 22px;
}
.cookie-banner p { margin: 0 0 14px; font-size: 14px; color: var(--text-soft); line-height: 1.5; }
.cookie-banner a { color: var(--primary); }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner-actions button {
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.cookie-accept { background: var(--primary); color: #fff; }
.cookie-accept:hover { background: var(--primary-dark); }
.cookie-refuse { background: var(--bg-soft); color: var(--text-soft); }
.cookie-refuse:hover { background: var(--border); }

/* --- Responsive (téléphones / tablettes) --- */
@media (max-width: 860px) {
  .header-nav { display: none; }             /* menu masqué sur mobile */
  .hero-grid { grid-template-columns: 1fr; padding: 60px 20px; }
  .hero h1 { font-size: 34px; }
  .split { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .reviews--2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .shot--tall { grid-column: auto; grid-row: auto; align-self: auto; }
  .highlight { flex-direction: column; padding: 26px; }
  section { padding: 56px 0; }
  h2.section-title, .dark-section h2, .cta-band h2 { font-size: 26px; }
}
