/* ══ Version téléphone et tablette (08/11/2026) ══
   Mêmes sections que sur ordinateur, mise en page repensée pour un écran étroit.
   Ne s'applique qu'en dessous de 960 px (menu) et de 760 px (mise en page). */

/* ── Menu : bouton et panneau plein écran (téléphone et tablette) ── */
.nav-burger { display: none; }

@media (max-width: 960px) {
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    width: 44px; height: 44px; margin-left: 0.6rem; flex-shrink: 0;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.11); border-radius: 50%;
    cursor: pointer; position: relative; z-index: 2;
  }
  .nav-burger span { display: block; width: 17px; height: 1.6px; border-radius: 2px; background: var(--lin); transition: transform 0.35s cubic-bezier(0.22,1,0.36,1); }
  nav.menu-open .nav-burger span:first-child { transform: translateY(3.8px) rotate(45deg); }
  nav.menu-open .nav-burger span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

  .nav-links {
    display: flex; position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(96px + env(safe-area-inset-top)) 28px calc(32px + env(safe-area-inset-bottom));
    background: var(--foret-deep);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity 0.35s, transform 0.45s cubic-bezier(0.22,1,0.36,1), visibility 0s linear 0.45s;
    overflow-y: auto;
  }
  nav.menu-open .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity 0.35s, transform 0.45s cubic-bezier(0.22,1,0.36,1), visibility 0s; }
  .nav-links li { border-bottom: 1px solid rgba(240,237,228,0.1); }
  .nav-links li:last-child { border-bottom: none; margin-top: auto; padding-top: 1.6rem; }
  .nav-links a:not(.nav-cta) {
    display: block; padding: 1rem 0;
    font-family: 'Playfair Display', serif; font-size: 1.65rem; font-weight: 600; letter-spacing: 0;
    color: var(--lin);
  }
  .nav-links .nav-cta { display: flex !important; justify-content: center; padding: 1.05rem 1.3rem; font-size: 1rem; }
  body.menu-lock { overflow: hidden; }
}

/* ── Mise en page téléphone ── */
@media (max-width: 760px) {
  :root { --gut: 22px; }

  /* Barre du haut */
  nav { padding: calc(0.55rem + env(safe-area-inset-top)) var(--gut) 0.55rem; }
  .logo-img { height: 42px; }
  .aud-switch { margin-left: auto; padding: 3px; }
  .aud-btn { padding: 0.5rem 0.85rem; font-size: 0.76rem; }

  /* Sections : marges et titres */
  .s { padding: 4.6rem var(--gut); }
  .s-center { text-align: left; }
  .eyebrow { font-size: 0.7rem; letter-spacing: 0.2em; margin-bottom: 0.8rem; }
  .h2 { font-size: clamp(1.85rem, 8.4vw, 2.25rem); line-height: 1.12; margin-bottom: 0.9rem; }
  .lead { font-size: 0.98rem; line-height: 1.7; }
  .rule { margin: 1rem 0 1.1rem; }
  .two-col, .cgrid, .villes-inner, .apropos-layout { gap: 2.2rem; }
  .two-col > *, .cgrid > *, .villes-inner > *, .apropos-layout > *, .snk-wrap > *, .abo-grid > * { min-width: 0; }
  .fg select { width: 100%; min-width: 0; text-overflow: ellipsis; }

  /* Boutons pleine largeur */
  .btn-copper, .btn-ghost { display: flex; justify-content: center; text-align: center; }
  section .btn-copper[style] { display: flex !important; width: 100%; }

  /* Accueil */
  #hero { min-height: 100svh; padding: calc(92px + env(safe-area-inset-top)) var(--gut) 104px; justify-content: center; }
  .hero-inner { text-align: left; width: 100%; }
  .hero-h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); line-height: 1.05; margin-bottom: 1.3rem; }
  .hero-sub { font-size: 1rem; line-height: 1.7; margin: 0 0 2.2rem; max-width: none; }
  .hero-btns { flex-direction: column; gap: 0.75rem; justify-content: flex-start; }
  .btn-copper, .btn-ghost { padding: 1.05rem 1.6rem; font-size: 0.95rem; }
  .hero-cue { bottom: calc(1.6rem + env(safe-area-inset-bottom)); }
  .cue-line { height: 34px; }
  .orb-1 { width: 320px; height: 320px; }
  .orb-2 { width: 240px; height: 240px; }

  /* Comment ça marche : parcours vertical, icône à gauche */
  .path { grid-template-columns: 1fr; gap: 0; margin-top: 2.4rem; }
  .path::before { content: ''; position: absolute; left: 27px; top: 30px; bottom: 70px; border-left: 1.5px dashed rgba(196,120,58,0.55); }
  .path-step, .path-step.mid { display: grid; grid-template-columns: 56px 1fr; column-gap: 1.15rem; text-align: left; padding: 0 0 2rem; margin-top: 0; }
  .path-step:last-child { padding-bottom: 0; }
  .path-step + .path-step::before { display: none; }
  .path-node { grid-row: span 2; width: 56px; height: 56px; margin: 0; box-shadow: 0 0 0 7px var(--foret-deep), 0 8px 22px rgba(0,0,0,0.35); }
  .path-node svg { width: 23px; height: 23px; }
  .path-step h3 { font-size: 1.16rem; margin: 0.45rem 0 0.4rem; }
  .path-step p { font-size: 0.9rem; line-height: 1.65; max-width: none; margin: 0; }

  /* Entreprises / établissements : distributeur plus compact, avantages resserrés */
  .img-frame { min-height: 0; }
  .img-frame img { max-height: 400px; filter: drop-shadow(0 22px 30px rgba(0,0,0,0.16)); }
  .img-frame:hover img { transform: none; }
  .blist { margin-top: 1.6rem; gap: 0.6rem; }
  .b { padding: 0.95rem 1rem; gap: 0.85rem; border-radius: 13px; }
  .b:hover { transform: none; }
  .b-ic { width: 36px; height: 36px; border-radius: 10px; }
  .b-ic svg { width: 16px; height: 16px; }
  .b-t h3 { font-size: 0.93rem; line-height: 1.3; margin-bottom: 0.25rem; }
  .b-t p { font-size: 0.84rem; line-height: 1.55; }

  /* Snacking */
  .snk-intro { font-size: 0.96rem; margin: 0; }
  .snk-intro + .snk-intro { margin-top: 0.9rem; }
  .snk-wrap { margin-top: 2.4rem; gap: 2.2rem; }
  .snk-row { grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.3rem 0; }
  .snk-row:hover { padding-left: 0; }
  .snk-ico { width: 44px; height: 44px; }
  .snk-ico svg { width: 20px; height: 20px; }
  .snk-row h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
  .snk-row p { font-size: 0.9rem; line-height: 1.65; }
  .snk-dial { display: block; text-align: center; padding: 1.6rem 1.3rem 1.5rem; border: 1px solid rgba(240,237,228,0.14); border-radius: 18px; background: rgba(255,255,255,0.035); }
  .dial { width: 168px; }
  .dial-num { font-size: 2.3rem; }
  .dial-sub { font-size: 0.62rem; margin-top: 0.45rem; letter-spacing: 0.2em; }
  .snk-dial-text { margin: 1.1rem auto 0; font-size: 0.9rem; line-height: 1.65; max-width: 30em; }

  /* Employés / étudiants : photo en format paysage */
  .pl { margin-top: 1.7rem; }
  .pl-row { grid-template-columns: 42px 1fr; gap: 1rem; padding: 1.05rem 0; }
  .pl-row:hover { padding-left: 0; }
  .pl-ico { width: 42px; height: 42px; }
  .pl-ico svg { width: 19px; height: 19px; }
  .pl-row h3 { font-size: 0.97rem; }
  .pl-row p { font-size: 0.86rem; line-height: 1.55; }
  .meal-wrap { margin-right: 8px; }
  .meal-wrap img { min-height: 0; height: auto; aspect-ratio: 4 / 3; border-radius: 18px; }
  .meal-wrap::before { inset: 10px -8px -10px 10px; border-radius: 18px; }

  /* Déploiement : texte, carte, puis villes en pastilles */
  .villes-inner { grid-template-columns: 1fr; }
  #villes .lead { max-width: none !important; }
  .villes-list { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem !important; }
  .ville-row { padding: 0.55rem 0.95rem; border-radius: 50px; gap: 0.55rem; }
  .ville-row:hover { transform: none; }
  .ville-info { display: none; }
  .ville-name { font-size: 0.88rem; }
  .france-wrap { margin: -0.5rem -6px 0; }
  .city-label { display: none; }
  .france-wrap text[font-size] { font-size: 14px; }

  /* À propos : portrait et nom côte à côte */
  .apropos-left { display: grid; grid-template-columns: 84px 1fr; column-gap: 1.1rem; row-gap: 0.2rem; align-items: center; }
  .apropos-avatar { width: 84px; height: 84px; grid-row: span 2; box-shadow: 0 6px 20px rgba(74,124,89,0.3); }
  .apropos-name { font-size: 1.3rem; align-self: end; }
  .apropos-role { margin-top: 0; align-self: start; font-size: 0.82rem; }
  .apropos-quote { font-size: 1.32rem; line-height: 1.4; margin-bottom: 1.3rem; }
  .apropos-body { font-size: 0.94rem; line-height: 1.75; }

  /* Redevance (écoles) */
  #redevance .lead { max-width: none !important; }
  .abo-grid { margin-top: 2.2rem; gap: 1rem; }
  .abo-card { padding: 1.7rem 1.35rem; border-radius: 18px; }
  .abo-price { font-size: 2.8rem; }
  .abo-price span { display: block; margin: 0.5rem 0 0; font-size: 0.95rem; }
  .abo-incl { margin-top: 1.4rem; gap: 0.65rem; }
  .abo-incl li { font-size: 0.88rem; }
  .abo-sim-title { font-size: 1.15rem; margin-bottom: 1rem; }
  .abo-redev-body { font-size: 0.88rem; line-height: 1.65; }

  /* FAQ */
  .faq-list { margin-top: 2rem; gap: 0.6rem; }
  .faq-q { padding: 1.05rem 1.1rem; }
  .faq-q span { font-size: 0.93rem; }
  .faq-a p { padding: 0 1.1rem 1.1rem; font-size: 0.9rem; line-height: 1.7; }

  /* Contact */
  .cinfo { margin-top: 1.6rem; gap: 0.95rem; }
  .ci-ic { width: 40px; height: 40px; }
  .ci-t span, .ci-t a { font-size: 0.9rem; }
  .fg input, .fg select, .fg textarea { font-size: 1rem; padding: 0.9rem 1rem; }
  .btn-submit { align-self: stretch; padding: 1.05rem; font-size: 0.95rem; }

  /* Pied de page */
  footer { padding: 2.4rem var(--gut) calc(2.4rem + env(safe-area-inset-bottom)); gap: 1rem; }
  .foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); justify-content: center; column-gap: 2.6rem; row-gap: 0; text-align: center; }
  .foot-copy { line-height: 1.8; }

  /* Bouton de contact : une barre en bas de l'écran, cachée près du formulaire */
  .btt { display: none; }
  .cta-float {
    left: var(--gut); right: var(--gut); bottom: calc(14px + env(safe-area-inset-bottom));
    justify-content: center; padding: 0.9rem 1.2rem; font-size: 0.92rem;
    background: var(--cuivre-fonce); border-color: rgba(255,255,255,0.12);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  }
  .cta-float:hover { background: var(--cuivre-fonce-hover); }
  .cta-float-dot { background: #fff; }
  body.cta-off .cta-float, body.menu-lock .cta-float { opacity: 0; transform: translateY(14px); pointer-events: none; }

  /* Fenêtres mentions légales et confidentialité */
  .ml-overlay, .pc-overlay { padding: 1rem; }
  .ml-box, .pc-box { padding: 2.2rem 1.4rem 1.6rem; border-radius: 18px; max-height: 86vh; }
}

/* Très petits écrans (iPhone SE et équivalents) */
@media (max-width: 360px) {
  :root { --gut: 18px; }
  .logo-img { height: 38px; }
  .aud-btn { padding: 0.45rem 0.7rem; font-size: 0.72rem; }
  .hero-h1 { font-size: 2.35rem; }
}
