/*
| Coquille commune aux pages publiques (/tarifs, /methode).
|
| Ces pages ne partagent pas de layout Blade : chacune a son <head> et ses
| propres blocs. Ce qui se répétait, en revanche, c'est le châssis — barre de
| navigation, hero, sections, panneaux, FAQ, rappel final, pied de page. Il
| vit ici plutôt qu'en double dans deux <style>, pour qu'une correction de
| gouttière ou de contraste s'applique aux deux d'un coup.
|
| Les couleurs et polices viennent de styles.css (variables --ink, --paper,
| --title-color, --font-*, …), désormais partagées par toute l'application.
*/

/* viewport-fit=cover : en paysage, le texte ne passe pas sous l'encoche (env() vaut 0 ailleurs). */
body { margin: 0; background: var(--paper); font-family: var(--font-body); color: var(--ink); padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 30px; }
.wrap--narrow { max-width: 860px; }

/* ─── Navigation ─── */
.nav { display: flex; align-items: center; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 22px 30px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); color: var(--title-color); font-size: 18px; font-weight: 500; text-decoration: none; }
.nav-brand span.mark { width: 30px; height: 30px; border: 1.5px solid var(--ink); border-radius: 2px; display: grid; place-items: center; font-weight: 600; background: var(--paper); }
.nav-actions { margin-left: auto; display: flex; gap: 16px; align-items: center; font-size: 14px; flex-wrap: wrap; }
.nav-actions a { color: var(--ink-2); text-decoration: none; font-family: var(--font-button); }
.nav-actions a:hover { color: var(--ink); }
.nav-actions .ghost { padding: 8px 16px; border: 1px solid var(--rule-2); border-radius: 3px; }
.nav-actions .solid, .nav-actions .solid:hover { background: var(--accent); color: var(--surface); padding: 8px 18px; border-radius: 3px; }

/* ─── Hero ─── */
.hero { text-align: center; padding: 46px 0 34px; }
.hero .eyebrow { font-family: var(--font-small); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 16px; }
.hero h1 { font-family: var(--font-heading); color: var(--title-color); font-size: clamp(34px, 5vw, 52px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 18px; }
.hero p { color: var(--ink-3); font-size: 17px; max-width: 60ch; margin: 0 auto; line-height: 1.6; }
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; font-size: 13.5px; color: var(--ink-3); }
.trust span::before { content: "✓"; color: var(--ok); font-weight: 600; margin-right: 7px; }

/* ─── Sections et panneaux ─── */
.section { margin-top: 64px; }
.section-head { text-align: center; max-width: 62ch; margin: 0 auto 26px; }
.section-head h2 { font-family: var(--font-heading); color: var(--title-color); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 10px; }
.section-head p { color: var(--ink-3); font-size: 15px; line-height: 1.6; margin: 0; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 28px 30px; }
.panel + .panel { margin-top: 18px; }
.panel h3 { font-family: var(--font-heading); color: var(--title-color); font-size: 20px; font-weight: 500; margin: 0 0 6px; }
.panel .lead { color: var(--ink-3); font-size: 14px; margin: 0 0 20px; line-height: 1.6; }
.panel a, .note a, .faq a { color: var(--accent); }

/* ─── FAQ / accordéons : <details> natif, aucun script ─── */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--rule-soft); }
.faq summary { cursor: pointer; padding: 16px 2px; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-4); font-family: var(--font-small); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 18px; color: var(--ink-3); font-size: 14px; line-height: 1.65; max-width: 74ch; }

/* ─── Rappel final et pied de page ─── */
.final { margin-top: 64px; text-align: center; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 46px 30px; }
.final h2 { font-family: var(--font-heading); color: var(--title-color); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 12px; }
.final p { color: var(--ink-3); font-size: 15px; margin: 0 auto 26px; max-width: 56ch; line-height: 1.6; }
.final .cta { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--surface); padding: 14px 28px; border-radius: 4px; text-decoration: none; font-size: 14px; font-weight: 500; font-family: var(--font-button); }
.note { text-align: center; margin: 26px auto 0; color: var(--ink-4); font-size: 12.5px; line-height: 1.7; max-width: 76ch; }
.foot { margin-top: 56px; padding: 26px 0 46px; border-top: 1px solid var(--rule-soft); display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-size: 12.5px; }
.foot a { color: var(--ink-4); text-decoration: none; }
.foot a:hover { color: var(--ink-2); }

/* ─── Blocs éditoriaux (/methode, /transparence) ─── */
.principes { display: flex; flex-direction: column; gap: 18px; }
.principe { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 28px 30px; }
@media (max-width: 640px) { .principe { padding: 24px 22px; } }
.principe .num { font-family: var(--font-small); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-4); }
.principe h2 { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-heading); color: var(--title-color); font-size: 22px; font-weight: 500; letter-spacing: -0.015em; margin: 0 0 12px; }
.principe h3 { font-size: 15px; font-weight: 600; margin: 22px 0 8px; color: var(--ink); }
.principe p { color: var(--ink-2); font-size: 15px; line-height: 1.68; margin: 0 0 14px; }
.principe ul { margin: 0 0 14px; padding-left: 20px; color: var(--ink-2); font-size: 15px; line-height: 1.68; }
.principe li { margin-bottom: 10px; }
.principe > div > :last-child { margin-bottom: 0; }
.principe strong { color: var(--ink); }
/* Texte des encadrés justifié sur toute la largeur (marges égales des deux côtés) ; la
   césure (langue de <html>) évite les grands blancs entre les mots. */
.principe :is(p, li) { text-align: justify; hyphens: auto; }

.honest { border-left: 3px solid var(--warn); background: var(--warn-bg); border-radius: 3px; padding: 14px 16px; margin: 18px 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.honest strong { color: var(--ink); }

/* Tableaux de données et formules */
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; margin: 4px 0 18px; font-size: 14px; min-width: 460px; }
.data-table th, .data-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule-soft); }
.data-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 500; }
.data-table td.num { font-family: var(--font-small); text-align: right; white-space: nowrap; }
.data-table td.mono { font-family: var(--font-small); font-size: 12.5px; }
.data-table tr:last-child td { border-bottom: none; }
.formula { font-family: var(--font-small); font-size: 14px; background: var(--paper-2); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 3px; padding: 16px 18px; margin: 18px 0; color: var(--ink); line-height: 1.7; }
.callout { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 4px; padding: 18px 20px; margin: 18px 0; }
.callout p:last-child { margin-bottom: 0; }

/* Page courante dans la navigation : marquée, jamais retirée. */
.nav-actions a.is-here { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }

/* Téléphone, Fold, iPad mini : logo, langue et bouton sur une ligne, les pages sur la suivante.
   Sans cela les liens s'empilaient sur trois rangs (200 px de nav à 320 px).
   Sous 500 px, comme sur l'accueil, l'invité garde « Se connecter » ; la page porte l'inscription. */
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; gap: 10px; padding: 14px 20px; }
  .nav-actions { display: contents; }
  .nav-actions .student-language-button { margin-left: auto; }
  .nav::after { content: ''; flex-basis: 100%; order: 1; }
  .nav-actions a:not(.ghost, .solid) { order: 2; padding: 6px 0; margin-right: 8px; }
  .nav-actions :is(.ghost, .solid) { white-space: nowrap; padding-inline: 14px; }
}
@media (max-width: 500px) {
  .nav-actions .ghost + .solid { display: none; }
}
@media (max-width: 374px) {
  .nav { padding-inline: 16px; }
  .nav-actions :is(.ghost, .solid) { font-size: 13px; padding-inline: 10px; }
}

/* ─── Blog : cartes d'article (page /blog et accueil) ─── */
.posts { display: grid; gap: 16px; margin: 0 0 50px; }
.posts--row { grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); justify-content: center; margin-bottom: 18px; }
.post-card { display: block; padding: 24px 26px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); color: inherit; text-decoration: none; }
.post-card:hover { border-color: var(--accent); }
.post-card time { font-family: var(--font-small); font-size: 11px; letter-spacing: .08em; color: var(--ink-4); text-transform: uppercase; }
.post-card h2, .post-card h3 { font-family: var(--font-heading); color: var(--title-color); font-size: 22px; font-weight: 500; line-height: 1.25; margin: 8px 0 8px; }
.post-card p { color: var(--ink-3); line-height: 1.6; margin: 0; }
.posts-more { text-align: center; margin: 0 0 10px; }
.posts-more a { color: var(--accent); text-decoration: none; }
