:root {
    --primary: #3b80b5;
    --secondary: #725995;
    --bg-light: #f8fbff;
    --white: #ffffff;
    --text: #333;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    margin: 0;
}

/* --- HEADER TYPE "MOCKUP" --- */
header {
    background: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid #eef2f6;
    padding: 5px;
}

.container {
    padding: 10px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    /*font-family: 'Pacifico', cursive;*/
    font-family: "Myriad Pro", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 26px;
    color: var(--primary);
    text-decoration: none;
}

/* --- BANNIÈRE AVEC LES FORMES GÉOMÉTRIQUES --- */
/* --- SECTION HERO AVEC IMAGE LIBRE DE DROITS --- */
.hero {
    position: relative;
    /* Intégration directe d'une image de bureau de graphiste via Unsplash */
    background: linear-gradient(135deg, rgba(59, 128, 181, 0.85) 0%, rgba(114, 89, 149, 0.8) 100%), 
                url('https://images.unsplash.com/photo-1499951360447-b19be8fe80f5?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    
    color: white;
    padding: 140px 0 100px 0; 
    text-align: center;
    
    /* La découpe en biais moderne que nous avons validée */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.9;
}

/* --- LA GRILLE DE CARTES (QUI CHEVAUCHE LE BLEU) --- */
.services-section {
    max-width: 1100px;
    margin: -80px auto 80px auto; /* Remonte les cartes sur le bandeau bleu */
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

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

/* --- STYLE DES IMAGES DANS LES CARTES --- */
.card-img-container {
    width: 100%;
    height: 180px; /* Hauteur fixe pour l'harmonie */
    overflow: hidden;
    margin: -30px -30px 20px -30px; /* Pour que l'image colle aux bords du haut de la carte */
    width: calc(100% + 60px); 
    border-radius: 4px 4px 0 0;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image remplit le cadre sans se déformer */
    opacity: 0.8;
    filter: grayscale(20%); /* Un peu plus sobre par défaut */
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* --- ANIMATIONS HOVER --- */
.card:hover .card-img-container img {
    transform: scale(1.1); /* Zoom doux */
    filter: grayscale(0%); /* L'image reprend ses couleurs au survol */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(59, 128, 181, 0.15);
    border-color: var(--primary);
}

/* Repositionnement de l'icône sur l'image (optionnel) */
.icon-circle {
    position: relative;
    z-index: 2;
    margin-top: -40px; /* Fait chevaucher l'icône sur le bas de l'image */
    background: var(--white);
    border: 3px solid var(--bg-light);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card {
    background: var(--white);
    border-radius: 4px; /* Coins moins arrondis, plus "pro" */
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--primary);
}

/* Style des icônes bleues de l'image */
.icon-circle {
    width: 80px;
    height: 80px;
    background: #e7f0f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: var(--primary);
    font-size: 30px;
}

.card h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #444;
    margin-bottom: 15px;
}

.card p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 25px;
}

/* --- RESPONSIVE GRILLE DE SERVICES --- */
@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
        gap: 20px;
    }
}

@media (max-width: 650px) {
    .grid {
        grid-template-columns: 1fr; /* 1 seule colonne sur smartphone */
        max-width: 400px; /* On évite que la carte soit trop large */
        margin: 0 auto;
    }

    .services-section {
        margin-top: -50px; /* On remonte un peu moins sur mobile */
    }

    .hero h1 {
        font-size: 2.2rem; /* Titre plus adapté aux petits écrans */
    }
}

/* --- BOUTON SOBRE --- */
.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 3px;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* --- NAVIGATION --- */
header {
    background: var(--white);
    padding: 5px; /* On gère le padding via le nav pour plus de précision */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* Liste des liens */
.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative; /* Pour la ligne en dessous */
    padding: 5px 0;
    transition: color 0.3s ease;
}

/* L'animation de la ligne sous le menu (Hover sobre) */
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary);
}

.nav-links li a.active {
    color: var(--primary);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Bouton Contact Spécifique */
.btn-contact {
    background: var(--primary);
    color: white !important; /* Force le texte en blanc */
    padding: 10px 22px !important;
    border-radius: 4px;
    transition: all 0.3s ease !important;
}

.btn-contact::after {
    display: none; /* Pas de ligne sous le bouton plein */
}

.btn-contact:hover {
    background: var(--secondary);
    box-shadow: 0 4px 10px rgba(114, 89, 149, 0.3);
    transform: translateY(-2px);
}



/* --- RESPONSIVE NAVIGATION --- */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column; /* On empile le logo et le menu */
        gap: 15px;
        text-align: center;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap; /* Les liens passent à la ligne si besoin */
        justify-content: center;
    }

    .nav-links li a {
        font-size: 12px; /* Un peu plus petit sur mobile */
    }

    .btn-contact {
        padding: 8px 15px !important;
    }
}

/* --- FOOTER REVISITÉ (COULEUR & CONTRASTE) --- */
footer {
    /* On passe sur un fond sombre pour faire ressortir le graphisme */
    background: linear-gradient(135deg, #0d1b2a 0%, #253450 100%);
 
    border-top: none; /* Plus besoin de bordure avec la couleur */
    margin-top: 80px; 
    color: #ffffff; /* Texte en blanc pour le contraste */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 10px;
    padding: 5px;
}

.footer-logo {
    display: block;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary); /* Logo blanc */
    text-decoration: none;
}

.footer-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7); /* Blanc cassé transparent pour la douceur */
    line-height: 1.7;
}

.footer-col h4 {
    color: #ffffff; /* Titres blancs */
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ta barre sous les titres, mais en version brillante */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 35px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary)); /* Dégradé de tes couleurs */
}

.footer-list li, .footer-contact li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
}

.footer-list a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-list a:hover {
    color: var(--secondary); /* Ton mauve au survol */
    padding-left: 8px;
}

.footer-contact a {
    color: var(--secondary); /* Email bien visible */
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Bordure très discrète */
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- RESPONSIVE FOOTER --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* 2 colonnes sur tablette */
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* 1. On force le conteneur UL à ne plus rien centrer du tout */
    .nav-menu ul {
        display: block !important; /* On casse le flex s'il existe */
        text-align: left !important; /* On force l'alignement à gauche */
        padding-left: 30px !important; /* On redonne de l'air pour les points */
        margin: 0 !important;
        list-style-type: disc !important; /* On s'assure que les points reviennent */
    }

    /* 2. On aligne chaque ligne */
    .nav-menu ul li {
        text-align: left !important;
        list-style-position: outside !important; /* Le point est dans la marge, le texte à côté */
        margin-bottom: 12px !important;
        display: list-item !important; /* Force le comportement de liste standard */
    }

    /* 3. On s'assure que le lien ne prend pas toute la largeur pour ne pas se centrer */
    .nav-menu ul li a {
        display: inline-block !important;
        text-align: left !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%); /* Centre la barre sur mobile */
    }

    .nav-menu ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Aligne le bloc complet à gauche */
        padding-left: 25px;      /* Espace pour que les points ne touchent pas le bord de l'écran */
        text-align: left;        /* Force le texte à ne plus être centré */
    }

    .nav-menu li {
        list-style-type: disc;     /* On s'assure que le point est là */
        list-style-position: outside; /* Le point reste dans la marge, le texte s'aligne après */
        margin-bottom: 15px;
        width: 100%;
    }

    .nav-menu li a {
        display: inline-block;
        padding: 5px 0;
        width: auto;
    }
}

/* --- PAGES SERVICES --- */
.page-content { padding: 60px 20px; }

.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: var(--text);
}

.separator {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #eee, transparent);
    margin: 60px 0;
}

/* Grille spécifique Création */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fdfdfd;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.feature-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Grille spécifique Webdesign */
.webdesign-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.webdesign-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.icon-small {
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.webdesign-item h4 {
    margin-bottom: 5px;
    color: var(--secondary);
    font-size: 1.1rem;
}

/* Appel à l'action final */
.cta-container {
    text-align: center;
    background: var(--bg-light);
    padding: 50px;
    border-radius: 20px;
    margin-top: 80px;
}

.cta-container p {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .webdesign-grid { grid-template-columns: 1fr; }
    .hero-web { padding: 80px 0; }
}

/* --- STYLES DE LA PAGE WEB --- */

.flex-row {
    display: flex;
    align-items: center;
    gap: 80px; /* Plus d'espace entre le texte et l'image */
    max-width: 1000px; /* On resserre le contenu pour plus d'élégance */
    margin: 0 auto;
}

.web-page { padding-bottom: 50px; }

/* --- HERO SECTION WEB --- */
.hero-web {
    background: linear-gradient(135deg, rgba(114, 89, 149, 0.8) 0%, rgba(59, 128, 181, 0.85) 100%), 
                url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?q=80&w=1600&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 120px 0;
    color: white;
    text-align: center;
}

/* Blocs de section */
.section-white { padding: 50px 0; background: #fff; }
.section-light { padding: 0 0 30px 0; background: #f8fbff; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }

/* Disposition Flex (Zig-Zag) */
.flex-row {
    display: flex;
    align-items: center;
    gap: 60px;
}
.flex-row.reverse { flex-direction: row-reverse; }

.text-block { flex: 3; }
.image-block { flex: 1; display: flex; justify-content: center;}

/* Badge de titre */
.badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(59, 128, 181, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}
.badge-purple { background: rgba(114, 89, 149, 0.1); color: var(--secondary); }

.text-block h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Liste à puces stylisée */
.check-list { list-style: none; margin: 25px 0; }
.check-list li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Grille de cartes Web */
.web-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.web-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: center;
    transition: 0.3s;
}
.web-card:hover { transform: translateY(-10px); }

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Image flottante avec ombre douce */
.img-floating {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Style de l'image réduit */
.img-service {
    width: 100%;
    max-width: 350px; /* Taille maximale bridée pour ne pas envahir l'écran */
    height: 250px;    /* Hauteur fixe pour l'équilibre */
    object-fit: cover; /* On cadre l'image proprement */
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.img-service:hover {
    transform: rotate(2deg) scale(1.05); /* Petit effet dynamique au survol */
}

/* --- LE BOUTON CTA --- */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white !important; /* Force le texte en blanc */
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px; /* Forme pilule très moderne */
    box-shadow: 0 10px 20px rgba(59, 128, 181, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animation rebondie */
    border: none;
    cursor: pointer;
}

/* --- EFFETS AU SURVOL --- */
.btn-cta:hover {
    transform: scale(1.05); /* Grossit légèrement */
    box-shadow: 0 15px 25px rgba(59, 128, 181, 0.4);
    filter: brightness(1.1); /* Brille légèrement */
    transition-duration: 0.3s;
}

.btn-cta:hover span {
    transform: translateX(5px); /* La flèche bouge vers la droite */
}

/* --- EFFET AU CLIC --- */
.btn-cta:active {
    transform: scale(0.98);
}

/* Sur mobile, on remet tout en largeur pleine */
@media (max-width: 768px) {
    .flex-row { gap: 40px; }
    .img-service {
        max-width: 100%;
        height: 200px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .flex-row, .flex-row.reverse { flex-direction: column; text-align: center; gap: 40px; }
    .web-grid { grid-template-columns: 1fr; }
    .text-block h3 { font-size: 2rem; }
    .check-list li { text-align: left; }
}