/* --- VARIABLES INSPIRÉES DE HEADSPACE --- */
:root {
    --bg-color: #FFF8F0;
    /* Crème doux */
    --hero-bg: #FFF8F0;
    /* Jaune chaleureux */
    --text-dark: #2B2C28;
    /* Gris très foncé / Noir */
    --primary-color: #FF6B6B;
    /* Corail doux */
    --secondary-color: #FFC145;
    /* Sun */
    --tierce-color: #6bc5ff;
    /* Menthe */
    --white: #FFFFFF;
    --border-radius: 24px;
    --font-main: 'Apercu', 'Helvetica Neue', Arial, sans-serif;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.primary-color {
    color: var(--primary-color);
}

.secondary-color {
    color: var(--secondary-color);
}

.tierce-color {
    color: var(--tierce-color);
}

/* --- TYPOGRAPHIE & BOUTONS --- */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    /* Bouton très arrondi */
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--hero-bg);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: -0.5px;
}

nav a {
    margin-left: 20px;
    font-weight: 500;
}

nav a:not(.btn-primary):hover {
    text-decoration: underline;
}

.code {
    color: var(--primary-color);
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 5%;
    background-color: var(--hero-bg);
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    min-height: 70vh;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}


/* Forme abstraite "blob" type Headspace */
.blob {
    width: 350px;
    height: 350px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite;
    padding: 53px;
}

@keyframes morph {

    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        background-color: var(--primary-color);
    }

    34% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
        background-color: var(--tierce-color);
    }

    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
        background-color: var(--secondary-color);
    }
}

/* --- LAYOUT UTILS --- */
.section-padding {
    padding: 100px 5%;
}

.text-center {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

/* --- SERVICES --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.highlight {
    text-decoration: underline;
    text-decoration-color: var(--tierce-color);
    text-underline-offset: 18px;
    text-decoration-thickness: 6px;
}

.exemple {
    color: var(--text-dark);
    font-size: 0.9rem;
    padding-top: 8px;
    padding-bottom: 8px;
    font-weight: bold;
}

/* --- ABOUT --- */
.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 5%;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    min-height: 45vh;
}

.cta h2 {
    font-size: 2.5rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cta-image {
    flex: 1;
    display: flex;
    justify-content: center;
    padding-bottom: 26px;
}

.cta-content {
    flex: 1;
}


/* --- ABOUT --- */
.about {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 5%;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    min-height: 45vh;
}

.about h2 {
    font-size: 2.5rem;
}

.about p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-content {
    flex: 1;
}



/* --- CONTACT --- */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contact h2 {
    text-align: center;
    font-size: 2rem;
}

.contact p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #EAEAEA;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact button {
    width: 100%;
}

.success-msg {
    color: #4ECDC4;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 30px;
    background-color: var(--text-dark);
    color: var(--white);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        border-radius: 0 0 30px 30px;
    }

    .about {
        flex-direction: column;
        text-align: center;
        border-radius: 0 0 30px 30px;
    }

    .cta {
        flex-direction: column;
        text-align: center;
        border-radius: 0 0 30px 30px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        margin-top: 40px;
    }

    .blob {
        width: 250px;
        height: 250px;
    }

    nav {
        display: none;
        /* À remplacer par un menu burger en prod */
    }
}

/* --- CLASSES D'ANIMATION JS --- */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}