/* =====================================================================
   L'instant bébé — feuille de style maison (reconstruction sans Joomla)
   Couleurs d'origine : rose #DE8C8E, sable #F5F0DF, slogan #E9CCAA
   Polices : Satisfy (logo), ABeeZee (corps), Verdana (slogan / coordonnées)
   ===================================================================== */

:root {
    --rose:       #DE8C8E;
    --rose-fonce: #c9797b;
    --sable:      #f5f0df;
    --slogan:     #E9CCAA;
    --gris-clair: #e3e3e3;
    --gris-texte: #808080;
    --etoile:     #f3b13b;
    --bleu:       #4f9fd6;
    --bleu-fonce: #3b86ba;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    width: 100vw;
    overflow-x: hidden;
    font-family: "ABeeZee", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ==================== EN-TÊTE ==================== */
.site-header {
    background: var(--rose);
    width: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 120px;
    padding: 0 30px;
    max-width: 1500px;
    margin: 0 auto;
}

.brand a {
    font-family: "Satisfy", cursive;
    font-size: 50px;
    line-height: 1;
    color: #fff;
    white-space: nowrap;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: block;
    padding: 10px 14px;
    color: #fff;
    font-size: 1.2rem;
    transition: opacity .2s ease;
}

.main-nav a:hover,
.main-nav a.active { opacity: .7; }

/* Espace connexion */
.nav-login { position: relative; }

.login-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 12px;
    color: #F5F0DF;
    font-size: 1.05rem;
}

.login-box {
    position: absolute;
    right: 0;
    top: 100%;
    width: 240px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    padding: 16px;
    display: none;
    z-index: 60;
}

.login-box.open { display: block; }

.login-form input {
    width: 100%;
    margin-bottom: 10px;
    padding: 9px 11px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font: inherit;
}

.login-submit {
    width: 100%;
    padding: 9px;
    border: none;
    border-radius: 4px;
    background: var(--rose);
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.login-submit:hover { background: var(--rose-fonce); }

.login-error {
    background: #fdecea;
    color: #a33a3a;
    border-radius: 4px;
    padding: 8px 10px;
    margin: 0 0 12px;
    font-size: .9rem;
}

/* Module une fois connecté */
.login-box--admin { width: 288px; }
.login-hello { margin: 0 0 4px; color: #444; font-size: 1rem; }
.login-role {
    margin: 0 0 14px;
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    color: #fff;
    background: var(--rose);
    padding: 2px 10px;
    border-radius: 20px;
}
.login-manage {
    margin: 0 0 8px;
    color: var(--rose);
    font-weight: 700;
    font-size: 1.05rem;
}
/* .login-box en préfixe : bat le display:flex de .main-nav ul */
.login-box .admin-links {
    display: block;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}
.login-box .admin-links li { display: block; margin: 0; width: 100%; }
.login-box .admin-links a {
    display: block;
    padding: 9px 6px;
    color: #555;
    font-size: .96rem;
    white-space: nowrap;
    border-bottom: 1px solid #f0f0f0;
    transition: color .15s ease, padding-left .15s ease;
}
.login-box .admin-links a:hover { color: var(--rose); padding-left: 12px; }
.login-logout {
    display: block;
    text-align: center;
    text-decoration: none;
}

/* Bouton hamburger (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle-bar {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}

/* ==================== HERO ==================== */
.hero {
    background-image: url("/assets/images/double-accueil-.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: 100% 0%;
    padding: 90px 20px 150px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 15px;
}

.hero-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0 0 30px;
}

.hero-brand span {
    font-family: "Satisfy", cursive;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    color: var(--rose);
}

.hero-lotus { width: 60px; height: auto; }

.hero-slogan {
    font-family: Verdana, Geneva, sans-serif;
    color: var(--slogan);
    font-size: 1.15rem;
    letter-spacing: 1px;
    margin: 0 0 26px;
}

.hero-coord {
    font-family: Verdana, Geneva, sans-serif;
    color: var(--gris-texte);
    font-size: 1.05rem;
    margin: 0;
}

/* ==================== TÉMOIGNAGES ==================== */
.testimonials {
    background: var(--sable);
    padding: 55px 20px 55px;
}

.carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.carousel-viewport {
    overflow: hidden;
    transition: height .45s ease;
}

.carousel-track {
    display: flex;
    align-items: flex-start;
    transition: transform 1.1s ease;
    will-change: transform;
}

.testimonial-card {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.testimonial-card > :first-child { margin-top: 0; }

.testimonial-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #444;
    margin: 0 0 8px;
}

.testimonial-stars {
    color: var(--etoile);
    font-size: .95rem;
    margin-bottom: 10px;
}

.testimonial-stars .empty { color: #d9d2bd; }

.testimonial-text {
    color: #5a5a5a;
    font-size: .98rem;
    margin: 0;
}

/* Flèches */
.carousel-arrow {
    position: absolute;
    top: 40px;
    transform: translateY(0);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(222, 140, 142, .9);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}

.carousel-arrow:hover { background: var(--rose-fonce); }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

/* Puces */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.carousel-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #cdbfa0;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.carousel-dots button.active {
    background: var(--rose);
    transform: scale(1.25);
}

/* ==================== PIED DE PAGE ==================== */
.site-footer {
    background: var(--gris-clair);
    text-align: center;
    padding: 26px 20px 34px;
    margin-top: 12px;
}

.footer-social ul {
    display: flex;
    justify-content: center;
    gap: 14px;
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--rose);
    color: #fff;
    font-size: 1.1rem;
    transition: background .2s ease;
}

.footer-social a:hover { background: var(--rose-fonce); }

.footer-links p { margin: 6px 0; }

.footer-links a { color: var(--rose); }
.footer-links a:hover { text-decoration: underline; }

.footer-copy {
    color: var(--gris-texte);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .92rem;
}

.footer-copy strong span,
.footer-copy strong { color: #eba4a6; }

/* Bouton retour en haut */
.go-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--rose);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease, background .2s ease;
    z-index: 80;
}

.go-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.go-top:hover { background: var(--rose-fonce); }

/* ==================== ÉDITION INLINE (texte + widget) ==================== */
.text-edit {
    cursor: pointer;
    border-bottom: 1px dashed currentColor;
    padding-bottom: 1px;
}
.text-edit:hover { opacity: .8; }
.tarif-editor { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.tarif-editor input {
    padding: 3px 6px;
    border: 1px solid var(--bleu, #4f9fd6);
    border-radius: 6px;
    font: inherit;
    color: #333;
    text-align: center;
}
.tarif-editor input[type="text"] { text-align: left; min-width: 160px; }
.tarif-editor input:focus { outline: 2px solid rgba(79, 159, 214, .3); }
.te-btn {
    width: 26px; height: 26px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #d8d8d8; border-radius: 6px;
    background: #fff; color: #999; cursor: pointer; font-size: .82rem;
    transition: color .15s ease, border-color .15s ease;
}
.te-ok:hover     { color: var(--bleu, #4f9fd6); border-color: var(--bleu, #4f9fd6); }
.te-cancel:hover { color: #d9534f; border-color: #d9534f; }

/* Recherche dynamique : léger fondu pendant le rafraîchissement des résultats */
[data-live-results] { transition: opacity .15s; }
[data-live-results].is-loading { opacity: .45; }

/* ==================== BANDEAU COOKIES ==================== */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #f0dcdc;
    border-left: 5px solid var(--rose);
    border-radius: 12px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, .18);
    padding: 14px 18px;
    z-index: 2500;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-text { margin: 0; font-size: .9rem; color: #555; line-height: 1.5; flex: 1 1 260px; }
.cookie-text a { color: var(--rose); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; margin-left: auto; }
.cookie-refuse, .cookie-accept {
    border: none; border-radius: 40px; padding: 9px 20px; font: inherit; font-weight: 600; cursor: pointer;
}
.cookie-refuse { background: #f0f0f0; color: #666; }
.cookie-refuse:hover { background: #e6e6e6; }
.cookie-accept { background: var(--rose); color: #fff; }
.cookie-accept:hover { background: var(--rose-fonce); }

/* ==================== NOTIFICATIONS (TOASTS) ==================== */
.toast-wrap {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 3000;
    pointer-events: none;   /* non bloquant */
}
.toast {
    pointer-events: auto;
    min-width: 260px;
    max-width: min(92vw, 420px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 14px 46px rgba(0, 0, 0, .22);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    border-top: 5px solid var(--rose);
    opacity: 0;
    transform: translateY(-12px) scale(.96);
    transition: opacity .28s ease, transform .28s ease;
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast.ok  { border-color: var(--bleu); }
.toast.err { border-color: #d9534f; }
.toast-ico {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    background: var(--rose);
}
.toast.ok  .toast-ico { background: var(--bleu); }
.toast.err .toast-ico { background: #d9534f; }
.toast-msg { color: #444; font-size: 1rem; line-height: 1.45; }
.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #bbb;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    align-self: flex-start;
}
.toast-close:hover { color: #777; }

/* ==================== PAGES D'ERREUR ==================== */
.error-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 70px 24px 90px;
    text-align: center;
}
.error-lotus {
    width: 78px;
    height: auto;
    margin-bottom: 18px;
    opacity: .9;
}
.error-code {
    font-family: "Satisfy", cursive;
    font-size: clamp(4.5rem, 16vw, 8rem);
    line-height: 1;
    color: var(--rose);
    margin-bottom: 4px;
}
.error-title {
    font-family: "Satisfy", cursive;
    font-weight: 400;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    color: #555;
    margin: 0 0 18px;
}
.error-message {
    color: var(--gris-texte);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0 auto 32px;
    max-width: 520px;
}
.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
.btn-rose {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rose);
    color: #fff;
    padding: 12px 26px;
    border-radius: 40px;
    font-weight: 600;
    transition: background .2s ease;
}
.btn-rose:hover { background: var(--rose-fonce); color: #fff; }
.btn-rose-soft {
    background: transparent;
    color: var(--rose);
    border: 2px solid var(--rose);
    padding: 10px 24px;
}
.btn-rose-soft:hover { background: var(--sable); color: var(--rose-fonce); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1199px) {
    .nav-toggle { display: flex; }

    .main-nav {
        position: absolute;
        top: 120px;
        left: 0;
        right: 0;
        background: var(--rose);
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease;
        z-index: 70;
    }

    .site-header { position: relative; }
    .main-nav.open { max-height: 520px; }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 16px;
    }

    .main-nav a {
        padding: 12px 30px;
        border-top: 1px solid rgba(255, 255, 255, .18);
    }

    .nav-login { text-align: center; padding: 10px 0; }

    /* Sur mobile la boîte de connexion passe en position fixe : elle échappe
       au « overflow:hidden » du menu et s'affiche au-dessus du hero.
       Elle défile en interne si elle est grande (compte administrateur). */
    .login-box {
        position: fixed;
        top: 96px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: 360px;
        margin: 0 auto;
        transform: none;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
        z-index: 3500;
    }

    .testimonial-card { flex: 0 0 50%; max-width: 50%; }
}

@media (max-width: 768px) {
    .header-inner { min-height: 90px; padding: 0 18px; }
    .brand a { font-size: 40px; }
    .main-nav { top: 90px; }
    .hero { background-attachment: scroll; padding: 50px 16px 90px; }
    .testimonial-card { flex: 0 0 100%; max-width: 100%; }
    .no-phone { display: none; }
}
