  /*
  * accueil.css — sections propres à la page d'accueil (front-page.php).
  * Regroupe : Hero, Portes, Citation, Crêperie, Produits, Activités, Histoire.
  * La navigation et le footer sont dans global.css (partagés avec les
  * futures pages internes).
  */

  /* ===== HERO ===== */


  .hero-section {
    position: relative;
    z-index: 10;
    display: flex;
    width: 100%;
    height: clamp(34rem, 78svh, 40rem);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-base);
  }
  .hero-media {
    position: absolute;
    inset: 0;
  }
  .hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 76% 50%;
  }
  .hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem clamp(4rem, 12svh, 6rem);
    transform: translate3d(0, -2.5rem, 0);
    color: var(--color-ink);
    text-align: center;
  }
  .hero-eyebrow {
    display: block;
    margin-bottom: 1.5rem;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
  }
  .hero-logo {
    max-width: 100%;
    width: 160px;
    height: auto;
    margin-inline: auto;
    opacity: 0;
    transform: scale(0.9);
  }

  /* Breakpoints repris de Tailwind (accueil.html) : sm 640px, md 768px, lg 1024px */
  @media (min-width: 640px) {
    .hero-eyebrow { letter-spacing: 0.3em; }
    .hero-logo { width: 200px; }
  }

  @media (min-width: 768px) {
    .hero-section { height: clamp(42rem, 82svh, 52rem); }
    .hero-image { object-position: 50% 72%; }
    .hero-content {
      padding-bottom: clamp(8rem, 17svh, 11rem);
      transform: translate3d(0, -4.5rem, 0);
    }
    .hero-eyebrow {
      margin-bottom: 2rem;
      font-size: 11px;
      letter-spacing: 0.4em;
    }
    .hero-logo { width: 260px; }
  }

  @media (min-width: 1024px) {
    .hero-logo { width: 300px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-eyebrow,
    .hero-logo {
      opacity: 1 !important;
      transform: none !important;
    }
  }

  /* ===== PORTES ===== */


  .portes-grid {
    position: relative;
    z-index: 30;
    display: grid;
    width: 100%;
    max-width: 1400px;
    margin-top: -3.5rem;
    margin-inline: auto;
    /* La maquette utilise px-6 md:px-12 : un palier à 768px, pas un clamp fluide. */
    padding-inline: 1.5rem;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  @media (min-width: 768px) {
    .portes-grid {
      grid-template-columns: repeat(2, 1fr);
      margin-top: -2.5rem;
      padding-inline: 3rem;
    }
  }
  @media (min-width: 1024px) {
    .portes-grid { grid-template-columns: repeat(3, 1fr); }
  }

  .porte-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 2vw, 1.5rem);
    min-height: clamp(6.5rem, 9vw, 8.5rem);
    padding: clamp(1.15rem, 2vw, 1.5rem) clamp(1.5rem, 2.5vw, 2rem);
    background-color: var(--color-cream);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.5s ease;
  }
  .porte-card:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
  }
  @media (min-width: 768px) {
    .porte-card:nth-child(3) { grid-column: span 2; }
  }
  @media (min-width: 1024px) {
    .porte-card:nth-child(3) { grid-column: span 1; }
  }

  .porte-card-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 0.35rem;
    /* Réserve la place de l'illustration, qui est en position absolue. */
    padding-right: clamp(6rem, 16vw, 9rem);
  }

  .porte-card-heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .porte-card h2 {
    margin: 0;
    font-family: var(--font-title);
    font-size: clamp(1.375rem, 2.4vw, 1.75rem);
    line-height: 1.05;
    transition: transform 0.5s ease;
  }
  .porte-card p {
    margin: 0;
    font-weight: 300;
    opacity: 0.7;
    transition: transform 0.5s ease;
  }
  .porte-card-illustration {
    position: absolute;
    z-index: 0;
    right: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(7rem, 13vw, 10.5rem);
    height: clamp(7rem, 13vw, 10.5rem);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    user-select: none;
  }
  @media (max-width: 767px) {
    .porte-card-illustration {
      right: -0.75rem;
      width: clamp(8.5rem, 30vw, 11.5rem);
      height: clamp(8.5rem, 30vw, 11.5rem);
    }
    .porte-card-body {
      padding-right: clamp(7rem, 26vw, 9.5rem);
    }
  }

  .card-arrow {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    align-items: center;
    justify-content: center;
    border: 0;
  }
  .card-arrow svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
  }

  @media (hover: hover) and (pointer: fine) {
    .porte-card:hover h2,
    .porte-card:hover p {
      transform: translateY(-0.25rem);
    }
    .porte-card:hover .card-arrow svg { transform: translateX(4px); }
  }

  @media (prefers-reduced-motion: reduce) {
    .porte-card,
    .porte-card h2,
    .porte-card p {
      opacity: 1 !important;
      transform: none !important;
    }
  }

  /* ===== CITATION ===== */


  .quote-section {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    padding: clamp(4rem, 8vw, 7rem) clamp(2.5rem, 8vw, 6rem);
  }
  .quote-wrap {
    position: relative;
    display: flex;
    justify-content: center;
  }
  .ferme-quote {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: 24ch;
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 4.8vw, 5rem);
    font-style: normal;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-align: center;
    text-wrap: balance;
    color: var(--color-ink);
  }
  .quote-decor {
    position: absolute;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    user-select: none;
  }
  .quote-decor--1 {
    top: clamp(-1.75rem, -3.6vw, -0.9rem);
    left: calc(50% - 50vw + 1rem);
    width: clamp(3.6rem, 16.8vw, 6rem);
    height: clamp(3.6rem, 16.8vw, 6rem);
    transform: rotate(-14deg);
  }
  .quote-decor--2 {
    right: calc(50% - 50vw + 1rem);
    bottom: clamp(-3rem, -6vw, -1.5rem);
    width: clamp(6rem, 28vw, 10rem);
    height: clamp(6rem, 28vw, 10rem);
    transform: rotate(10deg);
  }
  @media (min-width: 768px) {
    /* Au-delà de 768px, les décors se positionnent par rapport au bloc de texte
      lui-même (.quote-box) plutôt que par rapport au viewport, pour rester
      collés à la citation sans jamais passer derrière le texte. */
    .quote-box {
      position: relative;
    }
    .quote-decor--1 {
      top: -3rem;
      /* Le décalage est lié au padding de .quote-section lui-même : dans le
         pire cas (citation aussi large que la zone disponible), le bord du
         décor tombe exactement sur le padding de la section, jamais au-delà
         — donc jamais coupé par l'écran, à aucune largeur. */
      left: calc(-1 * clamp(2.5rem, 8vw, 6rem));
      width: clamp(7.5rem, 10vw, 12rem);
      height: clamp(7.5rem, 10vw, 12rem);
    }
    .quote-decor--2 {
      right: calc(-1 * clamp(2.5rem, 8vw, 6rem));
      bottom: -6.75rem;
      width: clamp(18rem, 22.5vw, 26.25rem);
      height: clamp(18rem, 22.5vw, 26.25rem);
    }
  }

  /* ===== CREPERIE ===== */


  .creperie-section {
    overflow: hidden;
    padding-block: clamp(3rem, 5vw, 5rem);
    background-color: var(--color-base);
    color: var(--color-ink);
  }
  .creperie-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: clamp(2.5rem, 4vw, 3.5rem);
    width: min(100%, 1400px);
    margin-inline: auto;
    padding-inline: clamp(1.5rem, 4vw, 3rem);
  }
  .creperie-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .creperie-heading-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .creperie-title {
    margin: 0;
    color: var(--color-ink);
    font-family: var(--font-title);
    font-size: clamp(3.25rem, 7vw, 6rem);
    line-height: 0.9;
    text-wrap: balance;
  }
  .creperie-description {
    margin: 0;
    max-width: 28rem;
    color: rgba(17, 47, 31, 0.78);
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    font-weight: 300;
    line-height: 1.65;
    text-wrap: pretty;
  }
  .creperie-action {
    padding-top: 0.5rem;
  }
  .creperie-media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    min-width: 0;
  }
  .creperie-photo {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
  }
  .creperie-photo-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }
  .creperie-photo-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  @media (min-width: 768px) {
    .creperie-title { font-size: 64px; }
  }

  @media (min-width: 960px) {
    .creperie-layout {
      grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    }
    .creperie-media {
      grid-template-columns: repeat(12, minmax(0, 1fr));
      align-items: end;
      gap: clamp(1.5rem, 2.2vw, 2rem);
    }
    .creperie-photo:nth-child(1) { grid-column: 1 / span 5; grid-row: 1; }
    .creperie-photo:nth-child(2) { grid-column: 6 / span 7; grid-row: 1; }
    .creperie-photo:nth-child(3) { grid-column: 2 / span 5; grid-row: 2; align-self: start; }
    .creperie-photo:nth-child(4) { grid-column: 7 / span 6; grid-row: 2; }
    .creperie-photo:nth-child(1) .creperie-photo-media,
    .creperie-photo:nth-child(2) .creperie-photo-media,
    .creperie-photo:nth-child(3) .creperie-photo-media { aspect-ratio: 3 / 2; }
  }

  @media (max-width: 767px) {
    .creperie-layout {
      grid-template-areas:
        "heading"
        "media"
        "description"
        "action";
      align-items: start;
      row-gap: 2rem;
    }
    .creperie-copy { display: contents; }
    .creperie-heading-group { grid-area: heading; }
    .creperie-media { grid-area: media; width: 100%; }
    .creperie-description { grid-area: description; max-width: 34rem; }
    .creperie-action { grid-area: action; width: 100%; padding-top: 0; }
  }

  /* Décor fleur qui déborde de la section Crêperie */
  .fleur-decor {
    display: none;
    position: relative;
    z-index: 20;
    height: 0;
    pointer-events: none;
  }
  .fleur-decor-img {
    position: absolute;
    left: 0;
    bottom: -4rem;
    width: clamp(40rem, 15vw, 40rem);
    height: clamp(40rem, 15vw, 40rem);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    transform: translateX(-25%) translateY(70%) rotate(35deg);
  }
  @media (min-width: 1050px) {
    .fleur-decor { display: block; }
  }

  /* ===== PRODUITS ===== */


  .products-section {
    position: relative;
    padding-block: clamp(4rem, 8vw, 7rem);
    overflow: hidden;
    background-color: var(--color-base);
  }
  .products-shelf {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    padding-left: 1.5rem;
  }
  .products-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .products-eyebrow { margin-bottom: 1.5rem; }
  .products-title {
    margin: 0 0 2rem;
    color: var(--color-ink);
    font-family: var(--font-title);
    font-size: clamp(3.25rem, 7vw, 6rem);
    line-height: 0.9;
    text-wrap: balance;
  }
  .products-description {
    max-width: 24rem;
    margin: 0 0 2.5rem;
    color: rgba(17, 47, 31, 0.8);
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.65;
  }
  .products-mobile-action {
    display: block;
    padding-top: 0.5rem;
    padding-bottom: 4rem;
  }
  .products-primary-action { display: none; }

  .products-scroll-wrap {
    position: relative;
    min-width: 0;
  }
  .products-scroller {
    display: flex;
    gap: 1rem;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0.25rem 1.5rem 2rem 0.25rem;
    cursor: grab;
  }
  .products-scroller::-webkit-scrollbar { display: none; }
  .products-scroller.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
    user-select: none;
  }
  .products-scroller.is-dragging .product-card {
    pointer-events: none;
  }
  .product-card {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 74vw;
    max-width: 19rem;
    margin: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    padding: clamp(0.25rem, 0.35vw, 0.375rem) clamp(0.25rem, 0.35vw, 0.375rem) 0;
    background-color: var(--color-cream);
    border-radius: 14px;
    overflow: hidden;
  }
  .product-card__media {
    display: block;
    min-height: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }
  .product-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }
  .product-card figcaption {
    display: flex;
    min-height: 7rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    padding: 1rem 1.1rem 1.25rem;
    color: var(--color-ink);
    text-align: left;
  }
  .product-card h3,
  .product-card p { margin: 0; }
  .product-card h3 {
    font-family: var(--font-title);
    font-size: clamp(1.25rem, 1.6vw, 1.5rem);
    line-height: 1.05;
  }
  .product-card p {
    max-width: 32ch;
    color: rgba(17, 47, 31, 0.68);
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.45;
    text-wrap: pretty;
  }
  .products-next {
    display: none;
    position: absolute;
    right: clamp(1.5rem, 4vw, 3rem);
    bottom: 0;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    background-color: var(--color-ink);
    color: var(--color-base);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  .products-next:hover,
  .products-next:focus-visible {
    background-color: var(--color-accent);
  }
  .products-next:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
  }

  @media (min-width: 768px) {
    .products-title { font-size: 64px; }
  }

  @media (max-width: 920px) {
    .products-copy { padding-right: 1.5rem; }
  }

  /* À partir de 921px : le slider passe à droite du texte, colonnes côte-à-côte */
  @media (min-width: 921px) {
    .products-shelf {
      grid-template-columns: minmax(220px, 26rem) 1fr;
      align-items: center;
      gap: clamp(2.5rem, 5vw, 5rem);
      padding-left: max(1.5rem, calc((100vw - 1400px) / 2 + 3rem));
    }
    .products-copy { padding-right: 0; }
    .products-next { display: flex; }
    .products-scroller {
      gap: clamp(1.25rem, 2.2vw, 2rem);
      padding: 0.25rem clamp(4rem, 6vw, 5.5rem) clamp(2.5rem, 4vw, 3.5rem) 0.25rem;
    }
    .product-card {
      width: clamp(13rem, 22vw, 17.5rem);
      max-width: none;
    }
    .product-card__media { aspect-ratio: 3 / 4; }
    .products-mobile-action { display: none; }
    .products-primary-action { display: block; }
  }

  /* ===== ACTIVITES ===== */


  .activities-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(5rem, 9vw, 8rem) clamp(1.5rem, 4vw, 3rem) clamp(7rem, 12vw, 11rem);
    background-color: var(--color-ink);
    color: var(--color-base);
  }
  .activities-section::before,
  .activities-section::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
  }
  .activities-section::before {
    background-image: var(--activities-bg-image, none);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }
  .activities-section::after {
    background: rgb(17 47 31 / 86%);
  }
  .activities-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 1400px);
    margin-inline: auto;
  }
  .activities-header {
    display: grid;
    margin-bottom: clamp(3rem, 6vw, 5.5rem);
    gap: 1.5rem;
    align-items: start;
  }
  .activities-title {
    margin: 0;
    max-width: 10ch;
    font-family: var(--font-title);
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 0.92;
    text-wrap: balance;
  }
  .activities-title span { color: var(--color-cream); }
  .activities-copy {
    margin: 0;
    max-width: 38rem;
    color: rgb(236 230 218 / 82%);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    font-weight: 300;
    line-height: 1.6;
    text-wrap: pretty;
  }
  .activities-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
  .activities-action {
    display: flex;
    margin-top: clamp(4rem, 7vw, 6.5rem);
    justify-content: center;
  }
  .activities-empty {
    color: rgb(236 230 218 / 70%);
    font-weight: 300;
  }

  .activity-card {
    display: flex;
    min-width: 0;
    padding: clamp(0.25rem, 0.35vw, 0.375rem) clamp(0.25rem, 0.35vw, 0.375rem) 0;
    flex-direction: column;
    background: var(--color-cream);
    color: var(--color-ink);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
  }
  .activity-card:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 6px;
  }
  .activity-card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }
  .activity-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }
  .activity-card__content {
    position: relative;
    display: flex;
    min-height: 8.5rem;
    padding: 1.25rem 1.25rem 1.5rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
  }
  .activity-card h3 {
    margin: 0;
    font-family: var(--font-title);
    font-size: clamp(1.75rem, 2.5vw, 2.5rem);
    line-height: 1.08;
    text-wrap: balance;
  }
  .activity-card__description {
    margin: 0;
    color: rgba(17, 47, 31, 0.7);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.45;
    text-wrap: pretty;
  }
  .activity-card time {
    margin-top: 1.15rem;
    color: rgb(17 47 31 / 68%);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .activity-card__arrow { display: none; color: var(--color-accent); }

  @media (min-width: 768px) {
    .activities-title { font-size: 64px; }
    .activities-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .activity-card:nth-child(2) { transform: translateY(2rem); }
  }
  @media (max-width: 767px) {
    .activity-card h3 { padding-right: 3.5rem; }
    .activity-card__arrow {
      position: absolute;
      top: 1.35rem;
      right: 1.15rem;
      display: block;
      width: 2.6rem;
      height: 2.6rem;
    }
  }

  /* ===== HISTOIRE ===== */


  .transmission-section {
    overflow: hidden;
    padding: clamp(5rem, 9vw, 8rem) clamp(1.5rem, 4vw, 3rem);
    background-color: var(--color-base);
  }
  .transmission-intro {
    display: flex;
    width: min(100%, 46rem);
    margin-inline: auto;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
  }
  .transmission-title {
    margin: 0;
    color: var(--color-ink);
    font-family: var(--font-title);
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 0.9;
    text-wrap: balance;
  }
  .transmission-text {
    max-width: 34rem;
    margin: 0;
    color: rgba(17, 47, 31, 0.78);
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    font-weight: 300;
    line-height: 1.65;
    text-wrap: pretty;
  }

  .intro-gallery-viewport {
    width: 100%;
    margin-top: clamp(4rem, 6vw, 6rem);
    overflow: hidden;
  }
  .intro-gallery-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: clamp(1rem, 2vw, 2rem);
    padding-inline: max(1.5rem, calc((100vw - 1400px) / 2 + 3rem));
  }
  .intro-gallery-item {
    box-sizing: border-box;
    margin: 0;
    flex: 0 0 clamp(18rem, 34vw, 32rem);
    aspect-ratio: 3 / 2;
    border-radius: 14px;
    overflow: hidden;
  }
  .intro-gallery-item > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  @media (min-width: 768px) {
    .transmission-title { font-size: 64px; }
  }

  @media (max-width: 767px) {
    .transmission-section { padding-inline: 1rem; }
    .transmission-title { font-size: clamp(2.75rem, 12vw, 3.5rem); }
    .transmission-intro .outline-btn { min-height: 3.25rem; }

    .intro-gallery-viewport {
      overflow-x: auto;
      overscroll-behavior-inline: contain;
      scroll-snap-type: inline proximity;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }
    .intro-gallery-viewport::-webkit-scrollbar { display: none; }
    .intro-gallery-track { gap: 1rem; padding-inline: 1.5rem; }
    .intro-gallery-item { flex-basis: 78vw; scroll-snap-align: center; }
  }

  @media (prefers-reduced-motion: reduce) {
    .intro-gallery-viewport { overflow-x: auto; }
    .intro-gallery-track { transform: none !important; }
  }
