@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #050709;
    --bg-soft: #070c10;
    --text: #f5f9ff;
    --muted: #9da4b3;
    --accent: #0f8c8f;
    --accent-soft: rgba(15, 140, 143, 0.25);
}

/* RESET SIMPLE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
}

/* ELEMENTS GLOBAUX */

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1100px, 100% - 2.5rem);
    margin-inline: auto;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 7, 9, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--accent-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.85rem;
    gap: 2rem;
}

.logo-img {
    height: 60px;
}

.navigation .nav {
    list-style: none;
    display: flex;
    gap: 1.75rem;
    font-size: 0.95rem;
    text-transform: lowercase;
}

.navigation .nav a {
    position: relative;
    letter-spacing: 0.04em;
    color: var(--muted);
    transition: color 0.2s ease;
}

.navigation .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #35d0d2);
    transition: width 0.2s ease;
}

.navigation .nav a:hover {
    color: var(--text);
}

.navigation .nav a:hover::after {
    width: 100%;
}

/* HERO / PRÉSENTATION */

.hero {
    min-height: clamp(480px, 80vh, 760px);
    display: flex;
    align-items: center;
    background-image:
        radial-gradient(circle at top left, rgba(15, 140, 143, 0.16), transparent 55%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(5, 7, 9, 0.95)),
        url('./img/Encelade-background-27.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-block: 4.5rem;
}

.hero-content {
    max-width: 640px;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: clamp(2rem, 3vw + 1.3rem, 3.1rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-text {
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 1.75rem;
    font-size: 0.98rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* BOUTONS */

.btn {
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, border-color 0.2s ease;
    background: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent), #35d0d2);
    color: #041012;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.75);
}

.btn.ghost {
    border-color: var(--accent-soft);
    background: rgba(7, 12, 16, 0.7);
}

.btn.ghost:hover {
    border-color: var(--accent);
    background: rgba(10, 18, 24, 0.95);
}

.btn.small {
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
}

/* SECTIONS GÉNÉRALES */

.section {
    padding-block: 4rem;
}

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--muted);
    margin-bottom: 2.25rem;
    font-size: 0.95rem;
}

/* SERVICES */

.services-section {
    background: var(--bg-soft);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.service-card {
    padding: 1.6rem;
    background: linear-gradient(135deg, #05080c, #060a0f);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.service-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
}

.service-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* PROCESS */

.process-section {
    background: radial-gradient(circle at top, rgba(15, 140, 143, 0.15), transparent 55%), var(--bg);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.process-step {
    position: relative;
    padding-left: 2.8rem;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.4;
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.process-step p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* PORTFOLIO */

.portfolio-section {
    background: radial-gradient(circle at top, rgba(15, 140, 143, 0.16), transparent 55%), var(--bg-soft);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.portfolio-card {
    background: linear-gradient(135deg, #05080c, #050b10);
    border-radius: 1rem;
    padding: 1.4rem 1.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.portfolio-card h3 {
    font-size: 1.1rem;
}

.portfolio-card p {
    font-size: 0.95rem;
    color: var(--muted);
}

/* CONTACT */

.contact-section {
    position: relative;
    padding-block: 4rem;
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(5, 7, 9, 0.95)),
        url('./img/Encelade-background-6.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-section .overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(15, 140, 143, 0.2), transparent 60%);
    pointer-events: none;
}

.contact-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.contact-text {
    max-width: 520px;
}

.contact-text h2 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.contact-text p {
    color: var(--muted);
    font-size: 0.96rem;
}

/* FOOTER */

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-block: 1rem;
    background: #040609;
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
}

/* ========================= */
/*        RESPONSIVE         */
/* ========================= */

/* Tablettes / petits laptops */
@media (max-width: 900px) {
    .container {
        width: min(100% - 2rem, 900px);
    }

    .header-inner {
        gap: 1rem;
    }

    .navigation .nav {
        gap: 1.2rem;
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .hero {
        padding-block: 3.5rem;
        background-attachment: scroll; /* plus safe sur mobile/tablette */
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-text {
        max-width: 100%;
    }

    .contact-inner {
        gap: 1.5rem;
    }
}

/* Smartphones */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .navigation .nav {
        justify-content: flex-start;
    }

    .hero {
        min-height: auto;
        padding-block: 3.2rem;
        background-position: center top;
    }

    .hero-content {
        text-align: left;
    }

    .hero h1 {
        font-size: 1.7rem;
        line-height: 1.25;
    }

    .hero-text {
        font-size: 0.95rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .section {
        padding-block: 3rem;
    }

    .section h2 {
        font-size: 1.4rem;
    }

    .services-grid,
    .portfolio-grid,
    .process-grid {
        gap: 1.25rem;
    }

    .service-card,
    .portfolio-card {
        padding: 1.3rem 1.2rem 1.35rem;
    }

    .process-step {
        padding-left: 2.2rem;
    }

    .step-number {
        font-size: 1.2rem;
    }

    .contact-section {
        padding-block: 3rem;
        background-attachment: scroll;
    }

    .contact-section .overlay {
        background: radial-gradient(circle at top, rgba(5, 7, 9, 0.75), rgba(5, 7, 9, 0.95));
    }

    .contact-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-text h2 {
        font-size: 1.4rem;
    }

    .contact-text p {
        font-size: 0.94rem;
    }

    .contact-inner .btn {
        width: 100%;
        max-width: 260px;
    }
}

/* Très petits écrans (anciens smartphones) */
@media (max-width: 480px) {
    .container {
        width: min(100% - 1.5rem, 480px);
    }

    .header-inner {
        padding-block: 0.6rem;
    }

    .logo-img {
        height: 52px;
    }

    .navigation .nav {
        row-gap: 0.4rem;
    }

    .hero {
        padding-block: 2.8rem;
    }

    .hero h1 {
        font-size: 1.55rem;
    }

    .hero-text {
        font-size: 0.9rem;
    }

    .service-card p,
    .portfolio-card p,
    .process-step p {
        font-size: 0.9rem;
    }

    .site-footer {
        font-size: 0.78rem;
    }
}

/* Animations au survol des cartes */
.service-card,
.portfolio-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover,
.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.8);
    border-color: var(--accent-soft);
}

/* Effet pulse discret sur le bouton principal */
.btn.primary {
    position: relative;
    overflow: hidden;
}

.btn.primary:hover::after {
    content: "";
    position: absolute;
    inset: -40%;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.25);
    opacity: 0;
    animation: btn-pulse 0.6s ease-out forwards;
}

@keyframes btn-pulse {
    from {
        opacity: 0.5;
        transform: scale(0.9);
    }
    to {
        opacity: 0;
        transform: scale(1.15);
    }
}

/* Hover plus doux sur la navigation */
.navigation .nav a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

.navigation .nav a:hover {
    color: var(--text);
    opacity: 1;
}