/* ==========================================================
   ACCUEIL — Le Saladin
   Feuille de style dédiée à index.html uniquement.
   ========================================================== */

/* Reset strict */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100dvh;
    background-color: #ffffff;
    padding: 0;
}

/* Conteneur principal */
.container-accueil {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 100%;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    text-align: center;
}

/* Fond arabesque (généré par le script) */
#arabesque-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;   /* ← clippe les motifs qui dépassent à droite */
}

.motif-arabesque {
    position: absolute;
}

/* Photo du haut : reste collée en haut au scroll */
.hero-image {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #ffffff;
}

.hero-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Contenu au-dessus du fond */
.contenu-principal {
    position: relative;
    z-index: 1;
    padding: 30px 20px;
}

/* Images haut et bas */
.top-image-container {
    margin-bottom: 12px;
}

.bottom-image-container {
    margin-top: 25px;
    margin-bottom: 10px;
}

.image-nom, .image-ambiance {
    width: 100%;
    height: auto;
    display: block;
}

.image-ambiance {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Ville (neutre) — Bigelow Rules, casse respectée */
.ville {
    margin: 0 0 4px;
    font-family: 'Bigelow Rules', cursive;
    font-size: 3.6rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: #C5A059;
}

/* Type de lieu (gardé en français) */
.type-lieu {
    margin: 0 0 18px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a7a5c;
}

/* Adresse (neutre, sans libellé) */
.bloc-adresse {
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 18px;
}

/* Téléphone : numéro + bouton vert */
.bloc-telephone[hidden]{display:none;}

.bloc-telephone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 26px;
}

.numero {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0.02em;
}

.btn-appel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background-color: #1E8E5A;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(30, 142, 90, 0.35);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.btn-appel:hover, .btn-appel:active {
    background-color: #16744a;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(30, 142, 90, 0.45);
}

.btn-appel svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ------------------------------------------------------------------
   Boutons de langues — orange ↔ marron clignotant (texte blanc sur marron)
   ------------------------------------------------------------------ */

@keyframes projecteur {
    0% {
        background-color: #F5A623;
        border-color: #F5A623;
        color: #1a1a1a;
    }
    12%, 28% {
        background-color: #6b4f2a;
        border-color: #6b4f2a;
        color: #ffffff;
    }
    40%, 100% {
        background-color: #F5A623;
        border-color: #F5A623;
        color: #1a1a1a;
    }
}

.liste-langues {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-langue {
    display: flex;
    align-items: center;
    background-color: #F5A623;
    border: 2px solid #F5A623;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.35rem;
    width: 100%;
    box-shadow: 0 4px 10px rgba(245, 166, 35, 0.35);
    animation: projecteur 4.2s ease-in-out infinite;
}

/* Les 3 clignotent l'un après l'autre */
.btn-langue:nth-child(1) {
    animation-delay: 0s;
}

.btn-langue:nth-child(2) {
    animation-delay: -1.4s;
}

.btn-langue:nth-child(3) {
    animation-delay: -2.8s;
}

/* Survol / appui */
.btn-langue:hover, .btn-langue:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(245, 166, 35, 0.45);
}

.drapeau-img {
    width: 46px;
    height: auto;
    margin: 0 16px 0 18px;
    border-radius: 3px;
    flex-shrink: 0;
}

.nom-langue {
    flex: 1;
    text-align: left;
    padding-right: 10px;
}

.btn-fleche {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 66px;
    background-color: #5CB646;
}

.btn-fleche svg {
    width: 30px;
    height: 30px;
}

/* Footer */
.container-accueil footer {
    margin-top: 20px;
    font-size: 0.7rem;
    color: #bdc3c7;
}

/* Accessibilité : couper les animations si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
    .btn-langue {
        animation: none;
    }
}

/* Desktop : on cadre la page */
@media (min-width: 600px) {
    body {
        background-color: #ffe9d5;
        padding: 20px;
    }

    .container-accueil {
        max-width: 480px;
        border-radius: 20px;
        box-shadow: 0 15px 35px rgba(197, 160, 89, 0.15);
        border: 1px solid rgba(197, 160, 89, 0.2);
    }

    .hero-image {
        border-radius: 20px 20px 0 0;
        overflow: hidden;
    }
}
/* Indicateur de scroll (flèche) */
.scroll-cue {
    position: fixed;
    left: 50%;
    bottom: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F5A623;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    text-decoration: none;
    z-index: 20;
    opacity: 0.85;
    transition: opacity 0.3s ease;
    animation: monter 1.8s ease-in-out infinite;
}

.scroll-cue svg {
    width: 30px;
    height: 30px;
}

/* État « arrivé en bas de page » : flèche figée + effacée */
.scroll-cue.cache {
    opacity: 0;
    pointer-events: none;
    animation-play-state: paused;
}

@keyframes monter {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 14px); }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-cue { animation: none; }
}