/* ═══════════════════════════════════════════════
   OBRA CORP — Site Vitrine
   Charte : Noir & Blanc, style tech/industriel
   ═══════════════════════════════════════════════ */

/* ─── Reset & Base ─────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-dark: #1a1a1a;
    --gray-mid: #333333;
    --gray-light: #f5f5f5;
    --gray-border: #2a2a2a;
    --accent: #c9a84c;
    --accent-hover: #d4b75e;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container: 1200px;
    --header-h: 80px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--white);
    background-color: var(--black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

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

ul {
    list-style: none;
}

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

/* ─── Section Communs ──────────────────────── */
.section-header {
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 560px;
}

/* ─── Boutons ──────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
}

.btn--primary {
    background-color: var(--accent);
    color: var(--black);
}

.btn--primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.25);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 1000;
    transition: all var(--transition);
    background: transparent;
}

.header--scrolled {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
    z-index: 1001;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--white);
}

.logo-accent {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__link {
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    transition: color var(--transition);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.nav__link:hover,
.nav__link.active {
    color: var(--white);
}

.nav__link:hover::after,
.nav__link.active::after {
    transform: scaleX(1);
}

.nav__link--cta {
    background: var(--accent);
    color: var(--black) !important;
    margin-left: 8px;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: var(--accent-hover);
}

/* Burger */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.header__burger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
}

.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 5px);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--black);
}

.hero__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 120px 0 80px;
}

.hero__badge {
    display: inline-block;
    padding: 8px 20px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 700;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 24px;
    max-width: 800px;
}

.hero__title--accent {
    color: var(--accent);
}

.hero__subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: rgba(255, 255, 255, 0.6);
    max-width: 540px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero__scroll-indicator span {
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    writing-mode: vertical-rl;
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ═══════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════ */
.services {
    padding: 120px 0;
    background: var(--gray-dark);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}

.service-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.04);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 24px;
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.service-card__desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   À PROPOS
   ═══════════════════════════════════════════════ */
.apropos {
    padding: 120px 0;
    background: var(--black);
}

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

.apropos__lead {
    font-size: 19px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.apropos__text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    margin-bottom: 16px;
}

.apropos__values {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.value-tag {
    padding: 8px 20px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.apropos__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.stat {
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.stat__number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat__suffix {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}

.stat__label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════
   RÉALISATIONS
   ═══════════════════════════════════════════════ */
.realisations {
    padding: 120px 0;
    background: var(--gray-dark);
}

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

.projet-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.projet-card__img {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.projet-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.projet-card:hover .projet-card__img img {
    transform: scale(1.05);
}

.projet-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--transition);
}

.projet-card:hover .projet-card__overlay {
    opacity: 1;
    transform: translateY(0);
}

.projet-card__type {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.projet-card__title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.projet-card__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════ */
.contact {
    padding: 120px 0;
    background: var(--black);
}

.contact__content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    outline: none;
    transition: border-color var(--transition);
    border-radius: 0;
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--gray-dark);
    color: var(--white);
}

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

.form-error {
    font-size: 12px;
    color: #e74c3c;
    display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
}

.form-group.error .form-error {
    display: block;
}

.form-success {
    display: none;
    padding: 20px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 15px;
    text-align: center;
}

.form-success.visible {
    display: block;
}

/* Contact Info */
.contact__info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact__info-block h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact__info-block ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.contact__info-block ul li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent);
}

.contact__info-block ul li a:hover {
    color: var(--accent);
}

.contact__legal li {
    gap: 4px !important;
}

.contact__hours li {
    justify-content: space-between;
}

.contact__hours li span:last-child {
    color: var(--white);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--gray-dark);
}

.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding: 80px 0 60px;
}

.footer__baseline {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 2px;
    margin-top: 12px;
}

.footer__address {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 16px;
    line-height: 1.8;
}

.footer__links h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

.footer__links ul li {
    margin-bottom: 10px;
}

.footer__links ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer__links ul li a:hover {
    color: var(--accent);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

.footer__bottom-links {
    display: flex;
    gap: 24px;
}

.footer__bottom-links a {
    color: rgba(255, 255, 255, 0.35);
}

.footer__bottom-links a:hover {
    color: var(--accent);
}

/* ═══════════════════════════════════════════════
   ANIMATIONS — Fade In on Scroll
   ═══════════════════════════════════════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

/* Tablette */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .apropos__content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .contact__content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-h: 70px;
    }

    .header__burger {
        display: flex;
    }

    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.97);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
        z-index: 1000;
    }

    .header__nav.active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav__list {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .nav__link {
        font-size: 20px;
        padding: 16px 24px;
    }

    .nav__link--cta {
        margin-left: 0;
        margin-top: 16px;
    }

    .hero__content {
        padding: 100px 0 60px;
    }

    .hero__scroll-indicator {
        display: none;
    }

    .services {
        padding: 80px 0;
    }

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

    .section-header {
        margin-bottom: 40px;
    }

    .apropos {
        padding: 80px 0;
    }

    .apropos__stats {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stat {
        padding: 24px 16px;
    }

    .stat__number {
        font-size: 36px;
    }

    .realisations {
        padding: 80px 0;
    }

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

    .projet-card__overlay {
        opacity: 1;
        transform: translateY(0);
    }

    .contact {
        padding: 80px 0;
    }

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

    .footer__top {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 0 40px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .hero__title {
        font-size: 32px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .apropos__values {
        flex-wrap: wrap;
    }

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