/* ==========================================================================
   TourSolver by DO&GO : thème 2027 (refonte globale)
   Chargé EN DERNIER sur toutes les pages, après style.css et les <style>
   internes. Ne change pas la palette : vert #79BA3E, vert foncé #4F5F27,
   bleu #0A66FF, encre #1D1D1B. Apporte la typographie, les rayons, les
   cartes, la nav translucide et les composants de la page d'accueil.
   ========================================================================== */

:root {
  --t-ink: #1D1D1B;
  --t-muted: #5c5d55;
  --t-line: #E1E4DC;
  --t-panel: #EEF3E6;
  --t-soft: #F6F8F3;
  --t-green: #79BA3E;
  --t-green-d: #4F5F27;
  --t-blue: #0A66FF;
  --t-font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --t-r: 22px;
  /* alias des deux jeux de variables existants */
  --color-bg: #ffffff;
  --color-text-muted: #5c5d55;
  --texte-2: #5c5d55;
  --radius: 18px;
}

/* ----- Base ----- */
html body {
  font-family: var(--t-font);
  background: #ffffff;
  color: var(--t-ink);
  -webkit-font-smoothing: antialiased;
}
html body h1,
html body h2,
html body h3 {
  font-family: var(--t-font);
  letter-spacing: -0.02em;
}
html body h1 {
  font-weight: 800;
  line-height: 1.06;
  color: var(--t-ink);
  font-size: clamp(2.125rem, 4.4vw, 3.4rem);
}
html body h2 {
  font-weight: 800;
  line-height: 1.1;
  color: var(--t-ink);
}
html body h3 { font-weight: 700; letter-spacing: -0.01em; }
html body .page-content h1 { color: var(--t-ink); font-size: clamp(2.125rem, 4.4vw, 3.25rem); }
html body .content-section h2 { font-weight: 800; font-size: clamp(1.75rem, 3vw, 2.4rem); color: var(--t-ink); }
html body .content-section h3 { font-weight: 700; }
html body .lede,
html body .chapo { color: var(--t-muted); font-size: 1.125rem; }
html body a:focus-visible,
html body button:focus-visible,
html body summary:focus-visible { outline: 3px solid var(--t-blue); outline-offset: 3px; }

/* ----- Navigation : barre blanche translucide ----- */
html body .nav {
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
html body .nav-liens a,
html body .nav-parent { font-weight: 500; font-size: 0.9375rem; }
html body .nav-liens a:hover,
html body .nav-parent:hover { color: var(--t-green-d); text-decoration: none; }
html body .nav-dropdown-panel { border-radius: 16px; padding: 0.5rem; }
html body .nav-dropdown-panel a { border-radius: 10px; font-weight: 500; }
html body a.nav-badge { font-weight: 700; background: #fff; }
html body a.nav-badge svg { color: var(--t-green); }
html body .nav-liens a.nav-btn-roi { font-weight: 700; }

/* ----- Boutons : pilules, bleu = action, contour vert = secondaire ----- */
html body .btn,
html body .btn-primary,
html body .btn-secondary {
  font-family: var(--t-font);
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0;
}
html body .btn-secondary { background: #fff; color: var(--t-ink); }

/* ----- Cartes et encarts : rayons généreux, filets fins ----- */
html body .tool-card,
html body .info-card,
html body .form-card,
html body .form-carte,
html body .carte,
html body .choix,
html body .phase,
html body .hero-visuel,
html body .roi-groupe,
html body .wizard {
  border-radius: var(--t-r);
}
html body .tool-card,
html body .info-card,
html body .carte,
html body .choix {
  border: 1px solid var(--t-line);
  box-shadow: none;
  transition: border-color 150ms ease-out, transform 150ms ease-out;
}
html body a.tool-card:hover,
html body a.choix-lien:hover,
html body .acc-never:hover {
  border-color: var(--t-green);
  box-shadow: none;
  transform: translateY(-3px);
}
html body .promo-card { border-radius: var(--t-r); border-top: 0; border: 2px solid var(--t-green); }
html body .promo-card__kicker,
html body .surtitre {
  display: inline-block;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  font-size: 0.875rem;
  background: var(--t-panel);
  color: var(--t-green-d);
  padding: 0.3em 0.9em;
  border-radius: 999px;
}
html body .integrateur .surtitre { background: rgba(255, 255, 255, .12); color: #cfe8b0; }
html body .promo-card__links a { border-radius: 999px; padding: 0.6rem 1rem; }

/* Chiffres clés */
html body .stat-tile,
html body .chiffre {
  border: 1px solid var(--t-line);
  border-top: 0;
  background: #fff;
  border-radius: var(--t-r);
  text-align: left;
}
html body .stat-value,
html body .chiffre-valeur {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--t-green-d);
}
html body .stat-value { font-size: 1.9rem; }

/* Sections alternées des pages « Vos usages » / démo */
html body .section-blanche { background: var(--t-soft); }
html body .section-blanche .carte { background: #fff; border-color: var(--t-line); }
html body .section-blanche .carte-icone { background: var(--t-panel); }
html body .carte-icone { border-radius: 14px; }

/* Bloc intégrateur : bande vert foncé au lieu du noir */
html body .integrateur { border-radius: 28px; }
html body .integrateur-tete { background: var(--t-green-d); }
html body .integrateur .intro-section { color: #dfe8d2; }
html body .integrateur-accroche { color: #cfe8b0; }

/* Tableaux */
html body table { border-radius: 18px; }
html body thead th { background: var(--t-green-d); font-weight: 700; }

/* FAQ : accordéons à filets */
html body .faq details {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--t-line);
  border-radius: 0;
  margin: 0;
}
html body .faq summary {
  color: var(--t-ink);
  font-weight: 700;
  font-size: 1.0625rem;
  padding: 1.1rem 2.5rem 1.1rem 0;
}
html body .faq summary:hover { background: transparent; color: var(--t-green-d); }
html body .faq summary::after { right: 0.25rem; border-color: var(--t-green); }
html body .faq details[open] summary { border-bottom: 0; }
html body .faq .reponse { padding: 0 0 1.25rem; }

/* Formulaires */
html body input:not([type="checkbox"]):not([type="radio"]),
html body select,
html body textarea {
  font-family: var(--t-font);
  border-radius: 12px;
}

/* Vidéo et images */
html body .video-wrap,
html body .hero-image,
html body .article-cover { border-radius: var(--t-r); }

/* Pied de page bleu */
html body .site-footer { font-family: var(--t-font); }
html body .site-footer .footer-col-titre,
html body .site-footer .footer-col h3 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  font-weight: 700;
}
html body .site-footer .footer-logo-wrap { border-radius: 12px; }

@media (prefers-reduced-motion: reduce) {
  html body .tool-card,
  html body .info-card,
  html body .carte,
  html body .choix { transition: none; }
  html body a.tool-card:hover,
  html body a.choix-lien:hover,
  html body .acc-never:hover { transform: none; }
}

/* ==========================================================================
   Page d'accueil (classes acc-*)
   ========================================================================== */

.acc { flex: 1; width: 100%; }
.acc-band { padding-block: clamp(2.75rem, 6vw, 5.5rem); }
.acc-wrap { max-width: 77.5rem; margin: 0 auto; padding-inline: max(5vw, 16px); }
.acc p { margin: 0; }
.acc h1, .acc h2, .acc h3 { margin: 0; }
.acc h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.acc h3 { font-size: 1.25rem; }
.acc-muted { color: var(--t-muted); }

/* hero */
.acc-hero .acc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.75rem, 4vw, 4rem); align-items: center; }
.acc-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--t-panel); color: var(--t-green-d); font-weight: 700; font-size: 0.875rem; margin-bottom: 1.4rem; }
.acc-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--t-green); box-shadow: 0 0 0 4px rgba(121, 186, 62, .3); }
.acc-hero .lede { margin: 1.25rem 0 1.75rem; max-width: 34em; font-size: 1.125rem; }
.acc-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.acc-ctas .btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.4rem; white-space: nowrap; }
.acc-btn-line { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; border: 2px solid var(--t-green); background: #fff; color: var(--t-ink); font-weight: 700; white-space: nowrap; transition: transform 150ms ease-out, box-shadow 150ms ease-out; }
.acc-btn-line:hover { color: var(--t-ink); text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(79, 95, 39, .18); }
.acc-mini { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 2rem; color: var(--t-muted); font-size: 0.875rem; }
.acc-mini b { color: var(--t-ink); }
.acc-map { position: relative; aspect-ratio: 6 / 5; border-radius: 28px; background: var(--t-panel); overflow: hidden; border: 1px solid var(--t-line); }
.acc-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.acc-float { position: absolute; background: #fff; border: 1px solid var(--t-line); border-radius: 16px; padding: 12px 16px; font-size: 0.875rem; line-height: 1.35; box-shadow: 0 8px 24px rgba(29, 29, 27, .08); }
.acc-float b { display: block; font-size: 1.25rem; letter-spacing: -0.01em; }
.acc-f1 { top: 6%; left: 5%; }
.acc-f1 b { color: var(--t-green-d); }
.acc-f2 { right: 5%; top: 38%; }
.acc-f3 { left: 6%; bottom: 6%; display: flex; align-items: center; gap: 10px; }
.acc-api { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--t-blue); margin-right: 6px; }
.acc-faces { display: flex; }
.acc-faces span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.acc-faces span:first-child { margin-left: 0; }
.acc-note { font-size: 0.8125rem; color: var(--t-muted); margin-top: 0.6rem !important; text-align: right; }
@media (max-width: 860px) { .acc-hero .acc-wrap { grid-template-columns: minmax(0, 1fr); } .acc-f2 { top: auto; bottom: 24%; } }
@media (max-width: 480px) { .acc-float { padding: 8px 12px; font-size: 0.8125rem; } .acc-float b { font-size: 1rem; } .acc-f2 { display: none; } }

/* chiffres */
.acc-figs { border-block: 1px solid var(--t-line); }
.acc-figs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11em, 1fr)); gap: 1.75rem; }
.acc-fig-n { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; color: var(--t-green-d); white-space: nowrap; }
.acc-fig-l { color: var(--t-muted); font-size: 0.9375rem; }
.acc-src { margin-top: 1.1rem !important; font-size: 0.8125rem; color: var(--t-muted); }

/* en-tête de section */
.acc-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: 2.75rem; }
.acc-head p { color: var(--t-muted); font-size: 1.0625rem; }
@media (max-width: 760px) { .acc-head { grid-template-columns: minmax(0, 1fr); } }

/* flux données -> IA -> terrain */
.acc-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.acc-step { background: #fff; border: 1px solid var(--t-line); border-radius: var(--t-r); padding: 1.6rem; }
.acc-step svg { width: 100%; height: 120px; margin-bottom: 1.1rem; display: block; }
.acc-step h3 { margin-bottom: 0.5rem; }
.acc-step p { color: var(--t-muted); }
.acc-tag { display: inline-block; font-size: 0.8125rem; font-weight: 700; color: var(--t-green-d); background: var(--t-panel); padding: 3px 10px; border-radius: 999px; margin-bottom: 0.75rem; }
@media (max-width: 860px) { .acc-flow { grid-template-columns: minmax(0, 1fr); } }
.acc-photo { display: block; width: 100%; height: clamp(220px, 34vw, 440px); object-fit: cover; object-position: center 40%; border-radius: 28px; margin-top: 2.5rem; }

/* développement */
.acc-dev { background: var(--t-green-d); color: #fff; }
.acc-dev .acc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; }
.acc-dev h2 { color: #fff; margin-bottom: 1.1rem; }
.acc-dev p { color: #dfe8d2; }
.acc-dev ul { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.9rem; }
.acc-dev li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.acc-dev li svg { width: 28px; height: 28px; }
.acc-dev li b { color: #fff; }
.acc-code { background: #121a0c; border: 1px solid #3d4a22; border-radius: 20px; padding: 22px; font: 14px/1.7 ui-monospace, Consolas, monospace; color: #cfe3b8; overflow-x: auto; }
.acc-code pre { margin: 0; white-space: pre; font: inherit; }
.acc-code .k { color: #9fd36b; } .acc-code .s { color: #ffd28a; } .acc-code .c { color: #8a9a78; }
.acc-code-top { display: flex; gap: 6px; margin-bottom: 14px; }
.acc-code-top i { width: 10px; height: 10px; border-radius: 50%; background: #3d4a22; }
@media (max-width: 860px) { .acc-dev .acc-wrap { grid-template-columns: minmax(0, 1fr); } }

/* méthode ensemble */
.acc-road { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.acc-road::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; border-top: 3px dashed var(--t-green); }
.acc-stop { position: relative; padding-right: 1.4rem; }
.acc-dot { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 3px solid var(--t-green); display: grid; place-items: center; margin-bottom: 1.1rem; position: relative; }
.acc-dot svg { width: 26px; height: 26px; }
.acc-stop h3 { margin-bottom: 0.4rem; }
.acc-stop p { color: var(--t-muted); font-size: 0.9375rem; }
.acc-who { display: block; margin-top: 0.6rem; font-size: 0.8125rem; font-weight: 700; color: var(--t-blue); }
@media (max-width: 860px) {
  .acc-road { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .acc-road::before { left: 27px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 3px dashed var(--t-green); }
  .acc-stop { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 1.1rem; padding-right: 0; }
  .acc-dot { grid-row: span 3; margin: 0; }
}

/* contraintes + métiers */
.acc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .acc-split { grid-template-columns: minmax(0, 1fr); } }
.acc-box { border: 2px solid var(--t-line); border-radius: var(--t-r); padding: 1.75rem; }
.acc-box h3 { font-size: 1.5rem; }
.acc-cbar { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 4px 14px; align-items: center; margin-top: 1.1rem; }
.acc-cbar b { font-size: 1.9rem; letter-spacing: -0.02em; color: var(--t-green-d); }
.acc-track { height: 12px; border-radius: 6px; background: var(--t-panel); overflow: hidden; }
.acc-track i { display: block; height: 100%; background: var(--t-green); border-radius: 6px; }
.acc-cbar small { grid-column: 2; color: var(--t-muted); font-size: 0.875rem; }
.acc-jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.1rem; }
.acc-job { background: var(--t-panel); border-radius: 16px; padding: 1rem; }
.acc-job b { display: block; margin-bottom: 0.25rem; }
.acc-job span { font-size: 0.875rem; color: var(--t-muted); }
@media (max-width: 480px) { .acc-jobs { grid-template-columns: minmax(0, 1fr); } }

/* partage */
.acc-partage { background: var(--t-panel); }
.acc-res { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.acc-r { display: flex; flex-direction: column; gap: 0.6rem; border: 1px solid var(--t-line); border-radius: var(--t-r); padding: 1.5rem; background: #fff; color: var(--t-ink); transition: border-color 150ms ease-out, transform 150ms ease-out; }
.acc-r:hover { border-color: var(--t-green); transform: translateY(-3px); color: var(--t-ink); text-decoration: none; }
.acc-r .acc-tag { align-self: flex-start; margin: 0; }
.acc-r p { color: var(--t-muted); font-size: 0.9375rem; flex: 1; }
.acc-r em { font-style: normal; font-weight: 700; color: var(--t-blue); }
@media (max-width: 1000px) { .acc-res { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .acc-res { grid-template-columns: minmax(0, 1fr); } }

/* vidéo */
.acc-video .acc-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2.5rem; align-items: center; }
.acc-video .video-wrap { margin: 0; }
@media (max-width: 860px) { .acc-video .acc-wrap { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.acc-faq .acc-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2.5rem; }
.acc-faq .faq { max-width: none; margin: 0; }
.acc-faq .faq details[open] summary { color: var(--t-ink); }
@media (max-width: 860px) { .acc-faq .acc-wrap { grid-template-columns: minmax(0, 1fr); } }

/* appel final */
.acc-cta-box { background: var(--t-panel); border-radius: 32px; padding: clamp(1.75rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 1.75rem; align-items: center; border: 2px solid var(--t-green); }
.acc-cta-box p { color: var(--t-muted); margin-top: 0.75rem; font-size: 1.0625rem; }
.acc-cta-box .btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.4rem; white-space: nowrap; }
@media (max-width: 760px) { .acc-cta-box { grid-template-columns: minmax(0, 1fr); } .acc-cta-box .btn { white-space: normal; } }
.acc ~ .site-footer { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .acc-r, .acc-btn-line { transition: none; }
  .acc-r:hover, .acc-btn-line:hover { transform: none; }
}
