:root {
    --bg: #f5f8fc;
    --surface: #ffffff;
    --surface-alt: #eaf2fb;
    --primary: #0a66ff;
    --primary-2: #00b2ff;
    --dark: #050b16;
    --text: #0f172a;
    --muted: #53627a;
    --line: #dfeafc;
    --success: #10b981;
    --shadow: 0 18px 40px rgba(5, 11, 22, 0.08);
    --radius: 14px;
    --glass: rgba(255, 255, 255, 0.62);
    --glass-strong: rgba(255, 255, 255, 0.78);
    --glass-line: rgba(255, 255, 255, 0.72);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    background:
        radial-gradient(circle at 8% 12%, rgba(0, 178, 255, 0.14), transparent 28%),
        radial-gradient(circle at 92% 38%, rgba(10, 102, 255, 0.1), transparent 24%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Space Grotesk', sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

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

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 90px 0;
}

.alt {
    background: var(--surface-alt);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(245, 248, 252, 0.68);
    border-bottom: 1px solid var(--glass-line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0;
    font-family: 'Space Grotesk', sans-serif;
    white-space: nowrap;
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--glass-line);
    background: rgba(255, 255, 255, 0.05);
}

/* Le nom est dans un seul bloc : le gap flex de .brand ne doit pas
   séparer « Zidane » et « Assouma ». « Zidane » reste blanc,
   « Assouma » garde la couleur d'accent (bleu). */
.brand-name {
    display: inline-block;
    color: #ffffff;
}

.brand-name span {
    color: var(--primary);
}

.nav > nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--glass-line);
    border-radius: 10px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.nav > nav a {
    padding: 0.55rem 0.7rem;
    border-radius: 7px;
    transition: 0.2s ease;
}

.nav > nav a:hover,
.nav > nav a:focus-visible {
    background: var(--dark);
    color: white;
    outline: none;
}

.nav > .btn-primary {
    padding: 0.78rem 1.1rem;
    font-size: 0.88rem;
    white-space: nowrap;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
    color: var(--dark);
}

.menu-toggle,
.mobile-menu {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.9rem 1.4rem;
    font-weight: 700;
    transition: 0.25s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    box-shadow: 0 16px 30px rgba(10, 102, 255, 0.26);
}

.btn-secondary {
    background: var(--glass);
    border-color: var(--glass-line);
    color: var(--dark);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero {
    padding: 80px 0 60px;
}

.page-hero {
    padding: 90px 0 30px;
}

.page-hero.small {
    padding-top: 70px;
}

.page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    letter-spacing: 0;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--dark);
}

.page-hero p {
    max-width: 700px;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 42px;
}

.eyebrow {
    display: inline-block;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(10, 102, 255, 0.1);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: 0;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--dark);
}

.hero-copy p {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.05rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.stats {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.stats li {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stats strong {
    font-size: 1.6rem;
    letter-spacing: 0;
    color: var(--dark);
}

.stats span {
    color: var(--muted);
}

.card {
    background: var(--glass);
    border: 1px solid var(--glass-line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.card-feature {
    width: min(100%, 420px);
    padding: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(234, 242, 251, 0.58));
    border: 1px solid var(--glass-line);
}

.card-feature span {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card-feature h3 {
    margin: 12px 0 18px;
    font-size: 1.8rem;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 14px;
}

.mini-grid div {
    border: 1px solid var(--line);
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 14px 12px;
}

.mini-grid small {
    display: block;
    color: var(--muted);
}

.mini-grid strong {
    display: block;
    margin-top: 8px;
    font-size: 1.2rem;
}

.section-head {
    margin-bottom: 28px;
}

.section-head h2 {
    margin: 14px 0 0;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--dark);
}

.cards {
    display: grid;
    gap: 24px;
}

.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card:nth-child(n + 4) {
    margin-top: 0;
}

.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.product-card,
.blog-card {
    overflow: hidden;
}

.service-card {
    padding: 28px;
}

.icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(10, 102, 255, 0.12), rgba(0, 178, 255, 0.12));
    color: var(--primary);
    border-radius: 14px;
    font-weight: 800;
}

.service-card h3 {
    margin: 20px 0 10px;
    font-size: 1.4rem;
}

.service-card p,
.product-card p,
.blog-body p,
.booking-copy p,
.contact-box p {
    color: var(--muted);
}

.product-card {
    padding: 16px;
}

.product-image,
.blog-image {
    height: 200px;
    border-radius: 10px;
    margin-bottom: 16px;
}

/* Photos téléversées depuis l'admin : même gabarit que les placeholders. */
img.product-image,
img.blog-image {
    display: block;
    width: 100%;
    object-fit: cover;
    background: #eef2f7;
}

.placeholder {
    background: linear-gradient(135deg, rgba(10,102,255,0.2), rgba(0,178,255,0.18));
}

.placeholder.blue {
    background: linear-gradient(135deg, rgba(10,102,255,0.28), rgba(0,178,255,0.18));
}

.placeholder.orange {
    background: linear-gradient(135deg, rgba(11, 14, 27, 0.88), rgba(10, 102, 255, 0.28));
}

.placeholder.cyan {
    background: linear-gradient(135deg, rgba(0,178,255,0.2), rgba(10,102,255,0.18));
}

.placeholder.pink {
    background: linear-gradient(135deg, rgba(10,102,255,0.18), rgba(5,11,22,0.78));
}

.product-card h3,
.blog-card h3 {
    margin: 0 0 6px;
    font-size: 1.3rem;
    color: var(--dark);
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}

.price-row strong {
    color: var(--dark);
    font-size: 1.4rem;
}

.price-row a {
    color: var(--primary);
    font-weight: 700;
}

.blog-card {
    background: var(--glass);
}

.blog-body {
    padding: 18px 18px 22px;
}

.blog-body span {
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.booking-wrap {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: center;
}

.booking-form {
    padding: 28px;
}

.booking-form fieldset {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    margin: 0 0 18px;
}

.booking-form legend {
    padding: 0 8px;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
}

/* Grille des créneaux libres (page Rendez-vous) : boutons radio. */
.slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 16px;
}

.slot-grid .slot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--glass);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
}

.slot-grid .slot:has(input:checked) {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-color: transparent;
    color: #fff;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    font: inherit;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--text);
    margin-top: 8px;
}

textarea {
    resize: vertical;
}

.single-form {
    justify-content: center;
}

.contact-box {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    background: linear-gradient(135deg, #050b16, #0a66ff);
    color: white;
    border-radius: 28px;
    padding: 36px 32px;
}

.contact-box h2 {
    color: white;
}

.contact-box p {
    color: rgba(255, 255, 255, 0.78);
}

.contact-box .eyebrow {
    background: rgba(255, 255, 255, 0.14);
    color: white;
}

.contact-info {
    color: rgba(255, 255, 255, 0.9);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.stat-card {
    padding: 24px 20px;
}

.stat-card span {
    color: var(--muted);
}

.stat-card strong {
    display: block;
    margin-top: 12px;
    font-size: 2rem;
    color: var(--dark);
    letter-spacing: 0;
}

.admin-panel {
    max-width: 900px;
}

.admin-card {
    padding: 26px;
}

.admin-links {
    margin-top: 10px;
}

.admin-link {
    display: block;
    color: inherit;
    transition: transform 0.2s ease;
}

.admin-link:hover {
    transform: translateY(-2px);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.alert-error {
    padding: 0.8rem 1rem;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #b91c1c;
    border-radius: 12px;
    margin-bottom: 18px;
}

.alert-success {
    color: #087443;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 14px 18px;
    border-radius: 12px;
}

.muted-small {
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 16px;
}

.contact-info {
    display: grid;
    gap: 8px;
    font-weight: 500;
}

/* Pied de page : grille multi-colonnes (brand, liens, contact, réseaux) + copyright.
   Les marges suivent une échelle régulière (40 / 24 / 18 / 26) pour
   garder un blanc équilibré autour du contenu. */
.footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding: 48px 0 28px;
}

.footer-brand {
    max-width: 280px;
}

/* Colonnes du pied de page : min-width:0 évite qu'un contenu long
   (e-mail, adresse) ne déborde de la grille. */
.footer-col {
    min-width: 0;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--dark);
    text-decoration: none;
    margin-bottom: 14px;
}

.footer-logo img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
}

.footer-logo-text {
    color: var(--dark);
}

.footer-logo-text span {
    color: var(--primary);
}

.footer-desc {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}

.footer-contact a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--bg);
    color: var(--dark);
    transition: 0.2s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-icon:hover,
.social-icon:focus-visible {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    outline: none;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 20px 0 26px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

/* Lien de retour en haut, aligné à droite sur desktop. */
.footer-top-link {
    color: var(--muted);
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-top-link:hover,
.footer-top-link:focus-visible {
    color: var(--primary);
}

/* --- Responsive Footer --- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }
    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
        border-bottom: 1px solid var(--line);
        padding-bottom: 24px;
        margin-bottom: 8px;
    }
    /* La colonne Contact passe sous les deux colonnes de liens. */
    .footer-grid > .footer-col:last-child {
        grid-column: 1 / -1;
        border-top: 1px solid var(--line);
        padding-top: 24px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 36px 0 20px;
    }
    .footer-brand {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    .footer-grid > .footer-col:last-child {
        border-top: none;
        padding-top: 0;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.portfolio-hero {
    background: linear-gradient(135deg, #050b16 0%, #0a66ff 72%, #00b2ff 100%);
    color: white;
}

.portfolio-hero h1 {
    max-width: 780px;
    color: white;
}

.portfolio-hero p {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.78);
}

.portfolio-section {
    background: var(--bg);
}

.portfolio-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.portfolio-filter {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    background: var(--glass);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.portfolio-filter.is-active,
.portfolio-filter:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.portfolio-card {
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.portfolio-card.is-hidden {
    display: none;
}

.portfolio-cover {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Photo de projet téléversée depuis l'admin : elle remplit la couverture,
   un voile sombre garantit la lisibilité du texte par-dessus. */
.portfolio-cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.portfolio-cover.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 11, 22, 0.62), rgba(5, 11, 22, 0.34));
    z-index: 1;
}

.portfolio-cover.has-image span,
.portfolio-cover.has-image strong {
    position: relative;
    z-index: 2;
}

.portfolio-cover span {
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    background: rgba(5, 11, 22, 0.2);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.portfolio-cover strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 0.95;
}

.portfolio-cover.blue {
    background: linear-gradient(145deg, #07152e, #0a66ff);
}

.portfolio-cover.dark {
    background: linear-gradient(145deg, #050b16, #1c334f);
}

.portfolio-cover.cyan {
    background: linear-gradient(145deg, #063248, #00b2ff);
}

.portfolio-cover.electric {
    background: linear-gradient(145deg, #0a66ff, #050b16);
}

.portfolio-card-body {
    padding: 22px;
}

.portfolio-card-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.portfolio-card-heading h2 {
    margin: 0;
    font-size: 1.45rem;
}

.portfolio-index {
    color: var(--primary);
    font-weight: 700;
}

.portfolio-card-body p {
    min-height: 72px;
    margin: 12px 0 20px;
    color: var(--muted);
}

.portfolio-profile {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 32px;
    margin-top: 56px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.portfolio-profile h2 {
    max-width: 420px;
    margin: 14px 0 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.portfolio-profile p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

.portfolio-meta a {
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
}

.portfolio-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 56px;
    padding: 28px;
    background: var(--dark);
    color: white;
}

.portfolio-pdf {
    margin-top: 56px;
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.portfolio-pdf-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 20px;
}

.portfolio-pdf-heading h2 {
    margin: 14px 0 8px;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.portfolio-pdf-heading p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
}

.portfolio-pdf-viewer {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--line);
    background: #dfeafc;
}

.portfolio-pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.portfolio-pdf-empty {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border: 1px dashed var(--primary);
    background: var(--surface-alt);
    color: var(--dark);
    text-align: center;
}

.portfolio-pdf-empty span {
    color: var(--muted);
}

.portfolio-cta .eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.portfolio-cta h2 {
    max-width: 560px;
    margin: 14px 0 0;
    font-size: clamp(1.7rem, 4vw, 2.7rem);
}

@media (max-width: 900px) {
    .hero-grid,
    .booking-wrap,
    .contact-box,
    .three,
    .four,
    .portfolio-grid,
    .portfolio-profile {
        grid-template-columns: 1fr;
    }

    .contact-box,
    .portfolio-cta,
    .portfolio-pdf-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Uniquement la navigation de l'en-tête : elle est remplacée par le menu
       mobile. Les <nav> du pied de page doivent rester visibles. */
    .nav > nav {
        display: none;
    }

    .nav > .btn-primary {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
        border: 1px solid var(--line);
        background: var(--surface);
        color: var(--dark);
        border-radius: 8px;
        padding: 0.65rem 0.85rem;
        font: inherit;
        font-weight: 700;
        cursor: pointer;
    }

    .mobile-menu {
        padding: 0 16px 16px;
        flex-direction: column;
        gap: 4px;
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.82);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
    }

    .mobile-menu.is-open {
        display: flex;
    }

    .mobile-menu a {
        padding: 0.7rem 0;
        color: var(--muted);
        border-bottom: 1px solid var(--line);
        font-weight: 700;
    }
}

@media (max-width: 600px) {
    .field-row {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 2.6rem;
    }
}

/* Creative Control Room: public-facing visual language */
.site-shell {
    --bg: #07090d;
    --surface: #10141b;
    --surface-alt: #0c1016;
    --text: #f5f5f0;
    --dark: #f5f5f0;
    --muted: #a4adba;
    --line: #27303d;
    --glass: rgba(18, 25, 35, 0.62);
    --glass-strong: rgba(24, 34, 47, 0.78);
    --glass-line: rgba(133, 170, 211, 0.24);
    background-color: var(--bg);
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    color: var(--text);
}

.site-shell .topbar {
    background: rgba(7, 9, 13, 0.58);
    border-bottom-color: var(--line);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
}

.site-shell .brand,
.site-shell .nav > nav,
.site-shell .btn-secondary,
.site-shell .nav > nav a {
    color: var(--text);
}

.site-shell .brand-name span,
.site-shell .price-row a,
.site-shell .portfolio-meta a,
.site-shell .blog-body span {
    color: var(--primary-2);
}

.site-shell .nav > nav {
    background: rgba(17, 24, 34, 0.58);
    border-color: var(--line);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    backdrop-filter: blur(16px) saturate(135%);
}

.site-shell .nav > nav a:hover,
.site-shell .nav > nav a:focus-visible {
    background: var(--primary);
    color: white;
}

.site-shell .hero,
.site-shell .section,
.site-shell .page-hero {
    position: relative;
}

.site-shell .hero {
    min-height: 680px;
    display: flex;
    align-items: center;
    padding: 110px 0 90px;
}

.site-shell .hero-copy,
.site-shell .hero-visual,
.site-shell .section-head,
.site-shell .service-card,
.site-shell .product-card,
.site-shell .blog-card,
.site-shell .booking-copy,
.site-shell .booking-form,
.site-shell .contact-box,
.site-shell .portfolio-card,
.site-shell .portfolio-profile,
.site-shell .portfolio-pdf,
.site-shell .portfolio-cta {
    animation: studio-reveal 0.7s both;
}

.site-shell .hero-visual {
    animation-delay: 0.12s;
}

.site-shell .hero-copy h1,
.site-shell .page-hero h1 {
    max-width: 720px;
    color: var(--text);
    font-size: clamp(2.6rem, 4.8vw, 4.4rem);
    line-height: 1;
    text-transform: uppercase;
}

.site-shell .section-head h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}

.site-shell .service-card h3,
.site-shell .product-card h3,
.site-shell .blog-card h3,
.site-shell .portfolio-card-heading h2 {
    font-size: 1.15rem;
}

.site-shell .portfolio-cover strong {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.site-shell .hero-copy p,
.site-shell .page-hero p,
.site-shell .service-card p,
.site-shell .product-card p,
.site-shell .blog-body p,
.site-shell .booking-copy p,
.site-shell .portfolio-card-body p,
.site-shell .portfolio-profile p {
    color: var(--muted);
}

.site-shell .eyebrow {
    border: 1px solid rgba(0, 178, 255, 0.35);
    background: rgba(0, 178, 255, 0.08);
    color: var(--primary-2);
}

.site-shell .card,
.site-shell .portfolio-card,
.site-shell .portfolio-pdf,
.site-shell .portfolio-profile,
.site-shell .booking-form,
.site-shell .stat-card {
    background: var(--glass);
    border-color: var(--line);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
    backdrop-filter: blur(18px) saturate(125%);
}

.site-shell .card-feature {
    background: rgba(16, 25, 35, 0.62);
    border-color: #29445f;
    -webkit-backdrop-filter: blur(20px) saturate(135%);
    backdrop-filter: blur(20px) saturate(135%);
}

.site-shell .card-feature h3,
.site-shell .section-head h2,
.site-shell .service-card h3,
.site-shell .product-card h3,
.site-shell .blog-card h3,
.site-shell .portfolio-card-heading h2,
.site-shell .portfolio-profile h2,
.site-shell .portfolio-cta h2 {
    color: var(--text);
}

.site-shell .mini-grid div,
.site-shell input,
.site-shell select,
.site-shell textarea,
.site-shell .portfolio-filter {
    background: #0b0f15;
    border-color: var(--line);
    color: var(--text);
}

.site-shell input::placeholder,
.site-shell textarea::placeholder {
    color: #687383;
}

.site-shell .service-card,
.site-shell .product-card,
.site-shell .blog-card,
.site-shell .portfolio-card {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-shell .service-card:hover,
.site-shell .product-card:hover,
.site-shell .blog-card:hover,
.site-shell .portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 24px 60px rgba(0, 102, 255, 0.18);
}

.site-shell .contact-box,
.site-shell .portfolio-cta {
    border: 1px solid #1f5fc4;
    border-radius: 12px;
    background: rgba(13, 31, 58, 0.7);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
}

.site-shell .contact-box h2,
.site-shell .contact-box p,
.site-shell .contact-info,
.site-shell .portfolio-cta h2 {
    color: var(--text);
}

.site-shell .footer {
    background: #07090d;
    border-color: var(--line);
}

.site-shell .social-icon {
    background: #10141b;
    border-color: var(--line);
    color: var(--text);
}

.site-shell .mobile-menu {
    background: #0b0f15;
    border-color: var(--line);
}

.site-shell .mobile-menu a {
    color: var(--text);
    border-color: var(--line);
}

@keyframes studio-reveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-shell *,
    .site-shell *::before,
    .site-shell *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 900px) {
    .site-shell .hero {
        min-height: 0;
        padding: 80px 0 60px;
    }

    .site-shell .hero-copy h1,
    .site-shell .page-hero h1 {
        font-size: clamp(2.35rem, 10vw, 4rem);
    }

    /* Menu mobile : vertical, pleine largeur, sous la barre. */
    .site-shell .mobile-menu,
    .nav .mobile-menu,
    .topbar .mobile-menu {
        flex-direction: column;
        align-items: stretch;
    }
}
/* ============================================================
   MOBILE — couche responsive téléphone (n'écrase pas le bureau)
   Le bureau reste inchangé : tout ce qui suit ne s'applique
   qu'aux écrans étroits via @media.
   ============================================================ */

/* Le menu mobile ne s'affichait jamais : app.js ajoute la
   classe .is-open mais aucune règle ne la définissait. */
.mobile-menu.is-open {
    display: flex;
    flex-direction: column;
}

/* Évite tout défilement horizontal parasite sur téléphone. */
html,
body {
    overflow-x: clip;
}

img,
iframe {
    height: auto;
}

/* ---------- Tablettes et grands téléphones (<= 900px) ---------- */
@media (max-width: 900px) {
    .container {
        width: min(1120px, calc(100% - 24px));
    }

    .section {
        padding: 56px 0;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-head h2 {
        font-size: clamp(1.5rem, 5.6vw, 2rem);
    }

    .section-head p {
        max-width: 100%;
    }

    /* Barre de navigation : logo + bouton menu uniquement. */
    .nav {
        min-height: 64px;
        gap: 12px;
    }

    .brand {
        font-size: 1.05rem;
    }

    .brand-logo {
        width: 30px;
        height: 30px;
    }

    .nav > nav {
        display: none;
    }

    .nav > .btn-primary {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 0.6rem 1rem;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: var(--surface);
        font: inherit;
        font-size: 0.88rem;
        font-weight: 700;
        cursor: pointer;
    }

    .mobile-menu {
        gap: 4px;
        margin: 0;
        padding: 10px 12px 14px;
        border-top: 1px solid var(--glass-line);
        background: var(--glass-strong);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

    .mobile-menu a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 0.7rem 0.9rem;
        border-radius: 10px;
        font-weight: 700;
        border-bottom: 1px solid var(--line);
    }

    .mobile-menu a:last-child {
        border-bottom: none;
    }

    .mobile-menu .mobile-cta {
        margin-top: 6px;
        justify-content: center;
        background: linear-gradient(135deg, var(--primary), var(--primary-2));
        color: #fff;
        border-bottom: none;
    }

    /* Grilles : 2 colonnes max, hero empilé.
       Les vraies classes du HTML sont .cards, .cards.three et
       .cards.four (pas .grid-2/.grid-3). */
    .hero {
        min-height: 0;
        padding: 64px 0 48px;
    }

    .hero-grid,
    .contact-box,
    .portfolio-pdf-heading,
    .portfolio-cta {
        grid-template-columns: 1fr;
    }

    .site-shell .hero-grid,
    .site-shell .contact-box,
    .site-shell .portfolio-pdf-heading,
    .site-shell .portfolio-cta {
        grid-template-columns: 1fr;
    }

    .cards.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: clamp(2rem, 8.5vw, 2.9rem);
    }

    .hero-card {
        padding: 22px;
    }

    .mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-filters {
        gap: 8px;
    }

    .portfolio-pdf iframe {
        height: 420px;
    }

    .admin-panel .admin-card .field-row {
        grid-template-columns: 1fr;
    }

    /* Évite le zoom auto iOS sur les champs. */
    input,
    select,
    textarea {
        font-size: 16px;
    }
}

/* ---------- Téléphones (<= 640px) ---------- */
@media (max-width: 640px) {
    .section {
        padding: 44px 0;
    }

    .hero {
        padding: 52px 0 40px;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: clamp(1.8rem, 9.5vw, 2.4rem);
    }

    .hero-sub,
    .page-hero p {
        font-size: 1rem;
    }

    /* Boutons */
    .hero-actions,
    .btn-row,
    .cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn,
    .btn-row .btn,
    .cta-row .btn {
        width: 100%;
    }

    .hero-visual,
    .hero-card {
        position: static;
    }

    .hero-meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mini-grid {
        grid-template-columns: 1fr;
    }

    .cards,
    .cards.three,
    .cards.four {
        grid-template-columns: 1fr;
    }

    .product-card img {
        height: 190px;
    }

    .blog-card img {
        height: 170px;
    }

    .portfolio-pdf iframe {
        height: 330px;
    }

    .portfolio-profile {
        padding: 24px;
    }

    /* La vraie grille du formulaire RDV de index.php */
    .field-row {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 26px 20px;
    }

    /* Checkout : les cartes restent lisibles sans scroll. */
    .admin-panel,
    .admin-panel .admin-card,
    .admin-card,
    kkiapay-widget {
        max-width: 100%;
    }
}

/* ---------- Petits téléphones (<= 420px) ---------- */
@media (max-width: 420px) {
    .container {
        width: calc(100% - 20px);
    }

    .page-hero {
        padding: 44px 0 30px;
    }

    .hero-card {
        padding: 18px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .portfolio-pdf iframe {
        height: 260px;
    }
}

/* ---------- Tactile : cibles de 44px minimum ---------- */
@media (pointer: coarse) {
    .nav > nav a,
    .mobile-menu a,
    .btn,
    .portfolio-filter,
    .slot {
        min-height: 44px;
    }

    .slot {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}


/* Sélecteur de jours par semaine (lundi -> dimanche), page Rendez-vous.
   Les semaines commencent le lundi, comme côté administration. */
.week-strip {
    display: grid;
    gap: 10px;
    margin: 4px 0 16px;
}

.week-row {
    display: grid;
    gap: 8px;
}

.week-label {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.week-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.week-day {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 44px;
    padding: 6px 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--glass);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.week-day-name {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
}

.week-day-num {
    font-size: 0.95rem;
}

.week-day:hover:not(:disabled),
.week-day.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.week-day:hover:not(:disabled) .week-day-name,
.week-day.is-active .week-day-name {
    color: rgba(255, 255, 255, 0.82);
}

.week-day.is-unavailable {
    opacity: 0.45;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Récapitulatif de commande (checkout) et confirmation d'affiliation */
.checkout-recap {
    margin: 1rem 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 6px;
    color: var(--muted);
}

.checkout-recap strong {
    color: var(--dark);
}

@media (max-width: 640px) {
    .week-days {
        gap: 4px;
    }

    .week-day {
        padding: 6px 2px;
    }
}

