/* ===========================================================
   Aelith Studio — thème violet sombre, élégant & calligraphique
   =========================================================== */

:root {
    --bg:            #0c0814;
    --bg-soft:       #140d22;
    --surface:       rgba(255, 255, 255, 0.04);
    --surface-line:  rgba(189, 147, 249, 0.18);
    --violet:        #b794f6;
    --violet-bright: #c8a8ff;
    --violet-deep:   #7c4dff;
    --magenta:       #d96fe0;
    --text:          #ece8f4;
    --text-soft:     #b3aac6;
    --glow:          0 0 8px rgba(183, 148, 246, 0.55), 0 0 22px rgba(124, 77, 255, 0.35);
    --radius:        18px;
    --maxw:          1100px;
    --font-display:  'Great Vibes', cursive;
    --font-body:     'Outfit', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.2px;
    overflow-x: hidden;
}

/* Halo lumineux d'arrière-plan */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 50% at 20% 0%, rgba(124, 77, 255, 0.22), transparent 60%),
        radial-gradient(50% 45% at 90% 15%, rgba(217, 111, 224, 0.16), transparent 55%),
        radial-gradient(70% 60% at 50% 100%, rgba(124, 77, 255, 0.12), transparent 60%),
        var(--bg);
}

a { color: var(--violet-bright); text-decoration: none; transition: color .2s ease; }
a:hover { color: #fff; }

main { flex: 1; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Titres calligraphiques ---------- */
.script {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--violet-bright);
    text-shadow: var(--glow);
    line-height: 1.1;
}

h1, h2, h3 { font-weight: 400; letter-spacing: .5px; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: .72rem;
    color: var(--violet);
    font-weight: 500;
}

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    max-width: var(--maxw);
    margin: 0 auto;
    width: 100%;
    backdrop-filter: blur(10px);
}

.brand {
    font-family: var(--font-display);
    font-size: 2.1rem;
    color: var(--violet-bright);
    text-shadow: var(--glow);
}
.brand:hover { color: #fff; }

.main-nav { display: flex; gap: 1.8rem; }
.main-nav a {
    color: var(--text-soft);
    font-size: .95rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 3px;
}
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--violet-bright);
    box-shadow: var(--glow);
    transition: width .25s ease;
}
.main-nav a:hover, .main-nav a.is-active { color: #fff; }
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; }

.section-title {
    text-align: center;
    margin: 0 0 .4rem;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    color: var(--violet-bright);
    text-shadow: var(--glow);
}
.section-intro {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 3rem;
    color: var(--text-soft);
}

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    padding: 6rem 1.5rem 5rem;
}
.hero h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    margin: .5rem 0 1rem;
}
.hero h1 .hero-brand {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 11vw, 6.5rem);
    line-height: 1.05;
    color: var(--violet-bright);
    text-shadow: var(--glow);
}
.hero h1 .hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1.15rem, 3.2vw, 1.7rem);
    font-weight: 300;
    letter-spacing: .3px;
    color: var(--text);
    text-shadow: none;
    max-width: 22ch;
}
.hero p {
    max-width: 640px;
    margin: 0 auto 2.2rem;
    font-size: 1.15rem;
    color: var(--text-soft);
    font-weight: 200;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-block;
    padding: .8rem 1.9rem;
    border-radius: 999px;
    font-weight: 400;
    letter-spacing: 1px;
    font-size: .95rem;
    border: 1px solid var(--violet);
    transition: all .25s ease;
}
.btn-primary {
    color: #14081f;
    background: linear-gradient(120deg, var(--violet-bright), var(--magenta));
    box-shadow: var(--glow);
}
.btn-primary:hover { color: #14081f; transform: translateY(-2px); filter: brightness(1.08); }
.btn-ghost { color: var(--violet-bright); background: transparent; margin-left: .6rem; }
.btn-ghost:hover { background: var(--surface); color: #fff; }

/* ---------- Cartes (services / projets) ---------- */
.grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--surface-line);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
    transform: translateY(-6px);
    border-color: var(--violet);
    box-shadow: 0 12px 40px rgba(124, 77, 255, 0.18);
}
.card h3 {
    margin: .2rem 0 .6rem;
    font-size: 1.4rem;
    color: var(--violet-bright);
}
.card .icon { font-size: 1.9rem; display: block; margin-bottom: .6rem; }
.card p { color: var(--text-soft); margin: 0; }

.card .meta {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .7rem;
    color: var(--magenta);
}

/* étiquettes technos */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.tag {
    font-size: .75rem;
    letter-spacing: .5px;
    padding: .28rem .7rem;
    border-radius: 999px;
    border: 1px solid var(--surface-line);
    color: var(--text-soft);
    background: rgba(124, 77, 255, 0.07);
}

/* ---------- Page contenu (mentions, contact) ---------- */
.page-head { text-align: center; padding: 4rem 1.5rem 1rem; }
.page-head h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    color: var(--violet-bright);
    text-shadow: var(--glow);
    margin: 0;
}

.prose { max-width: 760px; margin: 0 auto; padding: 1rem 1.5rem 2rem; }
.prose h2 {
    color: var(--violet-bright);
    margin-top: 2.4rem;
    font-size: 1.35rem;
    border-bottom: 1px solid var(--surface-line);
    padding-bottom: .4rem;
}
.prose p, .prose li { color: var(--text-soft); }
.prose a { text-decoration: underline; }

/* ---------- Contact ---------- */
.contact-wrap {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr 1fr;
    max-width: 920px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
}
.contact-info p { color: var(--text-soft); }
.contact-info .line { margin: 1rem 0; }
.contact-info .label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .7rem;
    color: var(--violet);
}

form .field { margin-bottom: 1.2rem; display: flex; flex-direction: column; }
form label { font-size: .85rem; color: var(--text-soft); margin-bottom: .4rem; letter-spacing: .5px; }
form input, form textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--surface-line);
    border-radius: 12px;
    padding: .8rem 1rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
form input:focus, form textarea:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: var(--glow);
}
form textarea { min-height: 140px; resize: vertical; }

/* ---------- Blocs de formulaire ---------- */
.form-block {
    border: 1px solid var(--surface-line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 1.4rem 1.5rem 1rem;
    margin: 0 0 1.4rem;
}
.form-block legend {
    padding: 0 .6rem;
    color: var(--violet-bright);
    letter-spacing: 1px;
    font-size: .95rem;
}
.form-block.conditional { border-color: var(--violet); }

/* Lignes de champ générées par Symfony (form_row) */
.form-block > div,
.form-block fieldset { margin-bottom: 1.1rem; }
.form-block label { display: block; font-size: .85rem; color: var(--text-soft); margin-bottom: .4rem; letter-spacing: .5px; }

.form-block input[type="text"],
.form-block input[type="email"],
.form-block input[type="tel"],
.form-block input[type="url"],
.form-block select,
.form-block textarea {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--surface-line);
    border-radius: 12px;
    padding: .75rem 1rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-block input:focus,
.form-block select:focus,
.form-block textarea:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: var(--glow);
}
.form-block textarea { resize: vertical; }
.form-block select option { background: var(--bg-soft); color: var(--text); }

/* Cases à cocher / boutons radio (choix multiples) */
.form-block fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1.1rem;
}
.form-block .form-check {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: .35rem 0;
}
.form-block fieldset input[type="checkbox"],
.form-block fieldset input[type="radio"] {
    width: auto;
    flex: none;
    margin: 0;
    accent-color: var(--violet-deep);
}
.form-block .form-check label { margin: 0; color: var(--text); font-size: .95rem; line-height: 1.3; }

/* Erreurs de validation */
.form-block ul { list-style: none; padding: 0; margin: .3rem 0 0; }
.form-block ul li { color: #ff9bd1; font-size: .85rem; }

/* Messages flash */
.flash {
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.4rem;
    font-size: .95rem;
}
.flash-success {
    color: #d8ffe9;
    background: rgba(80, 220, 150, 0.12);
    border: 1px solid rgba(80, 220, 150, 0.4);
}

/* ---------- Footer ---------- */
.site-footer {
    text-align: center;
    padding: 3rem 1.5rem 2.2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--surface-line);
    background: var(--bg-soft);
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--violet-bright);
    text-shadow: var(--glow);
}
.footer-tagline { color: var(--text-soft); margin: .3rem 0 1.2rem; font-size: .95rem; }
.footer-nav { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.2rem; }
.footer-nav a { color: var(--text-soft); font-size: .9rem; }
.footer-nav a:hover { color: #fff; }
.footer-copy { color: #6f6685; font-size: .8rem; margin: 0; }

/* ---------- Bandeau de consentement cookies ---------- */
.cookie-consent-overlay[hidden] { display: none; }

/* Carte ancrée en bas, non bloquante — dans l'esprit calme et élégant du site. */
.cookie-consent-overlay {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1080;
    display: flex;
    justify-content: center;
    padding: 1.25rem;
    pointer-events: none;
}

.cookie-consent {
    pointer-events: auto;
    position: relative;
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(124, 77, 255, 0.16), transparent 60%),
        var(--bg-soft);
    border: 1px solid var(--surface-line);
    border-radius: var(--radius);
    padding: 1.7rem 1.8rem 1.6rem;
    box-shadow: 0 18px 60px rgba(124, 77, 255, 0.28), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    animation: cookie-rise .4s ease both;
}

/* Filet lumineux dégradé en haut de la carte. */
.cookie-consent::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-bright), var(--magenta), transparent);
    box-shadow: var(--glow);
}

.cookie-consent .eyebrow { display: block; margin-bottom: .25rem; }

.cookie-consent-title {
    font-size: 2rem;
    margin: 0 0 .6rem;
}

.cookie-consent-text { color: var(--text-soft); font-size: .9rem; margin: 0 0 1.4rem; }

.cookie-consent-actions {
    display: flex;
    gap: .7rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.cookie-consent-actions .btn { padding: .55rem 1.4rem; font-size: .85rem; }
.cookie-consent-actions .btn-ghost { margin-left: 0; }

@keyframes cookie-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .site-header { flex-direction: column; gap: .6rem; }
    .main-nav { gap: 1.2rem; }
    .contact-wrap { grid-template-columns: 1fr; }
    .cookie-consent-overlay { padding: .9rem; }
    .cookie-consent-actions { flex-direction: column-reverse; }
    .cookie-consent-actions .btn { width: 100%; text-align: center; }
}
