/* =====================================================================
   Accueil : « Une maison d'hôtes berbère à Tagmoute » (section .accueil-auberge)
   Trois lieux en alternance : la maison, la piscine, la table. Photo en polaroïd
   avec sa légende, texte, détails concrets, lien vers la page utile.
   ===================================================================== */
.lieux {
    --lieu-papier: #fcefdc;
    --lieu-titre: #4a260b;
    --lieu-texte: #5a4232;
    --lieu-action: #a2631d;
    --lieu-action-fonce: #7a4612;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    display: grid; gap: 56px; margin-top: 36px;
}
.lieu { display: grid; gap: 26px; align-items: center; }
.lieu > * { min-width: 0; }
.lieu:nth-child(1) { --pente: -1.6deg; }
.lieu:nth-child(2) { --pente: 1.4deg; }
.lieu:nth-child(3) { --pente: -1deg; }
.lieu-photo {
    justify-self: center; width: min(100%, 520px); margin: 0; padding: 10px 10px 14px; border-radius: 6px;
    background: #fff; box-shadow: 0 24px 44px -26px rgba(74, 38, 11, .9);
    transform: rotate(var(--pente));
}
.lieu-photo picture { display: block; }
.lieu-photo img { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.lieu-photo figcaption {
    margin-top: 10px; text-align: center;
    font-family: 'Rancho', cursive; font-size: 1.55rem; line-height: 1; color: var(--lieu-titre);
}
.lieu h3 {
    font-family: 'Rancho', cursive; font-weight: 400; letter-spacing: 0; color: var(--lieu-titre);
    font-size: clamp(2.1rem, 6vw, 2.8rem); line-height: 1; text-wrap: balance;
}
.lieu-texte p { max-width: 58ch; margin-top: 12px; font-size: 1.03rem; line-height: 1.75; color: var(--lieu-texte); }
.lieu-details { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.lieu-details li {
    list-style: none; padding: 6px 13px; border-radius: 999px; background: var(--lieu-papier);
    font-size: .9rem; font-weight: 600; line-height: 1.3; color: var(--lieu-action-fonce);
}
.lieux a.lieu-lien {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 16px;
    font-weight: 600; color: var(--lieu-action-fonce);
    text-decoration: underline; text-decoration-color: rgba(122, 70, 18, .35); text-underline-offset: 5px;
    transition: text-decoration-color .2s ease;
}
.lieux a.lieu-lien svg {
    width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    transition: transform .2s var(--ease-out);
}
.lieux a:focus-visible { outline: 3px solid var(--lieu-action); outline-offset: 4px; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) {
    .lieux a.lieu-lien:hover { text-decoration-color: currentColor; }
    .lieux a.lieu-lien:hover svg { transform: translateX(4px); }
}
@media (min-width: 900px) {
    .lieux { gap: 88px; margin-top: 56px; }
    .lieu { grid-template-columns: 1fr 1fr; gap: 72px; }
    .lieu:nth-child(even) .lieu-photo { order: 2; }
}

/* Le seul mouvement : chaque photo se pose quand elle arrive à l'écran (navigateurs qui suivent
   le défilement en CSS ; ailleurs, elle est simplement déjà posée) */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .lieu-photo { animation: lieu-pose linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
        @keyframes lieu-pose {
            from { opacity: .35; transform: translateY(46px) rotate(0deg) scale(.96); }
            to   { opacity: 1; transform: rotate(var(--pente)); }
        }
    }
}

/* =====================================================================
   Accueil : section « À moto ou à pied, au cœur de l'Atlas »
   Les deux images détourées (la moto et les randonneurs sortent du cadre) sont
   l'idée forte : une ombre qui suit leur contour les détache du fond crème.
   ===================================================================== */

.explorer {
    --ex-titre: #4a260b;
    --ex-encre: #3d2614;
    --ex-texte: #5a4232;
    --ex-action: #a2631d;
    --ex-action-fonce: #7a4612;
    --ex-vert: #0e7a3e;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    padding: 52px 16px 64px;
    background: #fffaf3;
    color: var(--ex-encre);
}
.explorer > h2 {
    display: flex; align-items: center; gap: .3em;
    max-width: 1180px; margin: 0 auto;
    font-family: 'Rancho', cursive; font-weight: 400; letter-spacing: 0; color: var(--ex-titre);
    font-size: clamp(2.3rem, 7vw, 3.1rem); line-height: 1; text-wrap: balance;
}
.explorer-grille { display: grid; gap: 52px; max-width: 1180px; margin: 30px auto 0; }
.explorer-volet { display: flex; flex-direction: column; min-width: 0; }
.explorer-image, .explorer-image picture, .explorer-image img { display: block; width: 100%; max-width: 560px; height: auto; }
/* image() (controller/seo.php) place l'image dans un <picture> : WebP servi automatiquement */
.explorer-image img { filter: drop-shadow(0 16px 18px rgba(74, 38, 11, .22)); } /* suit le contour détouré */
.explorer-volet h3 {
    margin-top: 18px;
    font-size: 1.22rem; font-weight: 600; line-height: 1.35; color: var(--ex-encre); text-wrap: balance;
}
.explorer-volet p { max-width: 62ch; margin-top: 10px; font-size: 1rem; line-height: 1.7; color: var(--ex-texte); }
.explorer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; }

.explorer a.explorer-bouton {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 22px; border-radius: 999px;
    background: var(--ex-action); color: #fff; font-weight: 600; text-decoration: none;
    box-shadow: 0 8px 18px -12px rgba(74, 38, 11, .8);
    transition: background-color .2s ease, transform .16s var(--ease-out);
}
.explorer a.explorer-bouton-whatsapp { background: var(--ex-vert); }
.explorer a.explorer-bouton .icone-whatsapp { width: 20px; height: 20px; }
.explorer a.explorer-bouton:active { transform: scale(.97); }
.explorer a.explorer-lien {
    padding: 12px 0; font-weight: 600; color: var(--ex-action-fonce);
    text-decoration: underline; text-decoration-color: rgba(122, 70, 18, .35); text-underline-offset: 4px;
    transition: text-decoration-color .2s ease;
}
.explorer a:focus-visible { outline: 3px solid var(--ex-action); outline-offset: 3px; border-radius: 999px; }

@media (hover: hover) and (pointer: fine) {
    .explorer a.explorer-bouton:hover { background: var(--ex-action-fonce); }
    .explorer a.explorer-bouton-whatsapp:hover { background: #0c8a44; }
    .explorer a.explorer-lien:hover { text-decoration-color: currentColor; }
}
@media (min-width: 900px) {
    .explorer { padding: 72px 24px 84px; }
    .explorer-grille { grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    .explorer a.explorer-bouton:active { transform: none; }
}

/* =====================================================================
   Accueil : encart « Une occasion à fêter ? » (vers /sejour-romantique-anniversaire)
   ===================================================================== */
.occasion-accueil {
    display: grid; gap: 26px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 8px 16px 64px;
    background: #fffaf3; color: #3d2614;
}
.occasion-accueil > * { min-width: 0; }
.occasion-accueil-photo { justify-self: center; width: min(100%, 360px); padding: 9px 9px 14px; border-radius: 6px; background: #fff;
    box-shadow: 0 20px 36px -22px rgba(74, 38, 11, .9); transform: rotate(-1.4deg); }
.occasion-accueil-photo img { display: block; width: 100%; height: auto; border-radius: 3px; }
.occasion-accueil h2 {
    display: flex; align-items: center; gap: .3em;
    font-family: 'Rancho', cursive; font-weight: 400; letter-spacing: 0; color: #4a260b;
    font-size: clamp(2.3rem, 7vw, 3.1rem); line-height: 1; text-wrap: balance;
}
.occasion-accueil p { max-width: 58ch; margin-top: 12px; font-size: 1rem; line-height: 1.7; color: #5a4232; }
.occasion-accueil a.occasion-accueil-bouton {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 20px; padding: 0 22px;
    border-radius: 999px; background: #a2631d; color: #fff; font-weight: 600; text-decoration: none;
    box-shadow: 0 8px 18px -12px rgba(74, 38, 11, .8);
    transition: background-color .2s ease, transform .16s cubic-bezier(0.23, 1, 0.32, 1);
}
.occasion-accueil a.occasion-accueil-bouton:active { transform: scale(.97); }
.occasion-accueil a:focus-visible { outline: 3px solid #a2631d; outline-offset: 3px; border-radius: 999px; }
@media (hover: hover) and (pointer: fine) { .occasion-accueil a.occasion-accueil-bouton:hover { background: #7a4612; } }
@media (min-width: 900px) {
    .occasion-accueil { grid-template-columns: .8fr 1.2fr; gap: 64px; padding: 16px 24px 84px; }
    .occasion-accueil-miroir { grid-template-columns: 1.2fr .8fr; }
    .occasion-accueil-miroir .occasion-accueil-photo { order: 2; transform: rotate(1.4deg); }
}
@media (prefers-reduced-motion: reduce) { .occasion-accueil a.occasion-accueil-bouton:active { transform: none; } }

