/* robinthailand.com — feuille de style commune à toutes les pages */

:root {
  --ink: #18212c;
  --muted: #5b6876;
  --line: #e7e1d8;
  --bg: #fbf8f3;
  --card: #ffffff;
  --red: #c8102e;      /* rouge du drapeau thaïlandais */
  --blue: #23305f;     /* bleu du drapeau thaïlandais */
  --gold: #d9a441;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--blue); }
img { max-width: 100%; display: block; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* --- En-tête --- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--red); }
.nav { display: flex; gap: 22px; list-style: none; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--red); }
.nav-accueil { display: none; } /* maison : seulement dans le menu mobile */

/* --- Bandeau d'accueil --- */
.hero { padding: 72px 0 56px; }
.hero .eyebrow { color: var(--red); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12; letter-spacing: -0.03em; margin: 12px 0 18px; max-width: 18ch; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.hero .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block; padding: 13px 22px; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 2px solid var(--blue); font-size: 1rem;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1a2449; }
.btn-ghost { color: var(--blue); background: transparent; }
.btn-ghost:hover { background: rgba(35, 48, 95, 0.06); }

/* --- Sections --- */
.section { padding: 56px 0; }
.section h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; margin-bottom: 8px; }
.section .intro { color: var(--muted); max-width: 62ch; margin-bottom: 28px; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }

/* --- Cartes d'outils --- */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tool {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative;
  text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s;
}
a.tool:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(24, 33, 44, 0.08); }
.tool .icon { font-size: 1.8rem; line-height: 1; }
.tool h3 { font-size: 1.1rem; }
.tool p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.tool .status { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em; }
.status-soon { color: var(--gold); }
.status-live { color: #1f8a4c; }
.tool.is-soon { opacity: 0.85; }

/* --- Points forts --- */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.point h3 { font-size: 1.05rem; margin-bottom: 6px; }
.point p { color: var(--muted); font-size: 0.97rem; }

/* --- À propos --- */
.about { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: center; }
.about .photo {
  width: 180px; height: 180px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--red));
  display: grid; place-items: center; color: #fff; font-size: 3.4rem; font-weight: 800;
}
.about p + p { margin-top: 12px; }
@media (max-width: 680px) {
  .about { grid-template-columns: 1fr; text-align: center; }
  .about .photo { margin-inline: auto; }
  .nav { display: none; }
}

/* Menu burger (mobile) : menu principal en plein écran */
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; margin-right: -10px; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
@media (max-width: 680px) {
  .burger { display: flex; }
  body.menu-ouvert { overflow: hidden; }
  body.menu-ouvert .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  body.menu-ouvert .nav {
    display: flex; position: fixed; inset: 64px 0 0 0; z-index: 100;
    flex-direction: column; align-items: center; justify-content: center; gap: 34px;
    background: var(--bg); animation: menu-entree .2s ease-out;
  }
  body.menu-ouvert .nav a { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
  body.menu-ouvert .nav-accueil { display: block; }
  .nav-accueil a { display: flex; justify-content: center; color: var(--ink); }
  body.menu-ouvert .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.menu-ouvert .burger span:nth-child(2) { opacity: 0; }
  body.menu-ouvert .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@keyframes menu-entree { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* --- Avertissement --- */
.notice {
  background: #fff7e6; border: 1px solid #f1d59a; border-radius: var(--radius);
  padding: 16px 20px; font-size: 0.93rem; color: #5a4512;
}

/* --- Pied de page --- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.9rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.pied-grille { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px 40px; }
.pied-marque p { margin-top: 10px; max-width: 34ch; }
.pied-copyright { font-size: 0.85rem; }
a.pied-logo { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
a.pied-logo:hover { color: var(--ink); text-decoration: none; }
.pied-logo span { color: var(--red); }
.pied-logo img { display: inline-block; width: 30px; height: 30px; border-radius: 7px; vertical-align: middle; margin: -4px 8px 0 0; }
.pied-titre { font-weight: 700; color: var(--ink); font-size: 0.95rem; margin-bottom: 10px; }
@media (max-width: 760px) {
  .pied-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pied-marque { grid-column: 1 / -1; }
}

/* ======================================================================
   Décor commun : motif léger inspiré des toits et lotus thaïlandais
   ====================================================================== */
.hero, .page-hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px; z-index: -1;
  background: radial-gradient(closest-side, rgba(217, 164, 65, 0.22), transparent 70%);
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: auto auto -55% -12%; width: 560px; height: 560px; z-index: -1;
  background: radial-gradient(closest-side, rgba(200, 16, 46, 0.10), transparent 70%);
}
.wrap-etroit { width: min(100% - 40px, 820px); margin-inline: auto; }
.btn { cursor: pointer; font-family: inherit; transition: transform .15s, background .15s; }
.btn:active { transform: scale(0.98); }
a.tool.is-live { opacity: 1; border-color: rgba(35, 48, 95, 0.25); box-shadow: 0 4px 18px rgba(35, 48, 95, 0.07); }
a.tool.is-live h3::after { content: " →"; color: var(--red); }

/* ======================================================================
   Page outil : bandeau
   ====================================================================== */
.page-hero { padding: 40px 0 120px; background: linear-gradient(160deg, #1d2852 0%, #23305f 55%, #3a2a5c 100%); color: #fff; }
.page-hero::before { background: radial-gradient(closest-side, rgba(217, 164, 65, 0.35), transparent 70%); }
.page-hero::after { background: radial-gradient(closest-side, rgba(200, 16, 46, 0.35), transparent 70%); }
.page-hero .wrap { width: min(100% - 40px, 820px); }
.page-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.12; letter-spacing: -0.03em; margin: 14px 0 14px; }
.page-hero .lead { color: rgba(255, 255, 255, 0.82); font-size: 1.12rem; max-width: 62ch; }
.fil { font-size: 0.88rem; color: rgba(255, 255, 255, 0.65); }
.fil a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.fil a:hover { text-decoration: underline; }
.page-hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.page-hero-points li { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); padding: 6px 14px; border-radius: 999px; font-size: 0.9rem; }

.maj { margin-top: 18px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 1.4em; }
.maj-point { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2); }
.maj-vieux .maj-point { background: var(--gold); box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.25); }
.maj-alerte { flex-basis: 100%; background: rgba(217, 164, 65, 0.18); border: 1px solid rgba(217, 164, 65, 0.45); color: #fff; padding: 8px 12px; border-radius: 10px; }

/* ======================================================================
   Simulateur : questions
   ====================================================================== */
.sim-zone { margin-top: -88px; padding-bottom: 40px; position: relative; z-index: 2; }
.sim-charge { background: #fff; border-radius: 20px; padding: 40px; text-align: center; color: var(--muted); box-shadow: 0 20px 50px rgba(24, 33, 44, 0.12); }
.sim-carte {
  background: #fff; border-radius: 22px; padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 24px 60px rgba(24, 33, 44, 0.14), 0 2px 6px rgba(24, 33, 44, 0.05);
  border: 1px solid rgba(231, 225, 216, 0.7);
}
.sim-entree { animation: entree .35s ease both; }
@keyframes entree { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sim-entree { animation: none; } html { scroll-behavior: auto; } }

.sim-haut { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.sim-barre { flex: 1; height: 8px; background: #f0ebe3; border-radius: 99px; overflow: hidden; }
.sim-barre span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); border-radius: 99px; transition: width .4s ease; }
.sim-compte { font-size: 0.85rem; color: var(--muted); white-space: nowrap; font-weight: 600; }
.sim-question { font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.25; letter-spacing: -0.02em; }
.sim-aide { color: var(--muted); margin-top: 8px; font-size: 0.97rem; }

.sim-choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 24px; }
.sim-choix-peu { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.sim-choix-grand { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.sim-option {
  display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; color: var(--ink);
  background: var(--bg); border: 2px solid transparent; border-radius: 16px; padding: 16px 18px; cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.sim-option:hover { border-color: rgba(35, 48, 95, 0.35); background: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(24, 33, 44, 0.07); }
.sim-option:focus-visible { outline: 3px solid rgba(217, 164, 65, 0.6); outline-offset: 2px; }
.sim-option.actif { border-color: var(--blue); background: #fff; }
.sim-icone { font-size: 1.7rem; line-height: 1; flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(24, 33, 44, 0.08); }
.sim-libelle { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.sim-libelle small { display: block; font-weight: 400; color: var(--muted); font-size: 0.86rem; margin-top: 3px; }

.sim-nombre { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.sim-champ { display: flex; align-items: center; background: var(--bg); border: 2px solid var(--line); border-radius: 16px; padding: 4px 18px 4px 6px; transition: border-color .15s; }
.sim-champ:focus-within { border-color: var(--blue); background: #fff; }
.sim-champ input { border: 0; background: transparent; font: inherit; font-size: 1.6rem; font-weight: 700; width: 190px; padding: 10px 12px; color: var(--ink); outline: none; }
.sim-unite { color: var(--muted); font-weight: 600; }
.sim-erreur { flex-basis: 100%; color: var(--red); font-size: 0.92rem; }
.sim-retour { margin-top: 26px; background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; padding: 6px 0; }
.sim-retour:hover { color: var(--ink); }
.sim-centre { text-align: center; }
.sim-centre p { color: var(--muted); max-width: 56ch; margin: 10px auto 0; }
.sim-grand-icone { font-size: 3rem; margin-bottom: 8px; }

/* ======================================================================
   Simulateur : résultat
   ====================================================================== */
.res { display: grid; gap: 18px; }
.res-alerte { background: #fff7e6; border: 1px solid #f1d59a; color: #5a4512; border-radius: 14px; padding: 14px 18px; font-size: 0.95rem; }
.res-reco {
  position: relative; background: #fff; border-radius: 22px; padding: clamp(24px, 4vw, 40px); padding-top: 56px;
  box-shadow: 0 24px 60px rgba(24, 33, 44, 0.14); border: 2px solid rgba(217, 164, 65, 0.55);
}
.res-ruban {
  position: absolute; top: 0; left: clamp(24px, 4vw, 40px); transform: translateY(-50%);
  background: linear-gradient(90deg, var(--red), #e0573a); color: #fff; font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; box-shadow: 0 6px 16px rgba(200, 16, 46, 0.3);
}
.res-reco h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.02em; line-height: 1.15; }
.res-cat { font-size: 0.55em; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.res-accroche { color: var(--muted); font-size: 1.08rem; margin-top: 6px; }
.res-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.badge { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 7px 12px; font-size: 0.88rem; line-height: 1.3; }
.badge b { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.badge-ok { background: #ecf8f0; border-color: #bfe5cc; color: #1f6b3f; align-self: center; font-weight: 600; }
.badge-warn { background: #fff7e6; border-color: #f1d59a; color: #6b5215; align-self: center; font-weight: 600; }
.res-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 32px; margin-top: 18px; }
.res h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); margin: 16px 0 8px; }
.res ul { list-style: none; display: grid; gap: 7px; }
.res li { position: relative; padding-left: 28px; font-size: 0.97rem; }
.res li::before { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; }
.coches li::before { content: "✓"; background: #e3f5ea; color: #1f8a4c; }
.puces li::before { content: "•"; background: #eef0f7; color: var(--blue); font-size: 1rem; }
.croix li::before { content: "!"; background: #fdecee; color: var(--red); }
.puces.petites li { font-size: 0.9rem; }
.res-notes { margin-top: 18px; background: var(--bg); border-radius: 14px; padding: 4px 18px 16px; }
.res-notes p { font-size: 0.97rem; }
.res-ou { margin-top: 18px; font-size: 0.93rem; color: var(--muted); }
.res-ou a { font-weight: 600; white-space: nowrap; }

.res-app {
  display: flex; gap: 18px; align-items: flex-start; border-radius: 20px; padding: 22px 24px; color: #fff;
  background: linear-gradient(135deg, var(--blue), #3a2a5c);
}
.res-app h3 { color: #fff; text-transform: none; letter-spacing: -0.01em; font-size: 1.15rem; margin: 6px 0 4px; }
.res-app p { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }
.res-app-icone { font-size: 2rem; background: rgba(255, 255, 255, 0.12); width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.res-app-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--gold); color: #2b1f05; padding: 3px 10px; border-radius: 999px; }

.res-titre { font-size: 1.3rem; letter-spacing: -0.01em; margin-top: 14px; }
.res-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.res-alt, .res-presque { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.res-alt h3, .res-presque h3 { font-size: 1.1rem; text-transform: none; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 4px; }
.res-alt p, .res-presque p { color: var(--muted); font-size: 0.93rem; }
.res-presque { border-style: dashed; border-color: #e8c77f; background: #fffdf7; }
.res-manque { margin-top: 12px; background: #fff3d6; border-radius: 12px; padding: 10px 14px; font-size: 0.93rem; color: #4d3a0d; }
.res-aucun { background: #fff; border-radius: 22px; padding: 30px; box-shadow: 0 24px 60px rgba(24, 33, 44, 0.12); }
.res-aucun p { color: var(--muted); margin-top: 6px; }

.res-exclus { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.res-exclus summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--muted); }
.res-exclus ul { padding-bottom: 16px; }
.res-exclus li { font-size: 0.92rem; color: var(--muted); padding-left: 0; }
.res-exclus li::before { display: none; }
.res-exclus b { color: var(--ink); }
.res-petit { font-size: 0.85rem; color: var(--muted); }
.res-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn-fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.btn-fb:hover { background: #0f63d1; }

@media (max-width: 560px) {
  .sim-choix, .sim-choix-grand, .sim-choix-peu { grid-template-columns: 1fr; }
  .sim-champ input { width: 140px; }
  .res-app { flex-direction: column; }
}
.section p + p { margin-top: 12px; }
.section .notice { margin-top: 20px; }
.res-manque ul { margin-top: 8px; }
.res-manque li { font-size: 0.92rem; }

/* ======================================================================
   Pages de texte (légales, guides)
   ====================================================================== */
.texte-page { padding: 40px 0 64px; }
.texte-page h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.15; margin: 12px 0 6px; }
.texte-page h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin: 34px 0 10px; }
.texte-page p { margin-top: 12px; }
.texte-page a { font-weight: 500; }
.texte-maj { color: var(--muted); font-size: 0.9rem; }
.fil-sombre { color: var(--muted); }
.fil-sombre a { color: var(--blue); }
.liste-texte { margin: 12px 0 0 22px; display: grid; gap: 6px; }
mark.a-completer { background: #fff1c2; color: #6b4e00; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.contact-mail { margin: 26px 0 8px; }

/* --- Outil mis en avant (accueil) --- */
.tool-vedette {
  display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
  background: #fff; border: 1px solid rgba(35, 48, 95, 0.18); border-radius: 22px; padding: 30px 32px;
  text-decoration: none; color: var(--ink); box-shadow: 0 14px 40px rgba(24, 33, 44, 0.08);
  transition: transform .15s, box-shadow .15s;
}
.tool-vedette { position: relative; }
.tv-numero {
  position: absolute; top: -14px; left: 22px; min-width: 46px; height: 30px; padding: 0 10px; border-radius: 99px;
  display: grid; place-items: center; grid-auto-flow: column; gap: 1px;
  background: var(--red); color: #fff; font-weight: 800; font-size: 1rem; box-shadow: 0 6px 16px rgba(200, 16, 46, 0.3);
}
.tv-numero small { font-size: 0.72rem; font-weight: 600; opacity: 0.85; }
.tool-vedette:hover { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(24, 33, 44, 0.12); }
.tv-icone { font-size: 2.6rem; width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, #eef0f7, #fdf3e1); }
.tv-texte h3 { font-size: 1.45rem; letter-spacing: -0.02em; margin: 4px 0 6px; }
.tv-texte p { color: var(--muted); }
.tv-projets { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tv-projets li { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: 0.85rem; }
.tv-bouton { white-space: nowrap; }
.outils-suite { color: var(--muted); font-size: 0.92rem; margin-top: 16px; text-align: center; }
/* Accueil : les outils sur deux colonnes en PC, pour les voir tous dès l'arrivée */
.outils-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px 22px; padding-top: 14px; }
.outils-grille .tool-vedette { min-width: 0; }
@media (min-width: 900px) {
  .outils-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .outils-grille .tool-vedette { grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; align-items: start; gap: 18px 20px; padding: 26px; }
  .outils-grille .tv-icone { width: 64px; height: 64px; font-size: 2rem; border-radius: 18px; }
  .outils-grille .tv-texte h3 { font-size: 1.25rem; }
  .outils-grille .tv-bouton { grid-column: 1 / -1; justify-self: start; }
  .outils-grille .tv-texte p { margin: 0; }
  .outils-grille .tv-projets { display: none; }
}
@media (max-width: 760px) {
  .tool-vedette { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 16px; }
  .tv-bouton { text-align: center; white-space: normal; }
}

/* ======================================================================
   Fiches visa et sommaire
   ====================================================================== */
.page-hero-fiche { padding-bottom: 56px; }
.fiche-icone { font-size: 2.4rem; width: 70px; height: 70px; display: grid; place-items: center; border-radius: 20px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); margin-top: 18px; }
.fiche-faits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.fiche-faits div { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 14px; padding: 9px 16px; font-weight: 600; }
.fiche-faits b { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.65); font-weight: 700; }

.fiche-corps { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 44px 0 64px; align-items: start; }
.fiche-texte h2 { font-size: 1.45rem; letter-spacing: -0.02em; margin: 36px 0 12px; }
.fiche-texte h2:first-child { margin-top: 0; }
.fiche-texte p { margin-top: 12px; }
.liste-fiche { list-style: none; display: grid; gap: 10px; margin-top: 12px; }
.liste-fiche li { position: relative; padding-left: 30px; }
.liste-fiche li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #e3f5ea; color: #1f8a4c; font-size: 0.72rem; font-weight: 800; display: grid; place-items: center; }
.liste-pieges li::before { content: "!"; background: #fdecee; color: var(--red); }

.tableau-defile { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.tableau { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.tableau th, .tableau td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tableau thead th { background: #f4f1ec; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.tableau tbody th { font-weight: 700; white-space: nowrap; }
.tableau tr:last-child th, .tableau tr:last-child td { border-bottom: 0; }

.mot-robin { display: flex; gap: 18px; align-items: flex-start; margin-top: 36px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 16px; padding: 20px 22px; }
.mot-robin-photo { flex: none; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--red)); color: #fff; font-weight: 800; font-size: 1.4rem; display: grid; place-items: center; }
.mot-robin h3 { font-size: 1.05rem; }
.mot-robin p { margin-top: 6px; }

.faq { display: grid; gap: 10px; margin-top: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.3rem; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }
.fiche-source { margin-top: 30px; font-size: 0.9rem; color: var(--muted); }

.fiche-cote { position: sticky; top: 88px; display: grid; gap: 18px; }
.cta-simulateur { background: linear-gradient(160deg, #1d2852, #3a2a5c); color: #fff; border-radius: 20px; padding: 24px; }
.cta-simulateur h2 { font-size: 1.2rem; margin: 10px 0 6px; }
.cta-simulateur p { color: rgba(255, 255, 255, 0.8); font-size: 0.94rem; margin-bottom: 16px; }
.cta-simulateur .btn-primary { background: #fff; color: var(--blue); border-color: #fff; }
.cta-icone { font-size: 1.8rem; }
.autres-visas { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.autres-visas h2 { font-size: 1rem; margin-bottom: 10px; }
.autres-visas ul { list-style: none; display: grid; gap: 4px; }
.autres-visas a { display: block; padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 0.93rem; }
.autres-visas a:hover { background: var(--bg); color: var(--red); }

.sommaire-cta { margin-top: -28px; position: relative; }
.visas-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 34px 0; }
.visa-carte { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.visa-carte:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(24, 33, 44, 0.09); }
.visa-carte-icone { font-size: 1.8rem; }
.visa-carte h2 { font-size: 1.15rem; letter-spacing: -0.01em; }
.visa-carte p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.visa-carte-faits { font-size: 0.82rem; font-weight: 600; color: var(--blue); }
.sommaire-notice { margin-bottom: 60px; }

@media (max-width: 900px) {
  .fiche-corps { grid-template-columns: 1fr; }
  .fiche-cote { position: static; }
}
.res-fiche { margin-top: 20px; }
.lien-fiche { font-weight: 600; text-decoration: none; }
.lien-fiche:hover { text-decoration: underline; }
.res-exclus a { color: var(--ink); }
.guide-lien { display: flex; align-items: center; gap: 16px; margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.guide-lien:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(24, 33, 44, 0.08); }
.guide-lien > span:first-child { font-size: 1.8rem; }
.guide-lien b { display: block; font-size: 1.05rem; }
.guide-lien small { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.guide-fleche { margin-left: auto; font-size: 1.3rem; color: var(--red); }
.etat-cookies { margin-top: 20px; background: #eef6f0; border: 1px solid #c4e3cf; color: #1f4d31; border-radius: 14px; padding: 14px 18px; font-size: 0.95rem; }
.texte-page .tableau-defile { margin-top: 14px; }
.about-page { margin-top: 24px; grid-template-columns: 140px 1fr; }
.about-page .photo { width: 140px; height: 140px; font-size: 2.8rem; }
.page-404 { text-align: center; padding: 80px 0 100px; }
.grand-404 { font-size: 4rem; }
.actions-404 { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.contact-mail { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5a; }
.contact-tel { color: var(--muted); }
.logo img { display: inline-block; width: 34px; height: 34px; border-radius: 8px; vertical-align: middle; margin: -4px 9px 0 0; }

/* Illustration dans l'en-tête des pages outils */
.page-hero-illu .wrap { width: min(100% - 40px, 1100px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 44px; align-items: center; }
.hero-illu { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08); transform: rotate(2deg); }
@media (max-width: 900px) {
  .page-hero-illu .wrap { grid-template-columns: 1fr; gap: 28px; width: min(100% - 40px, 820px); }
  .hero-illu { max-width: 340px; transform: none; }
}
@media (max-width: 560px) {
  .page-hero-illu .wrap { gap: 18px; }
  .hero-illu { max-width: 200px; border-radius: 14px; }
}

/* Simulateur de budget */
.bud-total { text-align: left; }
.bud-sur-titre { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.bud-chiffre { font-size: clamp(2.4rem, 7vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; color: var(--blue); line-height: 1.1; margin: 4px 0; }
.bud-chiffre span { font-size: 1.1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.bud-bahts { color: var(--muted); font-weight: 600; }
.bud-fourchette { margin-top: 10px; background: #f6f1e8; border-radius: 10px; padding: 10px 14px; font-size: 0.95rem; }
.bud-postes { list-style: none; margin: 10px 0 0; padding: 0; }
.bud-postes li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bud-postes li:last-child { border-bottom: 0; }
.bud-icone { font-size: 1.3rem; text-align: center; }
.bud-label { font-size: 0.95rem; }
.bud-barre { display: block; height: 6px; background: #f0ebe2; border-radius: 99px; margin-top: 6px; overflow: hidden; }
.bud-barre span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #4a5fa8); border-radius: 99px; }
.bud-montant { text-align: right; white-space: nowrap; }
.bud-montant b { display: block; font-size: 1rem; }
.bud-montant small { color: var(--muted); font-size: 0.78rem; }
.bud-install { margin-top: 28px; }
.bud-tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 8px; }
.bud-tuile { background: #f6f1e8; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.bud-tuile span { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.bud-tuile b { font-size: 1.45rem; letter-spacing: -0.02em; color: var(--ink); }
.bud-tuile small { font-size: 0.78rem; color: var(--muted); }
.bud-tuile-total { background: var(--blue); }
.bud-tuile-total span, .bud-tuile-total small { color: rgba(255, 255, 255, 0.75); }
.bud-tuile-total b { color: #fff; }
.bud-justifier { border: 2px dashed var(--gold); background: #fffaf0; border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.bud-justifier h3 { margin: 0 0 6px; font-size: 1.05rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
.bud-justifier p { font-size: 0.95rem; margin-bottom: 8px; }
.bud-cta { display: flex; gap: 16px; align-items: flex-start; margin-top: 24px; padding: 22px; border-radius: var(--radius); background: linear-gradient(140deg, #1d2852, #3a2a5c); color: #fff; }
.bud-cta h3 { color: #fff; font-size: 1.2rem; margin: 0 0 6px; text-transform: none; letter-spacing: -0.01em; }
.bud-cta p { color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; margin-bottom: 14px; }
.bud-cta-icone { font-size: 2rem; background: rgba(255, 255, 255, 0.12); width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.bud-cta-visa { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.bud-cta-visa h3 { color: var(--ink); }
.bud-cta-visa p { color: var(--muted); }
.bud-cta-visa .bud-cta-icone { background: #f6f1e8; }
@media (max-width: 640px) {
  .bud-tuiles { grid-template-columns: 1fr; }
  .bud-cta { flex-direction: column; }
}
.res .bud-postes li { padding-left: 0; }
.res .bud-postes li::before { content: none; }
.res .bud-postes { gap: 0; }
.res-reco.bud-total, .res-reco.bud-install { padding-top: clamp(24px, 4vw, 40px); }
.res .bud-install, .res .bud-cta { margin-top: 0; }

/* Portrait de Robin (dessin BD) */
img.photo, img.mot-robin-photo { object-fit: cover; background: #f6f1e8; border: 4px solid #fff; box-shadow: 0 10px 30px rgba(24, 33, 44, 0.15); }
img.mot-robin-photo { border-width: 2px; }

/* Compteur de séjour */
.sim-date .sim-champ input { width: auto; min-width: 200px; font-size: 1.25rem; }
.sej-barre { height: 10px; border-radius: 99px; background: #eee8de; overflow: hidden; margin: 16px 0 8px; }
.sej-barre span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--red)); }
.sej-info { color: var(--muted); font-size: 0.95rem; margin: 0; }
.sej-urgent { color: var(--red); font-size: clamp(1.6rem, 5vw, 2.2rem); }
.sej-alerte { background: #fdecee; border-color: #f2b8c0; color: #6d0a1a; font-size: 1rem; line-height: 1.55; }
.sej-prochaine h2 { margin: 6px 0 8px; font-size: clamp(1.3rem, 3.5vw, 1.6rem); }
.sej-quand { font-weight: 700; color: var(--blue); margin: 10px 0 4px; }
.sej-statut { display: inline-block; vertical-align: middle; font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.sej-ouverte { background: #fff1d6; color: #7a5200; }
.sej-a_venir { background: #e8ecf7; color: var(--blue); }
.sej-en_retard { background: #fdecee; color: var(--red); }
.sej-option { background: #e9f5ee; color: #1f6b43; }
.sej-calendrier { margin: 28px 0; }
.res .sej-liste { list-style: none; padding: 0; margin: 0; }
.res .sej-liste li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); background: none; padding-left: 0; }
.res .sej-liste li::before { content: none; }
.sej-date { font-weight: 800; color: var(--blue); }
.res .sej-liste h3 { margin: 0 0 4px; font-size: 1.05rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
.res .sej-ligne-en_retard .sej-date { color: var(--red); }
.sej-liste p { margin: 4px 0; }
@media (max-width: 560px) {
  .res .sej-liste li { grid-template-columns: 1fr; gap: 4px; }
}

.sej-retour { background: #e9f5ee; color: #1f6b43; border-radius: 14px; padding: 12px 18px; font-weight: 600; margin: 0 0 18px; }
.sej-favoris { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px dashed var(--gold); border-radius: var(--radius); padding: 16px 18px; margin: 24px 0; }
.sej-favoris span { font-size: 1.6rem; line-height: 1; }
.sej-favoris p { margin: 0; }

/* Sous-menu des outils : déroulant sur PC, liste toujours visible dans le menu mobile */
.nav-outils { position: relative; }
.sous-menu { list-style: none; display: none; }
.sous-menu a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.sm-num { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 0.78rem; font-weight: 800; }
.sm-ico { flex: none; font-size: 1.25rem; }
.sm-txt { display: flex; flex-direction: column; line-height: 1.25; }
.sm-txt b { font-weight: 700; }
.sm-txt small { color: var(--muted); font-size: 0.82rem; font-weight: 400; }
@media (min-width: 681px) {
  .nav-outils-titre::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
  .sous-menu {
    position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); width: 330px; z-index: 50;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: 0 18px 45px rgba(24, 33, 44, 0.16);
  }
  .sous-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* pont pour garder le survol */
  .nav-outils:hover .sous-menu, .nav-outils:focus-within .sous-menu { display: block; }
  .sous-menu a { padding: 10px 12px; border-radius: 12px; }
  .sous-menu a:hover { background: var(--bg); color: var(--ink); }
  .sous-menu a:hover b { color: var(--red); }
  .sm-tous { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
  .sm-tous a { justify-content: center; font-size: 0.9rem; font-weight: 600; color: var(--blue); }
}
@media (max-width: 680px) {
  body.menu-ouvert .nav { justify-content: flex-start; padding: 6vh 24px 30px; gap: 26px; overflow-y: auto; }
  body.menu-ouvert .nav-outils { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 340px; }
  body.menu-ouvert .sous-menu { display: grid; gap: 4px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 8px; }
  body.menu-ouvert .sous-menu a { font-size: 1rem; font-weight: 600; letter-spacing: 0; padding: 10px 12px; border-radius: 12px; }
  body.menu-ouvert .sous-menu small { display: none; }
  .sm-tous { display: none; }
}

/* --- Choix de la langue (FR / EN), dernier élément du menu --- */
.nav { align-items: center; }
.nav-langue a { display: inline-block; padding: 3px 10px; border: 1.5px solid currentColor; border-radius: 999px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.3; }
.nav-langue a:hover { color: var(--red); }
@media (max-width: 680px) {
  body.menu-ouvert .nav .nav-langue a { font-size: 1rem; font-weight: 700; padding: 6px 18px; letter-spacing: 0.06em; }
}

/* Bloc « Et maintenant ? » : liens vers les autres outils dans les résultats */
.suite { margin-top: 8px; }
.suite-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 14px; margin-top: 10px; }
.suite-carte { display: flex; gap: 14px; align-items: center; padding: 12px 16px 12px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.suite-carte:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(35, 48, 95, 0.10); transform: translateY(-1px); }
.suite-carte img { width: 92px; height: 69px; object-fit: cover; border-radius: 10px; flex: none; }
.suite-txt { flex: 1; min-width: 0; }
.suite-txt b { display: block; font-size: 1rem; line-height: 1.3; color: var(--blue); }
.suite-txt small { display: block; font-size: 0.88rem; line-height: 1.4; color: var(--muted); margin-top: 3px; }
.suite-fleche { font-size: 1.2rem; color: var(--blue); flex: none; }

/* FAQ sous les outils : collée à la section précédente */
.section-faq { padding-top: 0; }

/* ======================================================================
   Accueil (déc. 2026) : haut de page illustré, cartes illustrées, pays
   ====================================================================== */
.hero-accueil .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-mosaique { display: none; }
@media (min-width: 960px) {
  .hero-accueil .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: 56px; }
  .hero-mosaique { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 24px; }
  .hero-mosaique img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; background: #fff;
    box-shadow: 0 18px 40px rgba(24, 33, 44, 0.16), 0 0 0 1px rgba(24, 33, 44, 0.05); }
  .hero-mosaique img:nth-child(1) { transform: rotate(-2deg); }
  .hero-mosaique img:nth-child(2) { transform: translateY(24px) rotate(2deg); }
  .hero-mosaique img:nth-child(3) { transform: rotate(1.5deg); }
  .hero-mosaique img:nth-child(4) { transform: translateY(24px) rotate(-1.5deg); }
}
.tv-illu { width: 112px; height: 84px; object-fit: cover; border-radius: 18px; box-shadow: 0 6px 16px rgba(24, 33, 44, 0.12); }
@media (min-width: 900px) {
  .outils-grille .tv-illu { width: 96px; height: 72px; border-radius: 14px; }
}
@media (max-width: 760px) {
  .tv-illu { width: 100%; height: 170px; border-radius: 16px; }
}
.pays-liste { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.pays-liste li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px 3px 9px; font-size: 0.9rem; white-space: nowrap; }
.nav-langue { display: flex; gap: 8px; }
