/* meilleur-consultant-seo.com : feuille unique, refonte du 04/11/2026 (piste A, inspirée Apple, validée par Olivier).
   MOBILE D'ABORD (consigne d'Olivier, 04/11/2026) : toutes les règles de base valent pour un téléphone (360 px) ;
   @media (min-width: …) n'ajoute que ce que les grands écrans permettent. Aucune règle max-width pour la mise en page.
   Cibles tactiles : 44 px minimum pour tout lien ou bouton isolé. Corps 17 px, champs 17 px (pas de zoom iOS).
   Identité : fond blanc et gris clair, titres gras serrés, un seul accent bleu, pastilles, cartes arrondies, police système.
   Contraste : #1d1d1f sur blanc ≈ 17:1 ; #6e6e73 sur #f5f5f7 ≈ 4.7:1 ; bleu #0066cc sur blanc ≈ 5.6:1 ; #bf4800 sur #f5f5f7 ≈ 4.7:1. */

:root {
  --blanc: #ffffff;
  --gris: #f5f5f7;
  --encre: #1d1d1f;
  --encre-2: #6e6e73;
  --filet: #d2d2d7;
  --bleu: #0071e3;
  --bleu-texte: #0066cc;
  --orange: #bf4800;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mesure: 44rem;
  --rayon: 20px;
}

* { box-sizing: border-box; }
html { background: var(--blanc); color: var(--encre); font-size: 106.25%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); line-height: 1.55; letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; min-width: 0; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }

.page { width: 100%; max-width: var(--mesure); margin: 0 auto; padding: 0 20px; }

a { color: var(--bleu-texte); text-decoration: underline; text-decoration-color: rgba(0, 102, 204, 0.35); text-underline-offset: 0.18em; }
a:hover, a:focus { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 8px; background: var(--blanc); padding: 0.6rem 1rem; z-index: 20; border-radius: 980px; }

/* En-tête : nom du site, puis une rangée de pastilles qui défile sur le côté si elle ne tient pas. */
.entete { background: var(--blanc); border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.entete .page { max-width: 68rem; display: flex; flex-direction: column; font-size: 0.9rem; padding-top: 2px; }
.entete .marque { font-weight: 600; color: var(--encre); text-decoration: none; display: flex; align-items: center; min-height: 44px; }
.entete nav { display: flex; gap: 6px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.entete nav::-webkit-scrollbar { display: none; }
.entete nav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 980px; background: var(--gris); color: var(--encre); text-decoration: none; }
.entete nav a:hover { background: #e8e8ed; }
.entete nav a[aria-current="page"] { background: var(--encre); color: #fff; }
.entete .barre { display: none; }

main.page { padding-top: 1.5rem; padding-bottom: 3.5rem; }

/* Titres : gras, serrés. Tailles de téléphone ici, agrandies plus bas. */
h1, h2, h3 { font-weight: 700; line-height: 1.12; margin: 0 0 0.9rem; letter-spacing: -0.03em; }
h1 { font-size: 2rem; margin-bottom: 1.2rem; letter-spacing: -0.035em; }
h2 { font-size: 1.6rem; margin-top: 2.8rem; clear: both; }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; margin-top: 1.6rem; line-height: 1.2; }
h2:first-child, h3:first-child { margin-top: 0; }

p, ul, ol, dl { margin: 0 0 1.1rem; }
ul { list-style: none; padding: 0; }
ul li { position: relative; padding-left: 1.3rem; }
ul li::before { content: ""; position: absolute; left: 0.1rem; top: 0.65em; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--bleu); }
ol { padding-left: 1.5rem; }
li { margin-bottom: 0.6rem; }
li::marker { color: var(--encre-2); font-weight: 600; }
strong { font-weight: 600; }
blockquote { margin: 1.4rem 0; padding: 0.2rem 0 0.2rem 1.1rem; border-left: 3px solid var(--filet); color: var(--encre-2); }
hr { border: 0; border-top: 1px solid var(--filet); margin: 2.5rem 0; }

.petit, .legende, .date, .etat { font-size: 0.875rem; color: var(--encre-2); }
.chapo { font-size: 1.15rem; line-height: 1.45; color: var(--encre-2); }
.date { font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; color: var(--orange); margin-bottom: 0.6rem; }

/* Accueil : titre et chapeau centrés. */
/* H1 = « Meilleur consultant SEO 2026 » (petit, orange, au-dessus) ; l'accroche en H2 porte la grande typographie. */
.accueil h1 { text-align: center; font-size: 1rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.011em; color: var(--orange); margin: 0.6rem 0 0.4rem; }
.accueil h2.accroche { text-align: center; font-size: 2rem; line-height: 1.08; letter-spacing: -0.035em; margin: 0 auto 1.1rem; padding: 0; border: 0; }
.accueil h2.accroche + p { text-align: center; font-size: 1.15rem; line-height: 1.45; color: var(--encre-2); margin: 0 auto 2.5rem; }

/* Signature sous le chapeau : portrait rond et fonction. */
.signature { display: flex; align-items: center; justify-content: center; gap: 0.8rem; text-align: left; font-size: 0.9rem; line-height: 1.35; color: var(--encre-2); margin: 0 auto 2.2rem; }
.signature img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.signature strong { color: var(--encre); font-weight: 600; }

/* Carte de France : l'illustration d'accueil, une carte grise arrondie à la manière d'une vitrine produit. */
.carte { margin: 0 -20px 3rem; padding: 1.4rem 1rem 1.1rem; background: var(--gris); text-align: center; }
.carte svg { display: block; width: 100%; max-width: 30rem; height: auto; margin: 0 auto; }
.carte-pays { fill: #fff; stroke: #d2d2d7; stroke-width: 2; stroke-linejoin: round; }
.carte-halo { fill: rgba(0, 113, 227, 0.16); }
.carte-point { fill: var(--bleu); stroke: #fff; stroke-width: 2; }
.carte-nom { font: 600 21px var(--sans); fill: var(--encre); paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; letter-spacing: -0.01em; }
.carte figcaption { font-size: 0.85rem; color: var(--encre-2); margin-top: 0.9rem; max-width: 26rem; margin-left: auto; margin-right: auto; }

/* Fil d'Ariane : liens à hauteur de doigt. */
.fil { font-size: 0.85rem; color: var(--encre-2); margin: 0 0 1rem; display: flex; flex-wrap: wrap; align-items: center; }
.fil a { color: var(--encre-2); display: inline-flex; align-items: center; min-height: 44px; }
.fil .sep { margin: 0 0.4rem; color: var(--filet); }

.sommaire { background: var(--gris); border-radius: var(--rayon); padding: 1.1rem 1.2rem 0.7rem; margin: 0 0 2.2rem; font-size: 0.95rem; }
.sommaire .etiquette { display: block; margin: 0 0 0.6rem; }
.sommaire ol { margin: 0; padding-left: 1.3rem; }
.sommaire li { margin-bottom: 0; }
.sommaire a { display: inline-block; padding: 0.55rem 0; }

.etiquette { font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.74rem; color: var(--encre-2); }

/* Note : une carte grise sous le paragraphe qu'elle commente. */
.avec-note { margin: 0 0 1.3rem; }
.avec-note > p, .avec-note > ul, .avec-note > ol { margin-bottom: 0.9rem; }
.marge { font-size: 0.95rem; line-height: 1.5; color: #424245; background: var(--gris); border-radius: var(--rayon); padding: 1.1rem 1.2rem; margin: 0 0 1.4rem; }
.marge .etiquette { display: block; color: var(--orange); margin-bottom: 0.4rem; }
.marge p { margin: 0 0 0.5rem; }
.marge p:last-child { margin-bottom: 0; }

/* Tableaux : défilement horizontal dans leur cadre, jamais dans la page. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -20px 1.4rem; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.9rem; line-height: 1.4; }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--filet); }
tr:last-child td { border-bottom: 0; }
/* Première colonne figée : le nom reste visible quand le tableau défile. */
th:first-child, td:first-child { position: sticky; left: 0; background: var(--blanc); z-index: 1; font-weight: 600; box-shadow: 1px 0 0 var(--filet); }
th:first-child { background: var(--gris); }
th { font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--encre-2); background: var(--gris); }

/* Liste des classements : une carte par groupe. */
.groupe-classements { margin-top: 1.2rem; }
.groupe-classements h3 { margin: 1.4rem 0 0.7rem; font-size: 1.2rem; }
.groupe-classements h3:first-child { margin-top: 0; }
.groupe-classements ol { margin: 0 0 0.4rem; background: var(--gris); border-radius: var(--rayon); padding: 0.9rem 1rem 0.5rem 2.6rem; }
.groupe-classements li { margin-bottom: 0.45rem; }
.groupe-classements li a { display: inline-block; padding: 0.4rem 0; }
.groupe-classements .etat { white-space: nowrap; color: var(--orange); font-weight: 600; font-size: 0.78rem; }

/* Portrait de l'auteur : au-dessus du texte sur téléphone, à gauche dès que la place le permet. */
.portrait { display: block; width: 112px; height: 112px; object-fit: cover; border-radius: 50%; margin: 0 0 1.2rem; }

/* Formulaire de contact : champs pleine largeur, bouton pleine largeur. */
form.contact { margin: 1.2rem -20px 1rem; padding: 1.3rem 20px; background: var(--gris); }
.champ { margin-bottom: 1.1rem; }
.champ label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.champ .aide { display: block; font-size: 0.85rem; color: var(--encre-2); margin-top: 0.3rem; }
input[type="text"], input[type="email"], input[type="url"], select, textarea {
  width: 100%; min-height: 48px; font: inherit; color: var(--encre); background: var(--blanc);
  border: 1px solid var(--filet); border-radius: 14px; padding: 0.7rem 0.9rem;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(0, 113, 227, 0.35); border-color: var(--bleu); }
textarea { min-height: 9rem; resize: vertical; }
button { width: 100%; min-height: 50px; font: inherit; font-weight: 500; font-size: 1.05rem; background: var(--bleu); color: #fff; border: 0; border-radius: 980px; padding: 0.75rem 1.6rem; cursor: pointer; }
button:hover, button:focus { background: #0077ed; }
.piege { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* Page de classement */
.bandeau-statut { background: #fff4e5; color: #7a3a00; border-radius: 14px; padding: 0.6rem 1rem; font-size: 0.875rem; margin-bottom: 1.4rem; }
.fiche { background: var(--gris); border-radius: var(--rayon); padding: 1.3rem 1.2rem 1.1rem; margin-top: 1.3rem; }
.fiche h3 { margin-top: 0; font-size: 1.35rem; }
.fiche .lien-site { font-size: 0.9rem; }
.fiche dl { margin: 0.8rem 0 0; }
.fiche dt { font-weight: 600; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--encre-2); margin-top: 1rem; }
.fiche dd { margin: 0.2rem 0 0; }
.fiche .rgpd { font-size: 0.8rem; color: var(--encre-2); margin: 1.2rem 0 0; }
details.faq { border-bottom: 1px solid var(--filet); }
details.faq summary { cursor: pointer; font-weight: 600; min-height: 44px; padding: 0.7rem 0; }
details.faq p { margin: 0 0 0.9rem; color: #424245; }

/* Journal */
.billets li { margin-bottom: 0.9rem; }
.billets a { display: inline-block; padding: 0.2rem 0; }
.billets .date { display: block; margin: 0; color: var(--encre-2); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.875rem; }

/* Pied de page : une liste empilée, chaque lien à hauteur de doigt. */
.pied { background: var(--gris); }
.pied .page { max-width: 68rem; padding-top: 1.2rem; padding-bottom: 2rem; font-size: 0.9rem; color: var(--encre-2); }
.pied p, .pied ul { margin: 0; }
.pied-appel { padding-bottom: 0.4rem; }
.pied a { color: var(--bleu-texte); display: inline-block; padding: 0.7rem 0; }
.pied-liens li { padding: 0; margin: 0; border-top: 1px solid var(--filet); display: flex; align-items: center; flex-wrap: wrap; min-height: 48px; }
.pied-liens li::before { display: none; }
.pied-liens li a { padding: 0.7rem 0.3rem; }

/* ---- Tablette (≥ 640 px) ---- */
@media (min-width: 640px) {
  .page { padding: 0 28px; }
  .entete nav { margin: 0 -28px; padding: 0 28px 10px; }
  main.page { padding-top: 2.5rem; padding-bottom: 4.5rem; }
  h1 { font-size: 2.7rem; }
  h2 { font-size: 2rem; margin-top: 3.6rem; }
  h3 { font-size: 1.3rem; }
  .chapo { font-size: 1.3rem; }
  .accueil h2.accroche { font-size: 2.9rem; max-width: 14em; }
  .carte { margin: 0 0 3.5rem; border-radius: 28px; padding: 2rem 1.5rem 1.4rem; }
  .accueil h2.accroche + p { font-size: 1.3rem; max-width: 32em; margin-bottom: 3.5rem; }
  .portrait { float: left; margin: 0.25rem 1.4rem 0.6rem 0; }
  .table-wrap { margin: 0 0 1.5rem; border: 1px solid var(--filet); border-radius: var(--rayon); }
  form.contact { margin: 1.5rem 0 1rem; padding: 1.8rem; border-radius: 28px; }
  button { width: auto; }
  .marge, .sommaire, .groupe-classements ol { border-radius: 22px; }
  .fiche { padding: 1.8rem 1.8rem 1.4rem; border-radius: 28px; }
}

/* ---- Ordinateur (≥ 960 px) ---- */
@media (min-width: 960px) {
  .entete { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
  .entete .page { flex-direction: row; justify-content: space-between; align-items: center; min-height: 52px; font-size: 0.85rem; padding-top: 0; }
  .entete .marque { min-height: 52px; }
  .entete nav { margin: 0; padding: 0; overflow: visible; gap: 2px; }
  .entete nav a { min-height: 36px; background: transparent; color: #424245; padding: 0 12px; }
  .entete nav a:hover { color: #000; background: rgba(0, 0, 0, 0.05); }
  .entete nav a[aria-current="page"] { color: #000; background: rgba(0, 0, 0, 0.07); }
  main.page { padding-top: 3.5rem; padding-bottom: 5rem; }
  h1 { font-size: 3.75rem; margin-bottom: 1.5rem; }
  h2 { font-size: 2.4rem; margin-top: 4.5rem; }
  .accueil main.page { max-width: 54rem; }
  .accueil h2.accroche { font-size: 3.9rem; line-height: 1.05; }
  .accueil h2.accroche + p { font-size: 1.45rem; margin-bottom: 4rem; }
  .pied .page { padding-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 2rem; }
  .pied-liens { display: flex; flex-wrap: wrap; gap: 0 1.4rem; }
  .pied-liens li { border-top: 0; min-height: 0; }
}

@media print {
  .entete, .pied, .skip { display: none; }
  .page { margin: 0; max-width: none; }
  a { text-decoration: none; color: inherit; }
}
