/* =====================================================================
   SOMNIA — Page « Infos pratiques »
   Agence Nexus · SAE 202 — CSS ecrit a la main (eco-conception)
   ===================================================================== */

:root {
    --c-violet-fonce: #5C3B8C;
    --c-violet-moyen: #7B5EA7;
    --c-violet-clair: #9D7DC2;
    --c-rose-pastel: #F0BFCF;
    --c-rose-vif: #D97BA8;
    --c-mauve-pale: #E8D5F5;
    --c-blanc: #FFFFFF;
    --c-texte: #3a2460;
    --c-radius: 14px;
    --c-radius-lg: 22px;
    --c-shadow: 0 6px 24px rgba(92,59,140,0.26);
    --c-shadow-card: 0 12px 34px rgba(92,59,140,0.20);
    --c-font-titre: 'Cinzel', serif;
    --c-font-deco: 'Cormorant', serif;
}

.ip { position: relative; color: var(--c-texte); font-family: var(--c-font-deco); overflow: hidden; }
.ip .conteneur { max-width: 760px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* Titres */
.ip__titre {
    font-family: var(--c-font-titre); font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; text-align: center; color: var(--c-violet-fonce);
}
.titre-section { font-size: 1.8rem; line-height: 1.25; margin-bottom: 30px; }

/* Separateur decoratif */
.separateur {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    color: var(--c-rose-vif); margin: 0 auto 36px; max-width: 420px;
}
.separateur::before, .separateur::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-rose-vif), transparent);
}

/* Decorations */
.deco { position: absolute; pointer-events: none; z-index: 1; user-select: none; }
.deco--star-tr { top: 60px; right: -20px; width: 200px; opacity: 0.7; animation: scintille 5s ease-in-out infinite; }
.deco--star-tl { top: 220px; left: -30px; width: 160px; opacity: 0.5; transform: scaleX(-1); animation: scintille 6s ease-in-out infinite; }
.deco--cloud-l { width: 250px; opacity: 0.85; animation: flotte 12s ease-in-out infinite; }
.deco--cloud-r { width: 270px; opacity: 0.85; animation: flotte 14s ease-in-out infinite reverse; }

@keyframes flotte { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes scintille { 0%,100% { opacity: 0.75; } 50% { opacity: 0.4; } }

/* --- Astres dessines en CSS (aucun asset planete/lune dans le dossier) --- */
.astre { position: absolute; z-index: 1; border-radius: 50%; pointer-events: none; }

.planete {
    width: 130px; height: 130px;
    background: radial-gradient(circle at 34% 30%, #bdecff 0%, #6aa7e6 32%, #7a63d6 64%, #3c2a7a 100%);
    box-shadow: inset -16px -16px 32px rgba(18,10,38,0.55), 0 0 42px rgba(120,90,200,0.45);
    animation: flotte 13s ease-in-out infinite;
}
.planete::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background:
        radial-gradient(circle at 60% 55%, rgba(120,210,170,0.45) 0 12%, transparent 16%),
        radial-gradient(circle at 30% 68%, rgba(120,210,170,0.35) 0 10%, transparent 14%),
        radial-gradient(circle at 72% 30%, rgba(170,150,235,0.4) 0 8%, transparent 12%);
    mix-blend-mode: screen;
}

.lune {
    width: 92px; height: 92px;
    background: radial-gradient(circle at 38% 35%, #fdfbff 0%, #ece1f7 55%, #cdbbe8 100%);
    box-shadow: 0 0 50px rgba(231,219,245,0.7), inset -12px -12px 26px rgba(150,120,190,0.35);
    animation: flotte 10s ease-in-out infinite;
}
.lune::before, .lune::after { content: ''; position: absolute; border-radius: 50%; background: rgba(150,120,190,0.22); }
.lune::before { width: 18px; height: 18px; top: 22px; left: 24px; }
.lune::after  { width: 12px; height: 12px; top: 50px; left: 52px; box-shadow: -22px 6px 0 -1px rgba(150,120,190,0.18); }

/* ===================== HERO ===================== */
.ip-hero {
    position: relative; text-align: center; padding: 120px 24px 24px;
    background: url('/assets/img/image2.webp') center / cover no-repeat;
}
.ip-hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,240,250,0.55), rgba(247,229,245,0.8));
}
.ip-hero__in { position: relative; z-index: 3; }
.ip-hero__logo {
    width: 380px; max-width: 78%; height: auto; display: block; margin: 0 auto 4px;
    filter: drop-shadow(0 8px 22px rgba(124,94,167,0.30)); animation: flotte 6s ease-in-out infinite;
}
.ip-hero__titre { font-size: 1.9rem; }

/* ===================== LABORATOIRE (clair) ===================== */
.sec-labo { position: relative; padding: 50px 0 70px; background: linear-gradient(180deg, #f7eafb, #efe1f8); }
.sec-labo::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: url('/assets/img/image4.webp') center / cover no-repeat; opacity: 0.16;
}
.ip-intro {
    text-align: center; font-style: italic; font-size: 1.3rem; color: var(--c-violet-moyen);
    max-width: 540px; margin: 0 auto 26px;
}

.infos-liste { list-style: none; margin: 0 auto 30px; padding: 0; max-width: 560px; }
.infos-liste li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.infos-liste .puce { color: var(--c-rose-vif); font-size: 1rem; margin-top: 4px; flex-shrink: 0; }
.infos-liste__txt { font-size: 1.08rem; line-height: 1.6; color: var(--c-texte); }
.infos-liste__txt strong { color: var(--c-violet-fonce); font-weight: 700; }
.infos-liste__txt a { color: var(--c-rose-vif); }
.infos-liste__txt small { display: block; color: var(--c-violet-clair); font-style: italic; }

/* Carte (map) */
.map-wrap {
    max-width: 560px; margin: 0 auto 30px; border-radius: var(--c-radius);
    overflow: hidden; box-shadow: var(--c-shadow); border: 3px solid var(--c-blanc);
}
.map-wrap iframe {
    display: block; width: 100%; height: 300px; border: 0;
    filter: hue-rotate(215deg) saturate(1.5) brightness(0.92);
}

.btn-pilule {
    display: block; width: fit-content; margin: 0 auto; text-align: center;
    font-family: var(--c-font-titre); font-size: 0.72rem; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--c-blanc);
    background: linear-gradient(90deg, var(--c-violet-moyen), var(--c-violet-clair));
    border: none; border-radius: 999px; padding: 12px 26px; cursor: pointer;
    box-shadow: var(--c-shadow); transition: transform .2s; line-height: 1.4;
}
.btn-pilule:hover { transform: translateY(-2px); opacity: 1; }

/* ===================== CONTACT (nuit) ===================== */
.sec-contact {
    position: relative; padding: 70px 0 80px;
    background: url('/assets/img/image1.webp') center / cover no-repeat fixed;
}
.sec-contact::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(108,82,160,0.92), rgba(86,58,140,0.94));
}
.sec-contact::after {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: url('/assets/img/image4.webp') center / cover no-repeat;
    opacity: 0.22; mix-blend-mode: screen;
}
.sec-contact .ip__titre { color: var(--c-blanc); font-size: 1.9rem; margin-bottom: 12px; }
.contact-intro {
    text-align: center; font-style: italic; font-size: 1.2rem; color: var(--c-mauve-pale);
    max-width: 540px; margin: 0 auto 34px;
}

.form-contact { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.form-contact input, .form-contact textarea {
    width: 100%; font-family: var(--c-font-deco); font-size: 1.05rem; color: var(--c-texte);
    background: rgba(247,238,255,0.95); border: 2px solid transparent;
    border-radius: 999px; padding: 14px 22px; transition: border-color .2s, box-shadow .2s;
}
.form-contact textarea { border-radius: var(--c-radius-lg); min-height: 150px; resize: vertical; }
.form-contact input::placeholder, .form-contact textarea::placeholder { color: var(--c-violet-clair); font-style: italic; }
.form-contact input:focus, .form-contact textarea:focus {
    outline: none; border-color: var(--c-rose-vif); box-shadow: 0 0 0 3px rgba(217,123,168,0.25);
}
.btn-envoyer {
    align-self: center; margin-top: 8px; width: 100%; max-width: 280px;
    font-family: var(--c-font-titre); font-size: 0.85rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--c-violet-fonce);
    background: linear-gradient(90deg, var(--c-rose-pastel), var(--c-mauve-pale));
    border: none; border-radius: 999px; padding: 15px; cursor: pointer;
    box-shadow: 0 6px 20px rgba(217,123,168,0.35); transition: transform .2s, box-shadow .2s;
}
.btn-envoyer:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(217,123,168,0.5); }

/* ===================== FAQ (pastel -> nuit) ===================== */
.sec-faq {
    position: relative; padding: 70px 0 120px;
    background:
        linear-gradient(180deg, rgba(247,229,245,0.0) 0%, rgba(247,229,245,0.0) 55%, rgba(58,36,96,0.65) 100%),
        url('/assets/img/image5.webp') center top / cover no-repeat;
}
.sec-faq::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: url('/assets/img/image6.webp') center / cover no-repeat; opacity: 0.5;
}
.sec-faq .ip__titre { font-size: 2rem; margin-bottom: 14px; }
.faq-intro {
    text-align: center; font-size: 1.25rem; color: var(--c-violet-fonce);
    max-width: 560px; margin: 0 auto 36px; line-height: 1.6;
}

.faq-carte {
    background: var(--c-blanc); border-radius: var(--c-radius-lg);
    box-shadow: var(--c-shadow-card); margin-bottom: 22px; overflow: hidden;
    border: 1px solid rgba(157,125,194,0.18);
}
.faq-carte__tete {
    background: linear-gradient(90deg, var(--c-violet-moyen), var(--c-violet-clair));
    padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-carte__q {
    font-family: var(--c-font-titre); font-size: 0.92rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-blanc); margin: 0; line-height: 1.4;
}
.faq-star { width: 28px; height: 28px; flex-shrink: 0; color: #c3a9ff; filter: drop-shadow(0 2px 5px rgba(60,36,96,0.4)); }
.faq-carte__r {
    padding: 18px 24px 22px; font-size: 1.08rem; line-height: 1.7;
    color: var(--c-texte); font-style: italic; margin: 0;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 720px) {
    .titre-section, .sec-contact .ip__titre, .sec-faq .ip__titre { font-size: 1.45rem; }
    .ip-hero__titre { font-size: 1.4rem; }
    .deco { display: none; }
}
