/* ============================================================
   Life'Scape — Packs événements
   Cartes façon e-commerce + popup de réservation, dans la charte
   (Gelasio pour les titres, brun #483c3c, or #C19A59).
   ============================================================ */

.packs-intro {
    padding: 40px 0 10px;
    text-align: center;
}
.packs-intro-title {
    font-family: Gelasio, serif;
    font-size: 40px;
    color: #483c3c;
    margin-bottom: 16px;
}
.packs-intro-text {
    max-width: 760px;
    margin: 0 auto;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #464646;
}

/* ---------- Grille des packs ---------- */

.packs-grid-section { padding: 30px 0 70px; }

/* Grille, et non flexbox enveloppante.
   -----------------------------------------------------------------------
   Chaque carte occupe SEPT rangées du parent — visuel, étiquette, titre,
   description, partenaire, prix/bouton, mention de minimum — et reprend ces
   rangées à son compte avec `subgrid`. Conséquence : chacune de ces zones
   s'aligne d'une carte à l'autre, quelle que soit la longueur des textes.

   Avec des cartes en colonne flex, chaque bloc se plaçait indépendamment :
   les prix et les boutons se retrouvaient à des hauteurs différentes selon
   que la description tenait sur trois ou quatre lignes. */
.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
    max-width: 1180px;
    margin: 0 auto;
}

.pack-card {
    grid-row: span 7;
    display: grid;
    grid-template-rows: subgrid;
    gap: 0;
    /* Crème, comme tous les blocs du site (page réservation, tarifs, avis).
       Le blanc franc faisait de ces cartes le seul élément de cette teinte
       sur l'ensemble des pages. */
    background: #f5f3eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(72, 60, 60, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pack-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(72, 60, 60, 0.2);
}

/* Repli pour les navigateurs sans `subgrid` : on retrouve le comportement
   précédent (colonne flex), sans alignement inter-cartes mais sans casse. */
@supports not (grid-template-rows: subgrid) {
    .packs-grid { display: flex; flex-wrap: wrap; justify-content: center; }
    .pack-card  { display: flex; flex-direction: column; flex: 1 1 320px; max-width: 380px; }
    .pack-card-body { display: flex; flex-direction: column; flex: 1; }
    .pack-card-desc { flex: 1; }
}

/* Format CARRÉ, et pas autre chose : les visuels des packs sont des affiches
   composées, dont le texte occupe le haut et le bas. Un recadrage en 4/3
   tranchait la banderole du café-théâtre et les pictogrammes de l'atelier
   œnologique. La hauteur gagnée l'était au prix de l'information.
   La condensation demandée vient donc du corps de carte, pas du visuel. */
.pack-card-media {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.pack-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Le corps reprend à son tour les six rangées restantes. Sans cela, ses
   éléments ne participeraient pas à l'alignement commun. */
.pack-card-body {
    grid-row: span 6;
    display: grid;
    grid-template-rows: subgrid;
    padding: 18px 20px 20px;
    gap: 0;
}

/* L'étiquette était sur #f3ede1, presque indiscernable du crème #f5f3eb qui
   l'entoure désormais : elle perdait sa forme de pastille. Elle reprend donc
   le voile doré employé ailleurs sur le site pour les pastilles et les
   ronds d'icône. */
.pack-card-tag {
    justify-self: start;
    align-self: start;
    background: rgba(193, 154, 89, 0.18);
    color: #8a6d33;
    font-family: 'Work Sans', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 11px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.pack-card-title {
    font-family: Gelasio, serif;
    font-size: 22px;
    color: #483c3c;
    line-height: 1.25;
    margin: 0 0 8px;
    align-self: start;
}

.pack-card-desc {
    font-family: Montserrat, sans-serif;
    font-size: 13.5px;
    line-height: 1.55;
    color: #555;
    margin: 0 0 10px;
    align-self: start;
}

.pack-card-partner {
    font-family: Montserrat, sans-serif;
    font-size: 12.5px;
    color: #9a7b3f;
    margin: 0 0 14px;
    align-self: end;
}
.pack-card-partner i { margin-right: 5px; }

/* Prix et bouton occupent leur propre rangée, commune aux trois cartes :
   les boutons sont donc sur la même ligne, quelle que soit la longueur de la
   description au-dessus. */
.pack-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-self: end;
}

.pack-card-price-amount {
    font-family: Gelasio, serif;
    font-size: 27px;
    font-weight: 700;
    color: #483c3c;
}
.pack-card-price-unit {
    font-family: Montserrat, sans-serif;
    font-size: 12.5px;
    color: #777;
    margin-left: 3px;
}

.pack-card-btn {
    background: #483c3c;
    color: #fff;
    border: none;
    border-radius: 2rem;
    font-family: 'Work Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 12px 24px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}
.pack-card-btn:hover {
    background: #2d2424;
    transform: translateY(-2px);
}

/* La mention de minimum est TOUJOURS présente dans le balisage, vide quand
   elle ne s'applique pas : c'est ce qui maintient le même nombre de rangées
   d'une carte à l'autre, donc l'alignement. */
.pack-card-note {
    min-height: 1.2em;
    margin: 8px 0 0;
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    color: #9a7b3f;
    text-align: right;
    align-self: start;
}

/* ---------- Popup de réservation ---------- */

.pack-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pack-modal[hidden] { display: none; }

.pack-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(48, 31, 31, 0.6);
    backdrop-filter: blur(2px);
}

.pack-modal-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 18px;
    padding: 34px 30px 30px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    animation: pack-modal-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes pack-modal-in {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pack-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: #999;
    cursor: pointer;
}
.pack-modal-close:hover { color: #483c3c; }

.pack-modal-tag {
    font-family: 'Work Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9a7b3f;
}
.pack-modal-title {
    font-family: Gelasio, serif;
    font-size: 24px;
    color: #483c3c;
    line-height: 1.2;
    margin: 6px 0 22px;
}

.pack-modal-label {
    display: block;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #464646;
    margin-bottom: 10px;
}

.pack-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    width: fit-content;
}
.pack-qty-btn {
    width: 48px;
    height: 48px;
    background: #f7f4ee;
    border: none;
    font-size: 22px;
    color: #483c3c;
    cursor: pointer;
    transition: background 0.2s ease;
}
.pack-qty-btn:hover { background: #ece5d8; }
.pack-qty-btn:disabled { color: #ccc; cursor: not-allowed; }
.pack-qty input {
    width: 64px;
    height: 48px;
    text-align: center;
    border: none;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #483c3c;
    -moz-appearance: textfield;
}
.pack-qty input::-webkit-outer-spin-button,
.pack-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pack-modal-minmax {
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    color: #999;
    margin: 8px 0 0;
}

.pack-modal-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 24px 0 18px;
    padding-top: 18px;
    border-top: 1px solid #eee;
    font-family: Montserrat, sans-serif;
}
.pack-modal-total span { font-size: 15px; color: #464646; }
.pack-modal-total strong {
    font-family: Gelasio, serif;
    font-size: 30px;
    color: #483c3c;
}

.pack-modal-pay {
    width: 100%;
    background: #483c3c;
    color: #fff;
    border: none;
    border-radius: 2rem;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 16px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}
.pack-modal-pay:hover { background: #2d2424; transform: translateY(-2px); }
.pack-modal-pay i { margin-right: 6px; }

.pack-modal-secure {
    margin-top: 12px;
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    color: #999;
    text-align: center;
}

@media (max-width: 768px) {
    .packs-intro-title { font-size: 30px; }
    .pack-card { max-width: 100%; }
    .pack-card-title { font-size: 22px; }
}

/* ============================================================
   Comment ça marche ?
   ============================================================
   Placé AVANT les packs : le visiteur doit comprendre qu'il achète un bon à
   faire valoir, et non un créneau ferme, avant de regarder les prix. Sans
   cette explication, l'écart entre « j'ai payé » et « je dois encore
   téléphoner » se découvrait après l'achat.
   ============================================================ */

.packs-how {
    padding: 10px 0 55px;
}

.packs-how .container {
    max-width: 1180px;
    margin: 0 auto;
}

.packs-how-title {
    font-family: Gelasio, serif;
    font-size: 30px;
    font-weight: 700;
    color: #483c3c;
    text-align: center;
    margin: 0 0 8px;
}

.packs-how-title::after {
    content: "";
    display: block;
    width: 58px;
    height: 2px;
    background: #C19A59;
    margin: 14px auto 46px;
}

.packs-how-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    align-items: stretch;
    position: relative;
}

/* Le fil qui relie les quatre numéros.
   -----------------------------------------------------------------------
   C'est lui qui fait lire les cartes comme une SUITE d'étapes et non comme
   quatre encarts posés côte à côte. Il court d'un centre de colonne à
   l'autre : avec quatre colonnes égales, ces centres tombent à 12,5 % et
   87,5 % de la largeur. */
.packs-how-steps::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        #C19A59 0 8px,
        transparent 8px 16px
    );
    opacity: 0.5;
    z-index: 0;
}

.packs-how-step {
    position: relative;
    z-index: 1;
    /* Crème, le fond de bloc du site — et non blanc. */
    background: #f5f3eb;
    border-radius: 12px;
    padding: 34px 20px 24px;
    margin-top: 22px;
    box-shadow: 0 4px 20px rgba(72, 60, 60, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* Le numéro est posé à cheval sur le bord haut, centré : il tient lieu de
   jalon sur le fil, et n'occupe aucune ligne de texte. */
.packs-how-num {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #C19A59;
    color: #fff;
    font-family: Gelasio, serif;
    font-size: 21px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    /* L'anneau clair détache le jalon du fil qui passe derrière. */
    box-shadow: 0 0 0 6px #DEDBC3;
}

.packs-how-step h3 {
    font-family: Gelasio, serif;
    font-size: 17.5px;
    color: #483c3c;
    margin: 0 0 10px;
    line-height: 1.3;
}

.packs-how-step p {
    font-family: Montserrat, sans-serif;
    font-size: 13.5px;
    line-height: 1.6;
    color: #5c4f4f;
    margin: 0;
}

/* ============================================================
   « Bientôt disponible »
   ============================================================ */

.pack-bientot-box {
    text-align: center;
}

.pack-bientot-icone {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(193, 154, 89, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px auto 18px;
}

.pack-bientot-icone i {
    font-size: 25px;
    color: #C19A59;
}

.pack-bientot-texte {
    font-family: Montserrat, sans-serif;
    font-size: 14.5px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 14px;
}

.pack-bientot-texte strong {
    color: #483c3c;
}

.pack-bientot-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.pack-bientot-actions .pack-modal-pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
    width: 100%;
}

@media (max-width: 900px) {
    /* Le fil ne relierait plus rien sur deux rangées : il disparaît. */
    .packs-how-steps { grid-template-columns: repeat(2, 1fr); gap: 22px 22px; }
    .packs-how-steps::before { display: none; }
    .packs-how-step { margin-top: 26px; }
}

@media (max-width: 560px) {
    .packs-how-steps { grid-template-columns: 1fr; gap: 34px; }
    .packs-how-title { font-size: 25px; }
}

/* Tarif pas encore public : occupe la place du montant sans en prendre le poids
   typographique — c'est une mention d'attente, pas une information de prix. */
.pack-card-price-attente {
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #777;
}
