@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:wght@300;400;600&display=swap');

/* --- Styles Globaux --- */
:root {
    --primary-color: #f7a840; /* Orange Soleil */
    --secondary-color: #27ae60; /* Vert Palme */
    --accent-color: #4dc4e6; /* Bleu Océan */
    --dark-color: #2c3e50; /* Couleur Texte */
    --light-color: #ecf0f1; /* Fond très clair */
    --white: #ffffff;
    --text-font: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --title-font: 'Pacifico', cursive, sans-serif; /* Pour une touche dessin animé */
}

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

html {
    scroll-behavior: smooth; /* Pour un défilement fluide vers le contact */
}

body {
    font-family: var(--text-font);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
    padding-top: 0rem; /* Un peu d'espace en haut */
}

h1, h2, h3 {
    font-family: var(--title-font);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(3rem, 7vw, 4rem);
    color: var(--white);
    text-shadow: 2px 2px 0 var(--secondary-color);
    margin-top: 1rem;
    overflow-wrap: anywhere;
}

h2 {
    font-size: clamp(2.1rem, 5vw, 2.8rem);
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 1rem;
    overflow-wrap: anywhere;
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
}

.container {
    width: min(85%, 1200px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-family: var(--text-font);
    max-width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.btn:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 4px;
}

/* --- Section Héro (Soleil & Développement) --- */
.hero {
    background: linear-gradient(135deg, var(--accent-color), #8ddbf3);
    min-height: 90vh; /* Un peu moins de 100vh pour inviter au scroll */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 4rem 1rem;
}

.hero::before {
    content: '☀️'; /* Un grand soleil dessin animé */
    position: absolute;
    top: 10%;
    right: 15%;
    font-size: 6rem;
    opacity: 0.5;
}

.hero p {
    font-size: clamp(1.15rem, 3vw, 1.6rem);
    color: var(--white);
    margin-top: 1rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Section Qui Sommes-Nous (Le Trip) --- */
.about {
    background-color: var(--white);
    padding: 8rem 0;
}

.about .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* --- Section Services (Le Tech Chill) --- */
.services {
    background-color: var(--light-color);
    padding: 8rem 0;
}

.services .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    color: var(--accent-color);
}

/* --- Section Pourquoi Nous --- */
.why {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.why .container {
    position: relative;
    z-index: 1;
}

.why::before,
.why::after {
    position: absolute;
    line-height: 1;
    opacity: 0.22;
    pointer-events: none;
    filter: drop-shadow(0 10px 18px rgba(44, 62, 80, 0.16));
}

.why::before {
    content: '🏄‍♂️';
    top: 18%;
    left: 10%;
    font-size: clamp(4rem, 9vw, 7rem);
    transform: rotate(-10deg);
}

.why::after {
    content: '💡💤';
    right: 10%;
    bottom: 14%;
    font-size: clamp(3.5rem, 8vw, 6rem);
    transform: rotate(8deg);
}

.why h2 {
    color: var(--white);
}

.why .why-content {
    max-width: 800px;
    margin: 0 auto;
}

.why p {
    font-size: 1.3rem;
}

/* --- Pied de page (Aloha !) --- */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer .container {
    position: relative;
    z-index: 1;
}

footer::before,
footer::after {
    position: absolute;
    line-height: 1;
    opacity: 0.18;
    pointer-events: none;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.2));
}

footer::before {
    content: '🥥';
    left: 12%;
    bottom: 18%;
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    transform: rotate(-14deg);
}

footer::after {
    content: '📬';
    top: 18%;
    right: 12%;
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    transform: rotate(10deg);
}

footer h3 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

footer p {
    font-weight: 300;
    font-size: 1.2rem;
}

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

/* --- Illustrations "Artisanales" (Emoji) --- */
/* Note: Les images sont ici simulées avec des Emojis
   pour un design pur, humouristique et dessin animé sans fichiers externes. */

/* 1. Illustration Héro: "Clavier Palme" */
.hero-illustration {
    position: relative;
    width: min(78vw, 430px);
    aspect-ratio: 2 / 1;
    margin: 0 auto 1rem;
}

.hero-illustration::before {
    content: '';
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: 8%;
    height: 16%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 34px rgba(44, 62, 80, 0.16);
}

.hero-illustration::after {
    content: '';
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 15%;
    height: 18%;
    z-index: 1;
    border-radius: 55% 45% 48% 52% / 70% 68% 32% 30%;
    background: linear-gradient(180deg, #ffd889 0%, #f7a840 100%);
    box-shadow: inset 0 -6px 0 rgba(255, 255, 255, 0.18);
}

.hero-emoji {
    position: absolute;
    line-height: 1;
    filter: drop-shadow(0 12px 18px rgba(44, 62, 80, 0.18));
}

.hero-emoji.laptop {
    left: 50%;
    bottom: 12%;
    z-index: 3;
    font-size: clamp(5.2rem, 18vw, 8.5rem);
    transform: translateX(-50%) rotate(-2deg);
}

.hero-emoji.palm-left,
.hero-emoji.palm-right {
    z-index: 2;
    font-size: clamp(5.5rem, 17vw, 8.75rem);
    transform-origin: bottom center;
}

.hero-emoji.palm-left {
    left: 8%;
    bottom: 12%;
    transform: rotate(-14deg);
}

.hero-emoji.palm-right {
    right: 8%;
    bottom: 12%;
    transform: scaleX(-1) rotate(-14deg);
}

/* 2. Illustration Qui Sommes-Nous */
.about-image {
    position: relative;
    width: min(100%, 320px);
    aspect-ratio: 1;
    margin: 0 auto;
}

.about-emoji {
    position: absolute;
    line-height: 1;
    filter: drop-shadow(0 10px 18px rgba(44, 62, 80, 0.16));
}

.about-emoji.laptop {
    right: 4%;
    bottom: 10%;
    font-size: clamp(7rem, 16vw, 12rem);
}

.about-emoji.coconut {
    left: 4%;
    top: 12%;
    z-index: 1;
    font-size: clamp(4.5rem, 10vw, 7.5rem);
    transform: rotate(-10deg);
}

/* 3. Illustration Services */
/* Web: "Hamac-Clavier" */
.service-card.web .service-icon::after { content: '🧘‍♂️⌨️'; font-size: clamp(4rem, 10vw, 5.5rem); }
/* Mobile: "Noix de Coco Mobile" */
.service-card.mobile .service-icon::after { content: '📱🥥'; font-size: clamp(4rem, 10vw, 5.5rem); }
/* Cloud: "Circuit Nuage" */
.service-card.cloud .service-icon::after { content: '☁️🌴'; font-size: clamp(4rem, 10vw, 5.5rem); }
.service-icon { margin-bottom: 1.5rem; }


@media (max-width: 1024px) {
    .container {
        width: 90%;
    }

    .about,
    .services,
    .why {
        padding: 6rem 0;
    }

    .about .grid {
        gap: 3rem;
    }
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .container {
        width: 92%;
        padding: 1.5rem 0;
    }

    .hero {
        min-height: 80vh;
        padding: 3rem 1rem;
    }

    .hero::before {
        top: 5%;
        right: 8%;
        font-size: 4rem;
    }

    .hero-illustration {
        width: min(84vw, 340px);
    }

    .about,
    .services,
    .why {
        padding: 4rem 0;
    }

    .about .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        width: min(72vw, 260px);
    }

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

    .service-card {
        padding: 2.25rem;
        border-radius: 18px;
    }

    .why p,
    footer p {
        font-size: 1.1rem;
    }

    .why::before {
        top: 8%;
        left: 4%;
    }

    .why::after {
        right: 4%;
        bottom: 8%;
    }

    footer::before {
        left: 4%;
        bottom: 12%;
    }

    footer::after {
        top: 10%;
        right: 4%;
    }
}

@media (max-width: 480px) {
    .container {
        width: 90%;
    }

    .hero {
        min-height: auto;
        padding: 3rem 1rem 4rem;
    }

    .hero::before {
        font-size: 3rem;
        opacity: 0.35;
    }

    .hero-illustration {
        width: min(88vw, 280px);
    }

    .hero-illustration::before {
        left: 10%;
        right: 10%;
        bottom: 10%;
    }

    .hero-illustration::after {
        left: 18%;
        right: 18%;
        bottom: 17%;
    }

    .about-image {
        width: min(74vw, 220px);
    }

    .why::before,
    .why::after,
    footer::before,
    footer::after {
        opacity: 0.12;
    }

    .btn {
        width: 100%;
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    .service-card {
        padding: 2rem 1.25rem;
    }

    footer h3 {
        font-size: 2.1rem;
    }
}
