/* --- CONFIGURATION GLOBALE --- */
:root {
    --primary: #0f172a;
    --primary-foreground: #ffffff;
    --secondary: #2563eb;
    --secondary-foreground: #ffffff;
    --background: #ffffff;
    --muted: #f8fafc;
    --muted-foreground: #64748b;
    --border: #e2e8f0;
    --radius: 1rem;
    --font: 'Inter', sans-serif;
    --custom-color: #4d606e; /* 3. Nouvelle couleur ajoutée */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font);
    color: var(--primary);
    background-color: var(--background);
}

body {
    overflow-x: hidden;
    line-height: 1.5;
    padding-top: 80px; /* Espace pour éviter que la navbar fixe ne cache le contenu */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.w-full { width: 100%; }
.items-center { align-items: center; }

/* --- GRILLES (RESPONSIVE) --- */
.grid {
    display: grid;
    gap: 2rem;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: 1fr; }
.grid-5-3 { grid-template-columns: 1fr; }

@media (min-width: 1024px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 4rem; }
    .grid-5-3 { grid-template-columns: 2fr 3fr; gap: 4rem; }
}

/* --- 4. NAVIGATION BAR FIXED STYLING --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 40px; /* Ajustement proportionnel du logo */
    width: auto;
    display: block;
}

.nav-links {
    display: none;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-links a {
    text-decoration: none;
    color: #4d606e;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--secondary);
}

.btn-nav-commencer {
    background-color: #3b51d4;
    color: white;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-nav-commencer:hover {
    background-color: #2539b8;
}

/* --- BOUTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font);
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #3b51d4;
    color: var(--primary-foreground);
}
.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
    background-color: #3b51d4;
    color: var(--secondary-foreground);
}
.btn-secondary:hover { background-color: #2539b8; }

/* 2. & 3. Bouton "Voir Notre Travail" inversé par défaut */
.btn-outline-custom {
    background-color: var(--muted);
    border: 1px solid var(--border);
    color: var(--custom-color); /* Texte #4d606e */
}
/* Au survol (hover), il prend un background transparent/outline */
.btn-outline-custom:hover {
    background-color: transparent;
    border: 1px solid rgba(77, 96, 110, 0.4);
}

.icon-right {
    margin-left: 0.5rem;
    transition: transform 0.2s;
    width: 1.25rem;
    height: 1.25rem;
}
.btn:hover .icon-right { transform: translateX(4px); }

/* --- ELEMENTS DE SECTIONS --- */
.section { padding: 7rem 0; }
.bg-muted { background-color: var(--muted); }

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #3b51d4;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

/* 5. Changement de couleur des titres spécifiques */
.color-custom {
    color: var(--custom-color);
}

.section-lead {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto 4rem auto;
}

/* --- CARDS (COMMUN) --- */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

/* --- 1. HERO TOTALEMENT CENTRÉ --- */
.hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center; /* Centrage horizontal complet */
    background-color: rgba(241, 245, 249, 0.3);
    overflow: hidden;
    text-align: center; /* Force l'alignement centré de tous les blocs textes */
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(37,99,235,0.05), rgba(15,23,42,0.05));
}

.blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.circle-1 {
    top: -50px;
    right: -100px;
    width: 600px;
    height: 600px;
    background-color: rgba(37, 99, 235, 0.15);
}

.circle-2 {
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background-color: rgba(15, 23, 42, 0.1);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center; /* Aligne les boutons et le badge sur l'axe central */
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: rgba(59, 81, 212, 0.1);
    color: #3b51d4;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--custom-color); /* 3. Titre Webstructure couleur #4d606e */
    margin-bottom: 1.5rem;
    line-height: 1;
}

@media (min-width: 768px) {
    .hero-title { font-size: 6rem; }
}
@media (min-width: 1024px) {
    .hero-title { font-size: 7.5rem; }
}

.hero-lead {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto 2.5rem auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}
@media (min-width: 640px) {
    .hero-actions { flex-direction: row; width: auto; }
}

/* --- 6. MODIFICATIONS DES BOITES DE SERVICES --- */
.service-grid {
    gap: 2.5rem; /* Espace légèrement augmenté entre les boîtes */
}

.service-card {
    padding: 3.5rem 2.5rem; /* 6. Boîte agrandie verticalement */
    text-align: left; /* Aligné à gauche comme ton image */
}

.service-card .card-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #eff2fe;
    color: #3b51d4;
    border-radius: 0.75rem; /* Coins adoucis typiques de l'image */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}
.service-card .card-icon svg { width: 1.75rem; height: 1.75rem; }

.service-card h3 { 
    font-size: 1.35rem; /* 6. Titre légèrement réduit */
    font-weight: 700; 
    margin-bottom: 1rem; 
    line-height: 1.3;
    color: var(--primary);
}
.service-card p { 
    color: var(--muted-foreground); 
    font-size: 0.975rem;
    line-height: 1.6;
}

/* --- ABOUT SECTION --- */
.about-section {
    background-color: #1e293b;
    color: #f8fafc;
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

.about-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.about-text { position: relative; z-index: 10; }
.text-white { color: #ffffff; }

.about-body p {
    color: #cbd5e1;
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #334155;
}

.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--secondary); }
.stat-label { font-size: 0.875rem; color: #94a3b8; text-transform: uppercase; }

.about-image-wrapper { position: relative; width: 100%; display: flex; justify-content: center;}
.about-image-container {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 1.5rem;
    border: 8px solid #334155;
    overflow: hidden;
    position: relative;
}
.about-image-container img { width: 100%; height: 100%; object-fit: cover; }
.image-overlay { position: absolute; inset: 0; background-color: rgba(15,23,42,0.4); mix-blend-mode: multiply; }

.promise-box {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    background-color: var(--secondary);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 20rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
    display: none;
}
@media (min-width: 768px) { .promise-box { display: block; } }
.promise-title { font-weight: 700; font-size: 1.25rem; margin-bottom: 0.5rem; }

/* --- 7. MODIFICATIONS DU PORTFOLIO --- */
.portfolio-card { 
    padding: 0; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    border-radius: 1.25rem;
}
.portfolio-img { width: 100%; aspect-ratio: 16/11; overflow: hidden; border-bottom: 1px solid var(--border); }
.portfolio-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-card:hover .portfolio-img img { transform: scale(1.03); }

.portfolio-content { padding: 2.25rem; display: flex; flex-direction: column; flex-grow: 1; text-align: left;}

/* Style exact des petits tags arrondis et clairs */
.portfolio-badge-tag { 
    display: inline-block;
    font-size: 0.75rem; 
    color: #3b51d4; 
    background-color: #eff2fe;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-weight: 700; 
    margin-bottom: 1.25rem; 
    letter-spacing: 0.025em;
}

.portfolio-content h3 { font-size: 1.5rem; margin-bottom: 0.75rem; font-weight: 700; color: var(--primary); }
.portfolio-content p { color: var(--muted-foreground); margin-bottom: 2rem; flex-grow: 1; font-size: 0.95rem; line-height: 1.6; }

/* Liens du portfolio épurés avec icône sortante */
.portfolio-external-link { 
    color: #4d606e; 
    text-decoration: none; 
    font-weight: 500; 
    font-size: 0.95rem;
    display: inline-flex; 
    align-items: center; 
    gap: 0.4rem;
    margin-top: auto;
    transition: color 0.2s;
}
.portfolio-external-link:hover { color: #3b51d4; }
.portfolio-external-link svg { width: 1rem; height: 1rem; }

/* --- 8. SECTION CONTACT TEXTE AJUSTÉ --- */
.contact-title-custom {
    color: var(--custom-color); /* Couleur #4d606e */
    font-size: 2.25rem; /* Taille réduite pour forcer l'affichage sur 2 lignes maximum */
    line-height: 1.2;
    max-width: 400px; /* Contraint la largeur du bloc */
}

.contact-methods { display: flex; flex-direction: column; gap: 2rem; margin-top: 3rem; }
.contact-item { display: flex; gap: 1rem; align-items: start; }
.icon-circle {
    width: 3rem;
    height: 3rem;
    background-color: rgba(15,23,42,0.05);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-item h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.25rem; }
.contact-item a { color: var(--muted-foreground); text-decoration: none; transition: color 0.2s; }
.contact-item a:hover { color: #3b51d4; }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; background: var(--muted); padding: 2.5rem; border-radius: var(--radius); border: 1px solid var(--border); }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.875rem; font-weight: 600; }
.form-group input, .form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: var(--font);
    font-size: 1rem;
    background: white;
}
.form-group input:focus, .form-group textarea:focus { outline: 2px solid #3b51d4; }

/* --- 9. DESIGN DU FOOTER CONFORME À L'IMAGE --- */
.main-footer {
    background-color: #475569; /* Gris bleuté ardoise conforme */
    color: #f1f5f9;
    padding: 5rem 0 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand .footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1); /* Rend le logo blanc si nécessaire, ou retire cette ligne s'il est déjà coloré */
}

.footer-brand p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 400px;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.footer-links ul, .footer-contact ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links ul li a:hover {
    color: #ffffff;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.footer-contact ul li svg {
    width: 1rem;
    height: 1rem;
    color: #cbd5e1;
}

.footer-contact ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: left;
    font-size: 0.875rem;
    color: #94a3b8;
}


/* --- COMPLÉMENTS POUR LES ANNONCES DU PORTFOLIO --- */

.portfolio-subsection-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--custom-color);
    margin: 4rem 0 2rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portfolio-row {
    margin-bottom: 2rem;
}

/* Conteneur spécialisé pour conserver le cadrage et l'impact visuel des publicités */
.ad-img-container {
    aspect-ratio: 16/14 !important; /* Format légèrement plus haut pour mieux apprécier les designs mobiles/story */
    background-color: #f1f5f9;
}

.ad-img-container img {
    object-fit: cover;
    object-position: center top; /* Privilégie le haut de l'image (titres/logos des pubs) */
}

/* Badge distinct pour différencier le pôle marketing */
.pub-tag {
    background-color: #fef2f2 !important;
    color: #ef4444 !important;
}

/* Texte indicatif sous les descriptions d'annonces */
.portfolio-spec-text {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    font-weight: 600;
}

.portfolio-spec-text svg {
    width: 1rem;
    height: 1rem;
    color: #3b51d4;
}

/* --- BOUTON DE CHANGEMENT DE LANGUE --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.btn-lang {
    background: transparent;
    border: 1px solid transparent;
    color: #4d606e;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-lang:hover {
    background-color: var(--muted);
    color: #3b51d4;
}

.btn-lang svg {
    width: 1rem;
    height: 1rem;
}