/* ═══════════════════════════════════════════
   Hervé Macabrey — macabreyh.ch
   ═══════════════════════════════════════════ */

:root {
    --primary: #84c9d1;
    --primary-dark: #007a87;
    --primary-light: rgba(132, 201, 209, 0.1);
    --black: #0a0a0a;
    --dark: #111111;
    --dark-card: #181818;
    --white: #ffffff;
    --off-white: #f7f7f7;
    --gray-100: #eeeeee;
    --gray-200: #e0e0e0;
    --gray-400: #999999;
    --gray-500: #6e6e6e;
    --gray-600: #4a4a4a;
    --gray-800: #222222;
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1180px;
    --section-pad: 8rem 4rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.75;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.inner {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}


/* ─────────────────────────────────────────
   NAV
   ───────────────────────────────────────── */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.4rem 4rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav--scrolled {
    padding: 0.85rem 4rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav__logo img,
.nav__logo svg {
    height: 28px;
    width: auto;
}

/* Placeholder text logo — sera remplacé par le SVG */
.nav__logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--white);
    letter-spacing: -0.03em;
    transition: color 0.5s;
}

.nav--scrolled .nav__logo-text {
    color: var(--black);
}

/* ── Branding dot — CSS circle, fully customizable ── */
.dot {
    color: transparent;     /* hide the real "." character */
    display: inline-block;
    position: relative;
    margin-left: -0.1em;
    user-select: none;
}

.dot::after {
    content: '';
    display: inline-block;
    width: 0.2em;
    height: 0.2em;
    border-radius: 50%;       /* 50% = circle — 0 for square, 20% for rounded square */
    background: var(--primary);
    position: absolute;
    bottom: 0.2em;
    transform: translateX(-50%);
}

/* Nav logo dot */
.nav__logo-text .dot {
    margin-left: 0.02em;
    vertical-align: baseline;
}

.nav__logo-text .dot::after {
    width: 6px;
    height: 6px;
    bottom: 9px;
    left: 2px;
    transform: none;
}

/* Hero h1 dot */
.hero__name .dot::after {
    width: 0.18em;
    height: 0.18em;
    bottom: 0.15em;
}

.nav__links {
    display: flex;
    gap: 2.25rem;
    list-style: none;
}

.nav__links a {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav--scrolled .nav__links a {
    color: var(--gray-500);
}

.nav__links a:hover,
.nav--scrolled .nav__links a:hover {
    color: var(--primary-dark);
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
}

.nav__burger span {
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.3s;
}

.nav--scrolled .nav__burger span {
    background: var(--black);
}


/* ─────────────────────────────────────────
   HERO — dark, impactful
   ───────────────────────────────────────── */

.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: var(--dark);
    color: var(--white);
    padding: 8rem 4rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    background: linear-gradient(135deg, rgba(132, 201, 209, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 120px;
    pointer-events: none;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.hero__content {
    animation: heroFade 1s ease both;
}

.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 2rem;
}

.hero__tag::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--primary);
}

.hero__name {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.75rem;
}

.hero__desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 460px;
    line-height: 1.85;
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    padding: 1rem 2.25rem;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    transition: all 0.35s ease;
}

.hero__cta:hover {
    border-color: var(--primary);
    background: rgba(132, 201, 209, 0.08);
    color: var(--primary);
}

.hero__cta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s;
}

.hero__cta:hover svg {
    transform: translateX(4px);
}

.hero__visual {
    display: flex;
    justify-content: flex-end;
    animation: heroFade 1s 0.3s ease both;
}

.hero__portrait {
    width: 400px;
    height: 500px;
    position: relative;
}

.hero__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter 0.5s;
}

.hero__portrait:hover img {
    filter: grayscale(0%);
}

.hero__portrait::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

@keyframes heroFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ─────────────────────────────────────────
   STATS BAR
   ───────────────────────────────────────── */

.stats {
    padding: 4.5rem 4rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stats__item {
    padding: 1rem 0;
}

.stats__number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.6rem;
}

.stats__label {
    font-size: 0.78rem;
    color: var(--gray-500);
    letter-spacing: 0.04em;
}


/* ─────────────────────────────────────────
   ABOUT
   ───────────────────────────────────────── */

.about {
    padding: var(--section-pad);
}

.about__grid {
    display: grid;
    grid-template-columns: 0.45fr 0.55fr;
    gap: 6rem;
    align-items: start;
}

.about__left {
    position: sticky;
    top: 8rem;
}

.section-label {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 1.25rem;
    display: block;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--black);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.about__text {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
    line-height: 1.85;
}

.about__credentials {
    margin-top: 2.5rem;
}

.about__cred {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
    padding: 1.35rem 0;
    border-top: 1px solid var(--gray-100);
    align-items: baseline;
}

.about__cred:last-child {
    border-bottom: 1px solid var(--gray-100);
}

.about__cred-label {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    font-weight: 600;
}

.about__cred-value {
    font-size: 0.9rem;
    color: var(--gray-800);
}


/* ─────────────────────────────────────────
   SERVICES
   ───────────────────────────────────────── */

.services {
    padding: var(--section-pad);
    background: var(--off-white);
}

.services__header {
    margin-bottom: 4rem;
    max-width: 540px;
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.service {
    padding: 3rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: all 0.4s ease;
    position: relative;
}

.service::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-dark);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service:hover {
    border-color: transparent;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.service:hover::after {
    transform: scaleX(1);
}

.service__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    margin-bottom: 1.75rem;
}

.service__icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary-dark);
    fill: none;
    stroke-width: 1.5;
}

.service h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.service p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.75rem;
}

.service__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.service__tag {
    font-size: 0.68rem;
    font-weight: 500;
    padding: 0.3rem 0.65rem;
    background: var(--off-white);
    border: 1px solid var(--gray-100);
    color: var(--gray-500);
    font-family: var(--font-heading);
    letter-spacing: 0.03em;
    transition: all 0.3s;
}

.service:hover .service__tag {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: var(--primary-light);
}


/* ─────────────────────────────────────────
   VISION — dark band
   ───────────────────────────────────────── */

.vision {
    padding: 7rem 4rem;
    background: var(--dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(132, 201, 209, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.vision__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.vision__quote-mark {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 0.6;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.vision__text {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.vision__author {
    font-size: 0.8rem;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* ─────────────────────────────────────────
   RÉALISATIONS
   ───────────────────────────────────────── */

.realisations {
    padding: var(--section-pad);
}

.realisations__header {
    margin-bottom: 4rem;
    max-width: 540px;
}

.realisations__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.realisation {
    padding: 2.25rem;
    background: var(--off-white);
    border: 1px solid var(--gray-100);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

.realisation:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 36px rgba(0, 122, 135, 0.06);
    transform: translateY(-2px);
}

.realisation__type {
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 1.25rem;
}

.realisation h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.realisation p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.75;
    flex: 1;
}

.realisation__footer {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-200);
}

.realisation__stat {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.03em;
}

.realisation__stat-label {
    font-size: 0.72rem;
    color: var(--gray-400);
}


/* ─────────────────────────────────────────
   TÉMOIGNAGES
   ───────────────────────────────────────── */

.testimonials {
    padding: var(--section-pad);
    background: var(--off-white);
}

.testimonials__header {
    margin-bottom: 4rem;
    max-width: 540px;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.testimonial {
    padding: 2.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.testimonial__text {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.8;
    font-style: italic;
    flex: 1;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--primary);
}

.testimonial__author {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.testimonial__name {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--black);
}

.testimonial__role {
    font-size: 0.78rem;
    color: var(--gray-400);
}


/* ─────────────────────────────────────────
   CONTACT
   ───────────────────────────────────────── */

.contact {
    padding: var(--section-pad);
}

.contact__header {
    margin-bottom: 4rem;
    max-width: 540px;
}

.contact__grid {
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    gap: 5rem;
    align-items: start;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact__item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact__item-label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray-400);
    font-weight: 600;
}

.contact__item-value {
    font-size: 0.95rem;
    color: var(--black);
}

.contact__item-value a {
    color: var(--primary-dark);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.contact__item-value a:hover {
    border-color: var(--primary-dark);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--gray-200);
    background: var(--off-white);
    color: var(--black);
    outline: none;
    transition: all 0.3s ease;
    font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-dark);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(132, 201, 209, 0.12);
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.btn {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1.05rem 2.5rem;
    background: var(--primary-dark);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: all 0.35s ease;
    align-self: flex-start;
}

.btn:hover {
    background: var(--black);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.btn--success {
    background: var(--primary-dark) !important;
    pointer-events: none;
}


/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */

.footer {
    padding: 2.5rem 4rem;
    border-top: 1px solid var(--gray-100);
}

.footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copy {
    font-size: 0.78rem;
    color: var(--gray-400);
}

.footer__links {
    display: flex;
    gap: 2rem;
}

.footer__links a {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s;
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.footer__links a:hover {
    color: var(--primary-dark);
}


/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */

@media (max-width: 1024px) {
    :root {
        --section-pad: 5.5rem 2rem;
    }

    .nav { padding: 1rem 2rem; }
    .nav--scrolled { padding: 0.8rem 2rem; }
    .hero { padding: 7rem 2rem 5rem; }
    .stats { padding: 3rem 2rem; }
    .vision { padding: 5rem 2rem; }
    .footer { padding: 2rem; }

    .hero__grid { gap: 3rem; }
    .about__grid { gap: 3rem; }
    .contact__grid { gap: 3rem; }
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav__links.open {
        display: flex;
    }

    .nav__links.open a {
        color: var(--gray-600) !important;
    }

    .nav__burger {
        display: flex;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero__tag { justify-content: center; }
    .hero__desc { margin-left: auto; margin-right: auto; }
    .hero__cta { margin: 0 auto; }

    .hero__visual {
        order: -1;
        justify-content: center;
    }

    .hero__portrait {
        width: 280px;
        height: 350px;
    }

    .stats__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

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

    .about__left {
        position: static;
    }

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

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

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

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
    }
}

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

    .stats__number {
        font-size: 2rem;
    }

    .hero__name {
        font-size: 2.4rem;
    }

    .about__cred {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
}