/* ══════════════════════════════
   RESET & BASE
══════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg:   #0b0c10;
    --bg2:  #111318;
    --ac:   #00b4d8;
    --ac2:  #0077b6;
    --tx:   #e8eaed;
    --tx2:  rgba(232,234,237,.55);
    --border: rgba(0,180,216,.15);
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--tx);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; object-fit: cover; }

/* ══════════════════════════════
   UTILITAIRES
══════════════════════════════ */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 40px;
}

.eyebrow {
    display: block;
    font-size: .65rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--ac);
    margin-bottom: 12px;
}

h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--tx);
    margin-bottom: 16px;
}

.section-sub {
    font-size: .9rem;
    color: var(--tx2);
    margin-bottom: 48px;
    max-width: 500px;
}

section { padding: 96px 0; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: 12px 28px;
    border: 1px solid var(--ac);
    color: var(--ac);
    background: transparent;
    cursor: pointer;
    transition: background .25s, color .25s;
}
.btn:hover { background: var(--ac); color: var(--bg); }
.btn-fill { background: var(--ac); color: var(--bg); font-weight: 700; }
.btn-fill:hover { background: #00d4f5; border-color: #00d4f5; }
.btn-full { width: 100%; justify-content: center; }

/* ══════════════════════════════
   NAV
══════════════════════════════ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(11,12,16,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--tx);
    white-space: nowrap;
}
.nav-logo-icon { flex-shrink: 0; }
.nav-logo span { color: var(--ac); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    margin-left: auto;
}
.nav-links a {
    font-size: .8rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--tx2);
    transition: color .2s;
}
.nav-links a:hover { color: var(--ac); }

.btn-nav {
    font-size: .75rem;
    padding: 8px 20px;
    white-space: nowrap;
}

.hamburger { display: none; }
.nav-mobile { display: none; }

/* ══════════════════════════════
   HERO
══════════════════════════════ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img { height: 100%; object-position: center; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(11,12,16,.95) 45%, rgba(11,12,16,.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0;
    padding: 0 40px;
    padding-top: 64px;
}

.hero-content h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--tx);
    max-width: 700px;
    margin-bottom: 20px;
}
.hero-content h1 em { color: var(--ac); font-style: normal; }

.hero-sub {
    font-size: .95rem;
    color: var(--tx2);
    max-width: 480px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ac);
    letter-spacing: .05em;
}
.stat-label { font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: var(--tx2); }
.stat-sep { width: 1px; height: 36px; background: var(--border); }

/* ══════════════════════════════
   SERVICES
══════════════════════════════ */
#services { background: var(--bg2); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 48px;
}

.service-card {
    background: var(--bg);
    padding: 36px 28px;
    border: 1px solid var(--border);
    transition: border-color .25s, background .25s;
}
.service-card:hover { border-color: var(--ac); background: rgba(0,180,216,.04); }

.service-icon {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.service-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tx);
    margin-bottom: 10px;
}

.service-card p {
    font-size: .82rem;
    color: var(--tx2);
    line-height: 1.7;
}

/* ══════════════════════════════
   FORMULES
══════════════════════════════ */
#formules { background: var(--bg); }
#formules h2 { margin-bottom: 8px; }

.carousel {
    position: relative;
    margin-top: 48px;
    overflow: hidden;
    padding-bottom: 56px;
}

.carousel-track {
    display: flex;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 64px;
}

.carousel-slide .formule-card {
    width: 100%;
    max-width: 480px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 28px));
    z-index: 2;
    background: transparent;
    border: 1px solid var(--ac);
    color: var(--ac);
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
    font-family: 'Barlow Condensed', sans-serif;
}
.carousel-btn:hover { background: var(--ac); color: var(--bg); }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.carousel-dots {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 28px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    border: 1px solid rgba(0,180,216,.3);
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}
.dot.active {
    background: var(--ac);
    transform: scale(1.5);
    border-color: var(--ac);
}

.formule-card {
    position: relative;
    background: rgba(0,180,216,.05);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 36px 28px;
    transition: border-color .25s;
}
.formule-card:hover { border-color: rgba(0,180,216,.4); }

.formule-featured {
    background: rgba(0,180,216,.05);
}

.formule-badge {
    position: absolute;
    top: -1px; left: 50%; transform: translateX(-50%);
    background: var(--ac);
    color: var(--bg);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: 4px 14px;
    white-space: nowrap;
}

.formule-header { margin-bottom: 24px; }

.formule-name {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--ac);
    margin-bottom: 10px;
}

.formule-price {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--tx);
    line-height: 1;
    margin-bottom: 12px;
}
.formule-price span { font-size: 1.6rem; color: var(--ac); }

.formule-desc {
    font-size: .78rem;
    color: var(--tx2);
    line-height: 1.6;
}

.formule-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    flex: 1;
}
.formule-list li {
    font-size: .8rem;
    color: var(--tx2);
    padding-left: 18px;
    position: relative;
}
.formule-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--ac);
    font-size: .75rem;
}

/* ══════════════════════════════
   AVANT / APRÈS
══════════════════════════════ */
#avantapres { background: var(--bg2); }
#avantapres .container {
    padding-top: 0;
}
#avantapres h2 { margin-bottom: 8px; }
#avantapres .section-sub { margin-bottom: 12px; }
#avantapres .carousel { margin-top: 12px; }

.carousel-slide .aa-pair {
    width: 100%;
}

/* ══════════════════════════════
   COMPARAISON AVANT / APRÈS
══════════════════════════════ */
.img-compare {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: col-resize;
    user-select: none;
    border: 1px solid var(--border);
    margin-top: 56px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.img-compare__after {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-compare__before {
    position: absolute;
    inset: 0;
    clip-path: inset(0 50% 0 0);
    pointer-events: none;
}
.img-compare__before img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-compare__handle {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 3px;
    background: rgba(255,255,255,.9);
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-compare__btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--ac);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ac);
    font-size: 1.1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.35);
    flex-shrink: 0;
    cursor: col-resize;
}

.img-compare__lbl {
    position: absolute;
    top: 14px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    padding: 4px 12px;
    z-index: 5;
    pointer-events: none;
}
.img-compare__lbl--avant { left: 14px; background: rgba(220,50,50,.85); color: #fff; }
.img-compare__lbl--apres { right: 14px; background: var(--ac); color: var(--bg); }

.aa-pair-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--ac);
    margin-bottom: 12px;
}

.aa-duo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.aa-card {
    position: relative;
    flex: 1;
    aspect-ratio: 16/9;
    overflow: hidden;
    border: 1px solid var(--border);
}
.aa-card img { height: 100%; transition: transform .4s; }
.aa-card:hover img { transform: scale(1.03); }

.aa-label {
    position: absolute;
    top: 14px; left: 14px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    padding: 4px 12px;
    z-index: 2;
}
.aa-label--avant { background: rgba(220,50,50,.85); color: #fff; }
.aa-label--apres { background: var(--ac); color: var(--bg); }

.aa-mid {
    font-size: 1.6rem;
    color: var(--ac);
    flex-shrink: 0;
    font-family: 'Barlow Condensed', sans-serif;
}

/* ══════════════════════════════
   AVIS
══════════════════════════════ */
#avis { background: var(--bg); }

.carousel-slide .avis-card {
    width: 100%;
    max-width: 600px;
}

.avis-card {
    background: rgba(0,180,216,.04);
    border: 1px solid var(--border);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color .25s;
}
.avis-card:hover { border-color: rgba(0,180,216,.35); }
.avis-featured { background: rgba(0,180,216,.04); }

.avis-stars { color: var(--ac); font-size: 1rem; letter-spacing: 2px; }

.avis-text {
    font-size: .85rem;
    color: var(--tx2);
    line-height: 1.75;
    flex: 1;
    font-style: italic;
}

.avis-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.avis-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--ac);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.avis-name {
    font-size: .82rem;
    font-weight: 500;
    color: var(--tx);
}
.avis-role {
    font-size: .68rem;
    color: var(--tx2);
    margin-top: 2px;
}

/* ══════════════════════════════
   CONTACT & HORAIRES
══════════════════════════════ */
#contact { background: var(--bg2); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-left h2 { margin-bottom: 28px; }

.horaires {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.horaire-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    font-size: .82rem;
    border-bottom: 1px solid var(--border);
}
.horaire-row:last-child { border-bottom: none; }
.horaire-row span:first-child { color: var(--tx2); }
.horaire-time {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--ac);
}

.contact-infos {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.contact-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: .82rem;
    color: var(--tx2);
}
.ci-icon { width: 20px; flex-shrink: 0; text-align: center; }

.contact-form {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tx);
    margin-bottom: 6px;
}

.form-row { display: flex; gap: 12px; }

input, select, textarea {
    width: 100%;
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--tx);
    font-family: 'Inter', sans-serif;
    font-size: .82rem;
    padding: 11px 14px;
    outline: none;
    transition: border-color .2s;
    appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--ac); }
input::placeholder, textarea::placeholder { color: rgba(232,234,237,.3); }
textarea { resize: none; }

.section-divider {
    height: 48px;
    background: var(--bg);
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 48px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-sub {
    font-size: .75rem;
    color: var(--tx2);
    letter-spacing: .1em;
}

.footer-links {
    display: flex;
    gap: 32px;
}
.footer-links a {
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--tx2);
    transition: color .2s;
}
.footer-links a:hover { color: var(--ac); }

.footer-copy {
    font-size: .65rem;
    color: rgba(232,234,237,.2);
    letter-spacing: .1em;
    margin-top: 8px;
}
.footer-credit {
    color: var(--ac);
    transition: opacity .2s;
}
.footer-credit:hover { opacity: .7; }

/* ══════════════════════════════
   DESKTOP — GRILLES D'ORIGINE
══════════════════════════════ */
@media (min-width: 769px) {

    /* Formules : grille 3 colonnes */
    #formules .carousel { overflow: visible; padding-bottom: 0; }
    #formules .carousel-btn,
    #formules .carousel-dots { display: none; }
    #formules .carousel-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
        transform: none !important;
        transition: none !important;
    }
    #formules .carousel-slide { min-width: auto; padding: 0; }
    #formules .carousel-slide .formule-card { max-width: none; }

    /* Réalisations : paires empilées, toutes visibles */
    #avantapres .carousel { overflow: visible; padding-bottom: 0; }
    #avantapres .carousel-btn,
    #avantapres .carousel-dots { display: none; }
    #avantapres .carousel-track {
        display: flex;
        flex-direction: column;
        gap: 48px;
        transform: none !important;
        transition: none !important;
    }
    #avantapres .carousel-slide { min-width: auto; padding: 0; }
    #avantapres .img-compare { margin-top: 16px; }

    /* Avis : grille 3 colonnes */
    #avis .carousel { overflow: visible; padding-bottom: 0; }
    #avis .carousel-btn,
    #avis .carousel-dots { display: none; }
    .carousel-clone { display: none; }
    #avis .carousel-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
        transform: none !important;
        transition: none !important;
    }
    #avis .carousel-slide { min-width: auto; padding: 0; }
    #avis .carousel-slide .avis-card { max-width: none; }
}

/* ══════════════════════════════
   MOBILE
══════════════════════════════ */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--tx);
    transition: all .3s;
}

@media (max-width: 768px) {

    .container { padding: 0 20px; }
    section { padding: 64px 0; }

    /* Nav */
    .nav-links { display: none; }
    .btn-nav { display: none; }
    .hamburger { display: flex; }

    .nav-mobile {
        display: none;
        background: var(--bg);
        border-top: 1px solid var(--border);
        padding: 20px;
    }
    .nav-mobile.open { display: block; }
    .nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
    .nav-mobile a {
        display: block;
        padding: 12px 16px;
        font-size: .8rem;
        letter-spacing: .15em;
        text-transform: uppercase;
        color: var(--tx2);
        border-bottom: 1px solid var(--border);
    }
    .nav-mobile .btn-nav { margin-top: 8px; width: 100%; justify-content: center; }

    /* Hero */
    #hero { min-height: 100svh; }
    .hero-bg img { object-position: 65% center; }
    .hero-overlay { background: linear-gradient(100deg, rgba(11,12,16,.65) 40%, rgba(11,12,16,.2) 100%); }
    .hero-content h1 { font-size: 2.4rem; }

    /* Formules — fond mobile */
    #formules { background: #000; position: relative; }
    #formules::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url('formule.png') center/cover no-repeat;
        opacity: .35;
        z-index: 0;
    }
    #formules .container { position: relative; z-index: 1; }

    /* Réalisations — fond mobile */
    #avantapres { background: #000; position: relative; }
    #avantapres::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url('Réalisation.png') center/cover no-repeat;
        opacity: .85;
        z-index: 0;
    }
    #avantapres .container { position: relative; z-index: 1; padding-top: 120px; }

    /* Avis — fond mobile */
    #avis { background: #000; position: relative; }
    #avis::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url('avis.png') center/cover no-repeat;
        opacity: .35;
        z-index: 0;
    }
    #avis .container { position: relative; z-index: 1; }
    .hero-sub { font-size: .85rem; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { justify-content: center; }
    .hero-stats { gap: 16px; }
    .stat-num { font-size: 1.2rem; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; gap: 2px; }

    /* Formules */
    .carousel-slide { padding: 0 52px; }
    #avantapres .carousel-slide { padding: 0 16px; }

    /* Avant / Après */
    .aa-duo { flex-direction: column; gap: 12px; }
    .aa-mid { transform: rotate(90deg); text-align: center; }


    /* Contact */
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .form-row { flex-direction: column; }

    /* Footer */
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}
