/* ===========================================================
   Version téléphone — tout est réservé aux écrans de moins de 760 px.
   La version ordinateur n'est pas touchée.
   =========================================================== */
.barre-mobile { display: none; }

@media (max-width: 760px) {
  body { font-size: 17px; line-height: 1.65; padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  section { padding: 3.6rem 6vw; }
  h2 { font-size: clamp(1.7rem, 7vw, 2.1rem); }
  .surtitre { font-size: .74rem; letter-spacing: .22em; margin-bottom: .8rem; }

  /* barre d'action fixée en bas de l'écran */
  .barre-mobile {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    background: var(--vert-sombre);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -6px 20px rgba(0,0,0,.12);
  }
  .barre-mobile a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
    height: 64px; color: var(--creme); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  }
  .barre-mobile a + a { border-left: 1px solid rgba(250,247,242,.15); }
  .barre-mobile svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }

  /* ---- Accueil : ouverture remise dans le bon ordre ---- */
  .ouverture { padding: 8.6rem 6vw 2.4rem; }
  .ouverture-grille { display: flex; flex-direction: column; gap: 0; }
  .ouverture-texte { display: contents; }
  .ouverture .surtitre { order: 1; }
  .ouverture h1 { order: 2; font-size: 2.15rem; margin-bottom: .9rem; }
  .ouverture .chapo { order: 3; font-size: 1rem; margin-bottom: 1.4rem; }
  .ouverture-photo { order: 4; margin: 0 -6vw 1.6rem; }
  .ouverture-photo img { height: 340px; }
  .cartes-prix { order: 5; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1.4rem; }
  .carte-prix { flex-direction: column; padding: 1rem 1rem 1.1rem; }
  .carte-prix .carte-montant { font-size: 1.55rem; }
  .carte-prix .carte-detail { font-size: .8rem; }
  .carte-label { font-size: .6rem; letter-spacing: .2em; }
  .ouverture-actions { order: 6; }
  .atouts-ligne { margin-top: 1.8rem; }

  /* bande de photos : légende sous les photos */
  .bande-portee { padding-bottom: 3.2rem; }
  .bande-legende { bottom: .8rem; background: none; padding: 0; font-size: 1rem; white-space: normal; text-align: center; width: 90%; }

  /* sections de l'accueil plus compactes */
  .vitrine img { padding: 1rem; }
  .trois-temps { gap: 1.6rem; margin-bottom: 2rem; }
  .pied-ligne { flex-direction: column; align-items: flex-start; }
  .createur-photos { padding-bottom: 2rem; }
  .createur-portrait { width: 78%; height: 360px; }
  .signature { font-size: 3rem; }
  .avis-entete { margin-bottom: 1.8rem; }
  .avis-carte { padding: 1.8rem 1.5rem 1.5rem; }
  .avis-carte blockquote { font-size: 1.02rem; }
  .venir-actions { flex-direction: column; }
  .venir-actions .btn { text-align: center; }

  /* bandes vertes de réassurance : une ligne par atout */
  .reassurance-bulles ul { grid-template-columns: 1fr; gap: .9rem; justify-content: stretch; }
  .reassurance-bulles li { font-size: .98rem; }
  .reassurance-bulles .bulle { width: 44px; height: 44px; }

  /* page optique : galerie raccourcie, bouton « voir plus » */
  .galerie-marques.repliee a:nth-of-type(n+19) { display: none; }
  .voir-plus { display: block; margin: 1.6rem auto 0; }

  /* page créateur : moins de vide avant la photo */
  .histoire-photos { margin-top: 0; margin-bottom: 2rem; }

  /* en-têtes de pages intérieures */
  .entete-page { padding: 8.4rem 6vw 2.8rem; }
  .ouverture-videos { padding-top: 8.4rem; }

  /* pied de page : une seule colonne, centrée */
  .footer-grille { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .footer-grille > div:last-child { text-align: center; }
  .footer-grille ul { padding: 0; }
  .footer-bas { flex-direction: column; align-items: center; gap: .4rem; text-align: center; }
}
@media (min-width: 761px) { .voir-plus { display: none; } }
@media (max-width: 760px) {
  .ouverture-grille > * , .ouverture-texte > * { align-self: stretch; }
  .ouverture-photo { width: auto; }
  .ouverture-photo img { width: 100%; }
  .ouverture-actions { flex-direction: column; align-items: stretch; }
  .ouverture-actions .btn { text-align: center; }
  .barre-mobile { position: fixed; }
}

/* ===== Retouches téléphone, série 2 ===== */
@media (max-width: 760px) {
  /* ouverture : pas de sur-titre, le titre suffit */
  .ouverture .surtitre { display: none; }
  .ouverture h1, .ouverture .chapo { text-align: center; }
  .carte-prix { align-items: center; text-align: center; justify-content: center; }
  .carte-prix .carte-label, .carte-prix .carte-detail { width: auto; }

  /* tout centré (sauf « Derrière le comptoir ») */
  .entete-ligne, .avis-entete { flex-direction: column; align-items: center; text-align: center; }
  .entete-ligne > div { max-width: none; }
  .opticien-etapes { text-align: center; }
  .pied-ligne { align-items: center; text-align: center; }
  .atelier-entete { text-align: center; }
  .atelier-prix { align-items: center; }
  .note-google { flex-direction: column; gap: .4rem; }
  .note-detail { align-items: center; }
  .venir-grille > div { text-align: center; }
  .infos { text-align: center; }
  .infos dt { padding-top: .6rem; }
  .petite-note { text-align: center; }
  .atouts-ligne li { justify-content: flex-start; }

  /* vitrine : défile toute seule */
  .vitrine { scroll-behavior: smooth; }

  /* ---------- Chez votre opticien : trois chemins possibles ---------- */
  .trois-temps { border-top: none; padding-top: .5rem; gap: 0; }
  .trois-temps li { position: relative; }

  /* A — fil vertical à pastilles */
  .chemin-a li { text-align: left; padding: 0 0 2.2rem 4.4rem; }
  .chemin-a li::before { content: ""; position: absolute; left: 1.45rem; top: 3rem; bottom: 0; border-left: 2px dotted var(--brun); }
  .chemin-a li:last-child::before { display: none; }
  .chemin-a .temps-num {
    position: absolute; left: 0; top: 0; width: 3rem; height: 3rem; border-radius: 50%;
    display: grid; place-items: center; margin: 0;
    background: var(--vert); color: var(--creme); font-size: 1.15rem;
  }
  .chemin-a h3 { padding-top: .55rem; }

  /* B — chemin en lacets */
  .chemin-b li { width: 82%; padding: 1.4rem 1.3rem; background: #fff; border: 1px solid var(--sable); text-align: left; margin-bottom: 2.6rem; }
  .chemin-b li:nth-child(even) { margin-left: auto; text-align: right; }
  .chemin-b li::after {
    content: ""; position: absolute; top: 100%; width: 34%; height: 2.6rem;
    border-bottom: 2px dashed var(--brun); border-right: 2px dashed var(--brun); border-bottom-right-radius: 1.6rem;
    left: 60%;
  }
  .chemin-b li:nth-child(even)::after { left: auto; right: 60%; border-right: none; border-left: 2px dashed var(--brun); border-bottom-right-radius: 0; border-bottom-left-radius: 1.6rem; }
  .chemin-b li:last-child { margin-bottom: 0; }
  .chemin-b li:last-child::after { display: none; }
  .chemin-b .temps-num { font-size: 2.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--brun); margin-bottom: .4rem; }

  /* C — pictogrammes reliés, centré */
  .chemin-c li { text-align: center; padding-bottom: 2.6rem; }
  .chemin-c li::after { content: ""; display: block; width: 2px; height: 1.6rem; margin: 1.2rem auto 0; background: repeating-linear-gradient(var(--brun) 0 4px, transparent 4px 8px); }
  .chemin-c li:last-child { padding-bottom: 0; }
  .chemin-c li:last-child::after { display: none; }
  .chemin-c .temps-ico { display: grid; place-items: center; width: 4.6rem; height: 4.6rem; margin: 0 auto .9rem; border-radius: 50%; background: var(--vert); color: var(--creme); position: relative; }
  .chemin-c .temps-ico svg { width: 2.3rem; height: 2.3rem; fill: none; stroke: currentColor; stroke-width: 1.3; }
  .chemin-c .temps-num { display: inline-block; font-size: .75rem; letter-spacing: .25em; color: var(--brun); font-family: var(--sans); margin-bottom: .3rem; }
  .chemin-c .temps-num::before { content: "Étape "; }
}
@media (max-width: 760px) {
  /* A avec pictogrammes à la place des chiffres */
  .chemin-a .temps-num { display: none; }
  .chemin-a .temps-ico {
    display: grid; place-items: center; position: absolute; left: 0; top: 0;
    width: 3.2rem; height: 3.2rem; border-radius: 50%;
    background: var(--vert); color: var(--creme);
  }
  .chemin-a .temps-ico svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.4; }
  .chemin-a li::before { left: 1.55rem; top: 3.2rem; }
  .chemin-a h3 { padding-top: .65rem; }
}

/* Sur-mesure (téléphone) : les 4 étapes en fil à pictogrammes */
@media (max-width: 760px) {
  .etapes-chic { grid-template-columns: 1fr; border-top: none; margin-top: 0; }
  .etapes-chic .etape-chic, .etapes-chic .etape-chic:nth-child(even) {
    border: none; padding: 0 0 2.4rem 4.6rem; text-align: left; position: relative;
  }
  .etape-chic::before, .etape-chic:first-child::before, .etape-chic:nth-child(even)::before {
    content: ""; position: absolute; left: 1.55rem; top: 3.2rem; bottom: 0; width: 0; height: auto;
    border: none; border-left: 2px dotted var(--brun); border-radius: 0; background: none;
  }
  .etape-chic:last-child::before { display: none; }
  .etape-chic:last-child { padding-bottom: 0; }
  .etape-num { display: none; }
  .etape-ico {
    display: grid; place-items: center; position: absolute; left: 0; top: 0;
    width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--vert); color: var(--creme);
  }
  .etape-ico svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
  .etape-label { margin-bottom: .2rem; padding-top: .2rem; }
  .etape-chic h3 { font-size: 1.3rem; margin-bottom: .5rem; }
}

/* ===== Série 3 ===== */
@media (max-width: 760px) {
  /* contact : le plan intégré ne s'affiche pas sur téléphone, on propose d'ouvrir Google Maps */
  .carte iframe { display: none; }
  .carte-mobile { display: block; position: relative; color: var(--creme); }
  .carte-mobile img { width: 100%; height: 230px; object-fit: cover; }
  .carte-mobile-texte {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    padding: .95rem 1rem; background: rgba(29, 63, 51, .92);
    font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  }
  .carte-mobile-texte svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }

  /* accueil plus court : pas de bande de photos sur téléphone */
  .bande-portee { display: none; }

  /* « Derrière le comptoir » centré */
  .createur-texte { text-align: center; }
  .createur-photos { max-width: 340px; margin: 0 auto; }
}

/* Accueil (téléphone) : l'atelier se résume au prix, aux deux liens et aux vidéos */
@media (max-width: 760px) {
  .atelier-entete > div:first-child { display: none; }
  .atelier-entete { margin-bottom: 2.2rem; }
  .atelier-prix { border-top: none; padding-top: 0; align-items: center; text-align: center; }
  .atelier-vert { padding-top: 3rem; }
}

/* ===== Série 4 (téléphone) ===== */
@media (max-width: 760px) {
  /* « Derrière le comptoir » : photos compactes, portrait rond + polaroïd */
  .createur-photos { position: relative; width: 210px; max-width: none; margin: 0 auto .4rem; padding-bottom: 0; }
  .createur-portrait { display: block; width: 168px; height: 168px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; margin: 0; }
  .createur-enfance { width: 86px; right: 0; bottom: -6px; padding: .35rem .35rem 1.1rem; transform: rotate(5deg); }
  .createur-grille { gap: 2rem; }

  /* « Passez me voir » : directement les infos pratiques */
  .venir-grille > div > h2, .venir-grille > div > p { display: none; }
  .venir .infos { border-top: none; padding-top: 0; }
  .venir { padding-top: 2.6rem; }
}

/* Contact (téléphone) : vrai plan Google, version compatible mobile */
@media (max-width: 760px) {
  .carte iframe:not(.carte-iframe-mobile) { display: none; }
  .carte .carte-iframe-mobile { display: block; width: 100%; height: 300px; border: 0; }
  .carte-lien-mobile {
    display: block; text-align: center; margin-top: .9rem;
    font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--vert);
  }
}
