:root {
    --anthracite: #1F1F1F;
    --bg-main: #F7F5F0;
    /* blanc cassé léger */
    --primary: #4C49D4;
    /* violet principal */
    --warm-gray: #2E2B3A;
    /* texte principal */
    --champagne: #C6A664;
    /* doré utilisé avec parcimonie */
    --taupe: #8B6F4E;
    --offwhite: #FFFFFF;
    --smoke: #3C3C3C;
    --red: #ca0000;
    --soft-red: #E85C5C;
    --soft-red-2: #F07171;

    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-2xl: 28px;

    --shadow-subtle: 0 8px 28px rgba(0, 0, 0, .12);
    --shadow-soft: 0 10px 36px rgba(0, 0, 0, .18);

    --maxw: 1180px;
    --g-gap: clamp(18px, 2vw, 28px);
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg-main);
    /* fond clair */
    color: var(--warm-gray);
    /* texte foncé */
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

h1,
h2,
h3 {
    font-family: Montserrat, Inter, sans-serif;
    line-height: 1.2;
    margin: 0 0 .5rem;
    text-align: center;
    color: var(--anthracite);
}

h1 {
    font-size: clamp(2.2rem, 3.6vw, 3.4rem);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
}

p {
    margin: .25rem 0 1rem;
    text-align: center;
}

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

button {
    font: inherit;
}

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

section {
    padding: clamp(2rem, 5vw, 4.2rem) 0;
}

.center {
    display: grid;
    justify-items: center;
    text-align: center;
}

/* ===================== */
/* HEADER / NAVBAR       */
/* ===================== */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 245, 240, .94);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid rgba(76, 73, 212, .18);
    padding: 0.4rem 1rem;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding-left: .5rem;
    color: var(--anthracite);
}

.brand .logo {
    width: 34px;
    height: 34px;
}

.brand .name {
    font-weight: 700;
    letter-spacing: .4px;
}

/* liens principaux (desktop) */
.nav-links {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--anthracite);
}

.nav-links>a,
.nav-link {
    padding: .55rem .9rem;
    border-radius: 999px;
    transition: background .25s;
    display: inline-block;
}

.nav-links>a:hover,
.nav-link:hover {
    background: rgba(76, 73, 212, .06);
}

/* items contenant un dropdown */
.nav-item {
    position: relative;
}

/* petit "pont" invisible pour éviter le trou entre le lien et le menu */
.has-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 8px;
    /* zone tampon sous "Tarifs" */
}

/* petit chevron sur "Tarifs" */
.has-dropdown>.nav-link::after {
    content: "▾";
    font-size: .7rem;
    margin-left: .25rem;
}

/* DROPDOWN TARIFS – DESKTOP */
.has-dropdown .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    /* collé au bouton "Tarifs" */
    min-width: 260px;
    background: #ffffff;
    border-radius: 0 0 14px 14px;
    border: 1px solid rgba(76, 73, 212, .16);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    padding: .4rem 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0);
    transition: opacity .2s ease;
    z-index: 200;
}

.has-dropdown .dropdown a {
    display: block;
    padding: .55rem 1rem;
    text-align: left;
    font-size: .95rem;
    white-space: nowrap;
}

.has-dropdown .dropdown a:hover {
    background: rgba(76, 73, 212, .06);
}

/* ouverture au survol / focus (desktop) */
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    pointer-events: auto;
}

/* ========== BURGER ========== */

.burger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(76, 73, 212, .28);
    background: transparent;
    color: var(--warm-gray);
    place-items: center;
    cursor: pointer;
    padding: .35rem;
    margin-right: .5rem;
    transition: background .25s ease;
}

.burger:hover {
    background: rgba(76, 73, 212, .06);
}

.burger svg {
    width: 22px;
    height: 22px;
}

/* ========== RESPONSIVE (burger) ========== */

@media (max-width: 900px) {
    .nav-links {
        display: none;
        /* caché par défaut, montré avec .show en JS */
        position: fixed;
        inset: 64px 14px auto 14px;
        background: rgba(247, 245, 240, 0.98);
        border: 1px solid rgba(76, 73, 212, .16);
        border-radius: 18px;
        padding: 14px;
        box-shadow: var(--shadow-subtle);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav-links.show {
        display: flex;
    }

    .burger {
        display: grid;
    }

    .nav-item {
        width: 100%;
        position: relative;
        padding-bottom: 0;
        /* pas de marge inutile en mobile */
    }

    /* dropdown "ouvert" en permanence dans le menu burger */
    .has-dropdown .dropdown {
        position: static;
        margin-top: 0;
        box-shadow: none;
        border-radius: 10px;
        border: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        background: transparent;
        padding: 0;
    }

    .has-dropdown .dropdown a {
        padding-left: 1.4rem;
    }
}

/* ================= BOUTONS ================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .9rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .2px;
    transition: transform .2s, box-shadow .3s, background .3s, opacity .2s;
    cursor: pointer;
    border: 1px solid rgba(76, 73, 212, .35);
}

/* CTA principale */
.btn-cta {
    padding: 1.05rem 1.4rem;
    font-size: 1.05rem;
    background: linear-gradient(135deg, #4C49D4 0%, #6A67E8 40%, #2E2B9F 100%);
    color: #FFFFFF;
    border-color: rgba(76, 73, 212, .60);
    box-shadow: 0 8px 28px rgba(76, 73, 212, .35), inset 0 0 0 1px rgba(0, 0, 0, .06);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 38px rgba(76, 73, 212, .45);
}

.btn-primary {
    background: linear-gradient(145deg, rgba(76, 73, 212, .12), rgba(76, 73, 212, .06));
    color: var(--anthracite);
    box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(76, 73, 212, .3);
}

.btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ================= HERO ================= */

.hero {
    position: relative;
    overflow: hidden;
    padding-top: clamp(1.6rem, 4vw, 3rem);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 72%;
    pointer-events: none;
    background:
        radial-gradient(1100px 450px at 25% 15%, rgba(76, 73, 212, .16), rgba(255, 255, 255, 0) 60%),
        radial-gradient(800px 380px at 80% -10%, rgba(198, 166, 100, .10), rgba(255, 255, 255, 0) 60%);
    filter: blur(10px);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem .8rem;
    background: rgba(76, 73, 212, .06);
    border: 1px solid rgba(76, 73, 212, .35);
    color: var(--anthracite);
    border-radius: 999px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    box-shadow: var(--shadow-subtle);
}

@media (max-width: 640px) {
    .chip {
        position: relative;
        display: block;
        padding: .5rem 1.1rem;
        text-align: center;
        overflow: hidden;
    }

    .chip svg {
        display: none;
    }

    .chip {
        color: transparent;
    }

    .chip::after {
        content: "Création de site web";
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--anthracite);
        padding: 0 .9rem;
        line-height: 1.35;
        pointer-events: none;
    }
}

.hero-grid {
    display: grid;
    gap: var(--g-gap);
    grid-template-columns: 1.1fr .9fr;
    align-items: stretch;
}

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(76, 73, 212, .08);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-subtle);
    padding: clamp(1rem, 2.2vw, 1.6rem);
}

.video-frame {
    aspect-ratio: 16/9;
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(76, 73, 212, .10));
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.reviews {
    display: grid;
    gap: .8rem;
    align-content: center;
    justify-items: center;
    text-align: center;
    min-height: 100%;
}

.reviews .hint {
    color: #6C6878;
    font-size: .95rem;
}

/* Section title */

.section-title {
    display: grid;
    justify-items: center;
    gap: .55rem;
    margin-bottom: 1.2rem;
}

.section-title .kicker {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    gap: .5rem;
    color: var(--champagne);
    /* doré conservé ici */
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 700;
    font-size: 1.05rem;
}

.section-title svg {
    width: 22px;
    height: 22px;
}

/* Grids */

.grid-3 {
    display: grid;
    gap: var(--g-gap);
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    display: grid;
    gap: var(--g-gap);
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1000px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Cards */

.card {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(76, 73, 212, .08);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-subtle);
}

.card.soft {
    background: rgba(255, 255, 255, .9);
}

/* Pain list */

.list-bad {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .4rem;
}

.list-bad li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: .65rem;
    align-items: flex-start;
    padding: .55rem .65rem;
    border-radius: 12px;
    text-align: left;
}

.list-bad li:hover {
    background: rgba(232, 92, 92, .06);
}

.icon-cross {
    width: 22px;
    height: 22px;
    color: var(--soft-red);
}

/* Steps */

.step {
    display: grid;
    gap: .6rem;
    justify-items: center;
    padding: 1rem;
}

.step .num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(76, 73, 212, .45);
    background: rgba(76, 73, 212, .08);
    font-weight: 700;
    color: var(--anthracite);
}

/* Form */

form {
    display: grid;
    gap: 14px;
}

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

@media (max-width: 720px) {
    .fields {
        grid-template-columns: 1fr;
    }
}

label {
    display: block;
    margin: 0 0 6px;
    text-align: left;
    color: var(--anthracite);
}

.input input,
.input textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(76, 73, 212, .25);
    background: rgba(255, 255, 255, .9);
    color: var(--warm-gray);
    padding: .95rem .9rem;
    outline: none;
    transition: border-color .25s, background .25s;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    caret-color: var(--primary);
}

.input textarea {
    min-height: 130px;
    resize: vertical;
}

.input input::placeholder,
.input textarea::placeholder {
    color: #A4A0B0;
}

.input input:focus,
.input textarea:focus {
    border-color: var(--primary);
    background: #FFFFFF;
}

.consent {
    font-size: .86rem;
    color: #77737F;
    text-align: left;
}

.consent a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Footer */

footer {
    border-top: 1px solid rgba(76, 73, 212, .12);
    padding: 2rem 0;
    color: #5A5764;
    background: rgba(255, 255, 255, 0.9);
}

.footer-grid {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}

/* Animations */

.fade-in {
    opacity: 0;
    transform: translateY(10px);
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
}

.revealed {
    opacity: 1;
    transform: none;
    transition: opacity .8s ease, transform .8s ease;
}

.hover-rise {
    transition: transform .25s ease, box-shadow .3s ease;
}

.hover-rise:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

/* --- OFFRE : features modernes --- */

.offer-card {
    display: grid;
    place-items: center;
    min-height: 100%;
    text-align: left;
}

.offer-features {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 6px 0;
}

@media (min-width: 820px) {
    .offer-features {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(76, 73, 212, .03);
    border: 1px solid rgba(76, 73, 212, .16);
    transition: transform .2s, box-shadow .3s, background .3s;
}

.feature-item:hover {
    transform: translateY(-2px);
    background: rgba(76, 73, 212, .06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
}

.feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(120% 120% at 30% 30%, rgba(76, 73, 212, .35), rgba(198, 166, 100, .20));
    border: 1px solid rgba(76, 73, 212, .45);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .10);
    color: #FFFFFF;
}

.feature-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.feature-text {
    color: var(--warm-gray);
    line-height: 1.55;
    text-align: left;
}

#details-offre {
    display: grid;
    place-items: center;
}

/* === SECTION AVIS GOOGLE BUSINESS === */

#avis {
    background: rgba(76, 73, 212, 0.02);
    border-top: 1px solid rgba(76, 73, 212, 0.18);
    padding: clamp(2rem, 5vw, 4rem) 0;
}

#avis .container {
    text-align: center;
    max-width: none;
    padding: 0;
}

#avis .section-title {
    justify-content: center;
    gap: .6rem;
    margin-bottom: .75rem;
}

#avis h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--anthracite);
    margin: .25rem 0 1.25rem;
}

.elfsight-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(76, 73, 212, 0.18);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    transition: box-shadow .3s ease, transform .3s ease;
}

.elfsight-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.elfsight-app-6d049d4d-fe76-4416-93f7-117338c41180 {
    width: 100% !important;
    max-width: 100% !important;
}

.elfsight-app-6d049d4d-fe76-4416-93f7-117338c41180>div {
    width: 100% !important;
}

@media (max-width: 720px) {
    .elfsight-wrapper {
        border-radius: 0;
        padding: 12px;
        max-width: 100%;
    }

    header {
        padding: 0.6rem 1rem;
    }
}

/* === PORTFOLIO === */

#portfolio {
    background: rgba(76, 73, 212, .02);
    border-top: 1px solid rgba(76, 73, 212, .18);
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.portfolio-grid {
    display: grid;
    gap: var(--g-gap);
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
}

@media (max-width: 1000px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.work {
    width: 100%;
    max-width: 560px;
    margin: 0;
}

.work-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(76, 73, 212, .18);
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow-subtle);
    transition: transform .25s ease, box-shadow .3s ease;
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform .5s ease;
    display: block;
}

.work-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-weight: 700;
    letter-spacing: .2px;
    opacity: 0;
    background: linear-gradient(180deg, rgba(31, 31, 31, 0) 30%, rgba(31, 31, 31, .55) 100%);
    color: var(--offwhite);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
    transition: opacity .35s ease;
}

.work-card:hover img {
    transform: scale(1.06);
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.work-caption {
    text-align: center;
    margin: .65rem 0 0;
    color: #5F5B6C;
    font-weight: 600;
    letter-spacing: .2px;
}

/* Hero en une seule colonne, centré */

.hero-grid.single {
    grid-template-columns: 1fr;
    justify-items: center;
}

.hero .panel {
    width: 100%;
    max-width: 860px;
}

/* Témoignage */

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    margin: 0;
}

.testimonial-card blockquote {
    font-style: italic;
    color: #575364;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

.testimonial-card p {
    margin-top: .75rem;
    font-weight: 600;
    color: var(--champagne);
}

#story-title+.grid-2 {
    gap: clamp(1.2rem, 2vw, 2rem);
}

@media (max-width: 720px) {
    #avis .container {
        padding: 0 1.2rem;
    }

    #avis h2,
    #avis p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1024px) {
    #resume-offre {
        display: none !important;
    }
}

@media (max-width: 1023.98px) {
    #resume-offre {
        display: block;
    }
}

/* Étiquette prix limitée */

.limited-offer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: .45rem;
    margin-top: .35rem;
    font-size: .95rem;
}

.limited-offer .old-price {
    text-decoration: line-through;
    color: var(--soft-red-2);
    text-decoration-color: rgba(180, 0, 0, 0.75);
    text-decoration-thickness: 2px;
    font-weight: 700;
    font-size: 1.6rem;
}

.limited-offer .badge {
    padding: .3rem .8rem;
    border-radius: 999px;
    background: #CFF7CF;
    border: 1px solid #7ECF7E;
    font-weight: 600;
    letter-spacing: .1px;
    color: #1F1F1F;
}

.limited-offer .new-price {
    color: #3A9E3A;
    font-weight: 700;
}

/* List good */

.list-good {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .7rem;
}

.list-good li {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: .7rem;
    align-items: flex-start;
    text-align: left;
    padding: .55rem .4rem;
    border-radius: 12px;
}

.check-bullet {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(76, 73, 212, .6);
    background: rgba(76, 73, 212, .10);
    color: var(--primary);
    flex-shrink: 0;
}

.check-bullet svg {
    width: 14px;
    height: 14px;
    display: block;
}

/* Étiquettes dorées des petits titres */

.service-title {
    margin-bottom: .6rem;
    text-align: center;
}

.service-label {
    display: inline-block;
    padding: .45rem .95rem;
    border-radius: 999px;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: Montserrat, Inter, sans-serif;
    color: #1F1F1F;
    background: linear-gradient(135deg, #CDB374 0%, #C6A664 45%, #8B6F4E 100%);
    box-shadow: 0 6px 18px rgba(198, 166, 100, .22),
        inset 0 0 0 1px rgba(0, 0, 0, .12);
}

/* Textes secondaires légèrement anthracite */

.hero-lead,
.section-lead,
.text-small-muted,
.text-note-muted {
    color: #3A3844;
    /* anthracite adouci */
}