/* Styles communs de l'accueil (index.html) et de l'aide (aide.html). */
/* Thème « Marché » (theme.css) : encre, blanc cassé, tomate pour les actions, basilic pour « ouvert » */
:root { --text: var(--encre); --muted: var(--encre-douce); --border: var(--trait); --bg: var(--papier); --card: var(--carte); --accent: var(--tomate); --accent-soft: var(--tomate-pale);
  --ok: var(--basilic); --full: #d6452f; --off: #8e8a82; --contact: #2d5ba8; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--police-texte); color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--accent); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
nav { position: sticky; top: 0; z-index: 5; background: rgba(255,253,248,.94); backdrop-filter: blur(6px); border-bottom: 2px solid var(--text); }
nav .wrap { display: flex; gap: 18px; align-items: center; height: 54px; overflow-x: auto; white-space: nowrap; }
nav .brand { margin-right: auto; display: flex; align-items: center; gap: 8px; font-family: var(--police-titre); font-weight: 700; font-size: 1.08em; }
nav a { color: var(--text); text-decoration: none; font-size: .92em; }
nav a:hover { color: var(--accent); }
nav a.nav-cta { background: var(--accent); color: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 700; }
nav a.nav-cta:hover { background: var(--tomate-fonce); color: #fff; }
/* Connexion : même entourage que « Essayer la démo » (.btn.ghost), à la taille du bouton voisin */
nav a.nav-ghost { padding: 4px 12px; border: 2px solid var(--text); border-radius: 999px; font-weight: 600; }
nav a.nav-ghost:hover { background: var(--text); color: var(--bg); }
nav .nav-email { color: var(--muted); font-size: .85em; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
/* Petits écrans : seulement la marque, Connexion et Créer un compte, toujours entiers. Placé après les règles
   des boutons, qu'il doit remplacer (même priorité : la dernière l'emporte). */
@media (max-width: 900px) { nav .nav-sec { display: none; } }
@media (max-width: 520px) {
  nav .wrap { gap: 8px; padding: 0 12px; }
  nav .brand { font-size: .95em; gap: 6px; }
  nav .brand img { width: 24px; height: 24px; }
  nav a.nav-cta, nav a.nav-ghost { padding: 4px 10px; font-size: .82em; }
}
@media (max-width: 380px) {
  nav .brand { font-size: .85em; }
  nav a.nav-cta, nav a.nav-ghost { padding: 3px 8px; font-size: .78em; }
}
@media (max-width: 350px) { /* très petits écrans : le logo seul, sans le nom */
  nav .brand { font-size: 0; }
}
header.hero { padding: 64px 0 40px; }
/* Titre + paragraphe à gauche, logo à droite, centré verticalement sur ce bloc. */
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.hero-logo { display: block; filter: drop-shadow(0 8px 18px rgba(31,35,40,.18)); }
.hero h1 { font-size: clamp(1.8em, 4.5vw, 2.7em); line-height: 1.15; margin: 0 0 16px; letter-spacing: -.01em; }
.hero p.lead { font-size: 1.15em; color: var(--muted); max-width: 680px; margin: 0 0 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: .9em; }
.btn { display: inline-block; padding: 11px 22px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--accent); }
.btn:hover { background: var(--tomate-fonce); border-color: var(--tomate-fonce); }
.btn.ghost { background: none; color: var(--text); border: 2px solid var(--text); }
.btn.ghost:hover { background: var(--text); color: var(--bg); }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
section { padding: 48px 0; border-top: 1px solid var(--border); }
h2 { font-size: 1.6em; margin: 0 0 8px; letter-spacing: -.01em; }
h3 { font-size: 1.1em; margin: 28px 0 8px; }
.intro { color: var(--muted); margin: 0 0 24px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 8px; }
.card h3 { margin: 0 0 6px; }
/* Numéro et titre sur la même ligne, centrés verticalement */
.card h3.step { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
h3.step .step-n { flex: none; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .95em; }
.demo { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.options { margin-top: 4px; }
.options .card h3 { margin-bottom: 6px; }
figure.video { margin: 8px 0 26px; max-width: 860px; scroll-margin-top: 70px; }
figure.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; background: #16201b; box-shadow: 0 10px 30px rgba(22,32,27,.18); }
.videos2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.videos2 figure.video { margin: 0 0 10px; max-width: none; }
@media (max-width: 760px) { .videos2 { grid-template-columns: 1fr; } }
figure.video figcaption { margin-top: 8px; font-size: .9em; color: var(--muted); }
.demo-note { font-size: .92em; color: var(--muted); }
.demo-note ul { padding-left: 18px; margin: 10px 0 14px; }
.demo-note li { margin-bottom: 8px; line-height: 1.35; }
.demo-note li b { color: var(--text); font-weight: 600; }
.demo-note li small { display: block; font-size: .9em; }
.demo-note p { margin: 0; font-size: .92em; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: .95em; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #f3f2ef; font-size: .85em; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
code { padding: 1px 6px; border-radius: 4px; background: #efeee9; font-size: .92em; }
.st { display: inline-block; padding: 2px 10px; border-radius: 999px; color: #fff; font-weight: 600; font-size: .85em; white-space: nowrap; }
.st.ouvert { background: var(--ok); } .st.complet { background: var(--full); } .st.ferme { background: var(--off); } .st.contact { background: var(--contact); }
ol.tuto { counter-reset: s; list-style: none; padding: 0; margin: 0; }
ol.tuto > li { counter-increment: s; position: relative; padding: 0 0 18px 46px; }
ol.tuto > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--text); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9em; }
ol.tuto > li b { display: block; margin-bottom: 2px; }
.path { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; background: #efeee9; padding: 2px 6px; border-radius: 4px; }
.tip, .warn { border-radius: 10px; padding: 12px 16px; margin: 16px 0; font-size: .94em; }
.tip { background: var(--accent-soft); }
.warn { background: #fff4e5; }
.tabs { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.tabs button { border: 0; background: var(--card); padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected=true] { background: var(--text); color: #fff; }
.tabs.fournisseurs { margin-bottom: 22px; }
.tabs button { white-space: nowrap; }
@media (max-width: 480px) { .tabs .long { display: none; } } /* Google · iCloud · Outlook sur une ligne */
.mail-demo { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; max-width: 640px; box-shadow: 0 6px 20px rgba(27,27,27,.06); }
.mail-tete { display: grid; gap: 4px; font-size: .85em; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 14px; overflow-wrap: anywhere; }
.mail-tete b { color: var(--text); font-weight: 600; }
.mail-demo p { margin: 0; }
.mail-jour { font-size: 1.2em; font-weight: 700; }
.mail-svc { margin: 2px 0 14px !important; }
.mail-t { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 16px; font-size: .95em; }
.mail-t dt { color: var(--muted); } .mail-t dd { margin: 0; overflow-wrap: anywhere; }
.mail-lien { color: #1565c0; text-decoration: underline; }
/* Verdict et remplissage du service, avant → après (comme envoi_email_remplissage()) */
.mail-verdict { background: #e8f4ec; border-left: 4px solid #2f7d4a; border-radius: 8px; padding: 10px 12px; margin: 0 0 12px !important; font-size: .92em; }
.mail-rempli { font-size: .9em; margin: 4px 0 16px; padding-top: 12px; border-top: 1px solid var(--border); }
/* Demandes déjà reçues en vert (confirmé), la nouvelle en orange (en attente), comme dans envoi_email_remplissage() */
.mr-delta { display: inline-block; padding: 0 7px; border-radius: 10px; background: #fbecd2; color: #a8670b; font-weight: 700; font-size: .85em; }
.mr-barre { display: flex; height: 14px; border-radius: 7px; background: #ece8df; margin: 6px 0 4px; overflow: hidden; }
.mr-avant { background: #2f7d4a; } .mr-nouv { background: #e0a33a; }
.mr-couv { color: var(--muted); font-size: .82em; }
.mr-etiq { font-size: .75em; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 14px 0 6px !important; }
.mr-tables { display: flex; flex-wrap: wrap; gap: 5px; align-items: flex-end; }
.mr-t { display: inline-block; height: 24px; line-height: 24px; text-align: center; border-radius: 5px; background: #e3f1e7; color: #2f7d4a; font-size: .85em; font-weight: 700; }
.mr-t.m { height: 28px; line-height: 28px; }
.mr-t.g { height: 34px; line-height: 34px; background: #2f7d4a; color: #fff; }
.mr-t.n { height: 28px; line-height: 28px; background: #e0a33a; color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e0a33a; }
.mr-h { display: grid; grid-template-columns: max-content 1fr; gap: 2px 10px; margin: 0; font-size: .92em; }
.mr-h dt, .mr-h dd { color: var(--muted); } .mr-h dd { margin: 0; letter-spacing: .02em; }
.mr-h .mr-choisi { color: var(--text); } .mr-h dt.mr-choisi { font-weight: 700; } .mr-n { color: #e0a33a; } .mr-p { color: #2f7d4a; }
.mail-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px !important; }
.mb { display: inline-block; padding: 9px 14px; border-radius: 6px; border: 1px solid #d0d7de; font-weight: 700; font-size: .9em; }
.mb.ok { background: #2f7d4a; border-color: #2f7d4a; color: #fff; } .mb.ko { background: #c62828; border-color: #c62828; color: #fff; }
.mail-note { color: var(--muted); font-size: .82em; margin-top: 8px !important; }
details.variante { margin-top: 14px; }
details.variante pre { margin-top: 12px; }
pre { margin: 0; padding: 14px 16px; overflow-x: auto; background: #1f2328; color: #e6edf3; border-radius: 8px; font-size: .85em; }
details { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }
details figure.video { margin: 14px 0 4px; }
details[id] { scroll-margin-top: 70px; } /* question ouverte par un lien : pas sous le menu fixe */
footer { padding: 32px 0 48px; color: var(--muted); font-size: .9em; border-top: 1px solid var(--border); }
footer .editeur { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; }
/* Logo TA2Pierres en masque, teinté comme le texte du pied de page. */
footer .editeur-logo { width: 28px; height: 28px; flex: none; background: currentColor;
  -webkit-mask: url(logo-ta2pierres.png) center / contain no-repeat; mask: url(logo-ta2pierres.png) center / contain no-repeat; }
@media (max-width: 640px) { .hero-top { grid-template-columns: 1fr; gap: 0; } .hero-logo { display: none; } } /* le logo reste dans la barre du haut */
@media (max-width: 820px) { .grid3 { grid-template-columns: 1fr; } .demo { grid-template-columns: 1fr; } header.hero { padding-top: 40px; } }
@media (max-width: 560px) { table.evenements th:nth-child(3), table.evenements td:nth-child(3) { display: none; } }

/* ===== Accueil ===== */
.hero p.lead + p.lead2 { margin-top: -10px; }
.hero p.lead2 { font-size: 1.05em; font-weight: 600; margin: 0 0 22px; }
.chips.prix li { font-weight: 600; }
.chips.prix li.fort { background: var(--tomate-pale); border-color: transparent; color: var(--tomate-fonce); }
/* Le problème : les questions des clients en bulles */
.bulles { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 22px; padding: 0; list-style: none; }
.bulles li { position: relative; background: var(--card); border: 2px solid var(--text); border-radius: 18px 18px 18px 4px; padding: 10px 16px; font-family: var(--police-titre); font-weight: 600; font-size: 1.05em; }
.bulles li:nth-child(even) { border-radius: 18px 18px 4px 18px; }
.signature { font-family: var(--police-titre); font-size: 1.35em; font-weight: 700; line-height: 1.3; margin: 18px 0 26px; }
.signature span { color: var(--basilic); }
.citation { border-left: 4px solid var(--basilic); padding: 4px 0 4px 16px; margin: 20px 0; font-family: var(--police-titre); font-size: 1.2em; font-weight: 600; line-height: 1.35; }
.coche { list-style: none; padding: 0; margin: 14px 0 0; }
.coche li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.coche li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--basilic); font-weight: 800; }
.deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.carte-vert { background: var(--basilic-pale); border-radius: 12px; padding: 20px; }
.carte-vert h3 { margin: 0 0 6px; }
.carte-vert p { margin: 0 0 8px; }
.lien-suite { display: inline-block; margin-top: 16px; font-weight: 600; }
/* Partout où l'on vous trouve */
.partout { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.partout .card { padding: 16px; }
.partout .ico { font-size: 1.6em; line-height: 1; display: block; margin-bottom: 8px; }
.partout h3 { font-size: 1em; margin: 0 0 4px; }
/* Prix */
.prix-bloc { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: center; }
.prix-carte { background: var(--card); border: 2px solid var(--text); border-radius: 16px; padding: 26px 22px; text-align: center; box-shadow: 6px 6px 0 var(--moutarde); }
.prix-carte .montant { font-family: var(--police-titre); font-size: 4em; font-weight: 800; line-height: 1; }
.prix-carte .unite { font-weight: 700; font-size: 1.1em; margin: 4px 0 10px; }
.prix-carte .annuel { color: var(--muted); font-size: .92em; margin: 0 0 14px; }
.prix-carte .gratuit { display: inline-block; background: var(--basilic); color: #fff; font-weight: 700; border-radius: 999px; padding: 5px 14px; }
.prix-cta { margin-top: 20px; }
.prix-cta small { display: block; margin-top: 8px; color: var(--muted); }
/* Comparatif */
table.comparatif td:first-child { color: var(--muted); }
table.comparatif td:nth-child(2) { font-weight: 700; }
table.comparatif th:nth-child(2) { color: var(--text); }
/* Téléphone : le tableau tient dans l'écran (texte plus petit, coupure des mots longs) */
@media (max-width: 420px) {
  table.comparatif { font-size: .85em; table-layout: fixed; width: 100%; }
  table.comparatif th, table.comparatif td { padding-left: 4px; padding-right: 4px; overflow-wrap: anywhere; hyphens: auto; }
}
/* Fin de page */
section.fin { background: var(--encre); color: var(--papier); border-top: 0; }
section.fin h2 { font-size: clamp(1.4em, 3.4vw, 2em); max-width: 760px; line-height: 1.2; }
section.fin p { color: #d9d4c8; max-width: 680px; }
section.fin .fort { color: #fff; font-weight: 700; }
section.fin .btn { margin-top: 10px; }
.faq-suite { margin-top: 18px; color: var(--muted); }
@media (max-width: 900px) { .partout { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .deux, .prix-bloc { grid-template-columns: 1fr; } .prix-carte { max-width: 340px; } }
@media (max-width: 420px) { .partout { grid-template-columns: 1fr; } }

/* ===== Aide ===== */
header.aide-tete { padding: 44px 0 24px; }
header.aide-tete h1 { font-size: clamp(1.7em, 4vw, 2.3em); margin: 0 0 10px; }
.sommaire { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.sommaire a { display: inline-block; border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 6px 14px; color: var(--text); text-decoration: none; font-size: .92em; }
.sommaire a:hover { border-color: var(--text); }
section[id] { scroll-margin-top: 56px; }
#email pre { margin-top: 12px; }
