  /* ---------- Couleurs de Chris ----------
     fond   #f7f9fc   bleu-blanc très pâle
     encre  #212c27   vert très sombre
     brume  #898f98   gris moyen
     ciel   #e6f0fa / sauge #e3eae7  : bandes et cartes
  */
  :root { --fond:#f7f9fc; --encre:#212c27; --brume:#898f98; --ciel:#e6f0fa; --sauge:#e3eae7; }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0; background: var(--fond); color: var(--encre);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 300; font-size: 19px; line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  img { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }

  /* ---------- Le nom, fixe, empilé en haut à gauche ----------
     Un seul bloc (et non coupé en deux coins) : c'est ce qui distingue
     le plus ce site de celui qui a servi de référence. */
  .signature { position: fixed; top: 26px; left: 26px; z-index: 40;
               pointer-events: none; transition: opacity .8s ease; }
  .signature.efface { opacity: 0; }
  .signature .nom {
    font-family: Fraunces, Georgia, serif; font-weight: 400;
    font-size: clamp(34px, 5.2vw, 74px); line-height: .92;
    letter-spacing: -.01em; margin: 0;
  }

  /* ---------- Bouton MENU ---------- */
  .micro { font-family: "Archivo Narrow", Arial Narrow, sans-serif; font-weight: 700;
           text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
  .bouton-menu { position: fixed; top: 26px; right: 26px; z-index: 60; background: none;
                 border: 0; cursor: pointer; color: var(--encre); padding: 6px; }

  /* ---------- Menu plein écran ---------- */
  .menu { position: fixed; inset: 0; z-index: 55; background: var(--fond);
          display: none; align-items: center; justify-content: center; }
  .menu.ouvert { display: flex; }
  .menu a { display: block; font-family: Fraunces, Georgia, serif;
            font-size: clamp(28px, 5.5vw, 52px); font-weight: 400;
            line-height: 1.55; text-align: center; }
  .menu a:hover { font-style: italic; }

  .page { position: relative; z-index: 10; }

  /* ---------- Photos ---------- */
  .planche { margin: 0 auto; }
  /* Numérotation discrète à la place des légendes */
  .numero { margin-top: 12px; color: var(--brume); }

  .titre { font-family: Fraunces, Georgia, serif; font-weight: 400; line-height: 1.12; }

  /* ---------- Bandes de couleur ---------- */
  .bande-ciel  { background: var(--ciel); }
  .bande-sauge { background: var(--sauge); }

  /* ---------- Cartes de formules qui se retournent au clic ---------- */
  .cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
            max-width: 900px; margin: 0 auto; }
  .carte { perspective: 1400px; background: none; border: 0; padding: 0;
           font: inherit; color: inherit; cursor: pointer; display: block; width: 100%; }
  .carte-faces { display: block; position: relative; height: 400px; transform-style: preserve-3d;
                 transition: transform .9s cubic-bezier(.4,0,.2,1); }
  .carte[aria-pressed="true"] .carte-faces { transform: rotateY(180deg); }
  .carte .avant, .carte .arriere {
    position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 30px 24px; text-align: center;
  }
  .carte .avant { background: var(--fond); border: 1px solid rgba(33,44,39,.14); }
  .carte .arriere { background: var(--encre); color: var(--fond); transform: rotateY(180deg); }
  .carte .liste { display: block; margin-bottom: 22px; font-size: 16px; line-height: 1.95; }
  .carte .liste .ligne { display: block; }
  .carte .prix { font-family: Fraunces, Georgia, serif; font-size: 26px; }
  .carte:hover .avant { background: var(--sauge); }

  /* ---------- Étapes ---------- */
  .etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px;
            max-width: 860px; margin: 0 auto; }

  /* ---------- Avis clients ---------- */
  .avis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
          max-width: 940px; margin: 0 auto; }
  .avis blockquote { margin: 0; text-align: center; }

  /* ---------- Bouton de contact toujours visible ---------- */
  .appel {
    position: fixed; right: 26px; bottom: 26px; z-index: 50;
    background: var(--encre); color: var(--fond);
    padding: 14px 24px; opacity: .9; transition: opacity .35s ease;
  }
  .appel:hover, .appel:focus-visible { opacity: 1; }
  body.menu-ouvert .appel { opacity: 0; pointer-events: none; }

  /* ---------- Formulaire ---------- */
  .champ { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(33,44,39,.28);
           padding: 6px 0 10px; font-family: inherit; font-size: 18px; font-weight: 300; color: var(--encre); }
  .champ:focus { outline: none; border-bottom-color: var(--encre); }
  select.champ { border-radius: 0; -webkit-appearance: none; appearance: none; }

  /* ---------- Apparition douce ---------- */
  .apparait { opacity: 0; transform: translateY(20px); transition: opacity 1.2s ease, transform 1.2s ease; }
  .apparait.visible { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    .apparait { opacity: 1; transform: none; transition: none; }
    .carte-faces { transition: none; }
    html { scroll-behavior: auto; }
  }

  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--encre); outline-offset: 4px;
  }

  /* ---------- Petits écrans ---------- */
  @media (max-width: 860px) {
    .cartes, .etapes, .avis { grid-template-columns: 1fr; max-width: 380px; }
  }
  @media (max-width: 640px) {
    /* Le nom reste fixe et en noir plein, les photos passent dessous :
       c'est ce qui tient la page sur téléphone. */
    .signature { top: 20px; left: 16px; opacity: 1; }
    .signature .nom { font-size: 33px; }

    /* Les photos ne touchent jamais les bords. Ce qui donne le rythme,
       c'est la variation de taille d'une photo à l'autre, et le vide entre. */
    .ecran { min-height: 0 !important; display: block !important;
             padding: 0 !important; margin-bottom: 26vh; }
    .ecran .planche { margin: 0 !important; }
    .ecran .planche img { aspect-ratio: 2/3 !important; }

    .ecran.t-m .planche { width: 69% !important; margin: 0 auto !important; }   /* moyenne, centrée */
    .ecran.t-l .planche { width: 93% !important; margin-left: 14px !important; } /* grande, calée à gauche */
    .ecran.t-l .planche img { aspect-ratio: 3/4 !important; }
    .ecran.t-s .planche { width: 46% !important; margin-left: 14px !important; } /* petite, calée à gauche */

    /* Le premier écran laisse la place au nom */
    .accueil { padding-top: 34vh !important; margin-bottom: 30vh; }

    /* Des cartes moins hautes : six d'affilée, ça faisait très long */
    .carte-faces { height: 320px; }

    .appel { right: 16px; bottom: 16px; padding: 12px 20px; }
  }
