/* --- VARIABLES & DESIGN SYSTEM --- */
:root {
    --primary: #3b82f6;       /* Bleu Guideon */
    --primary-dark: #1d4ed8;  /* Bleu Profond */
    --accent: #7dd3fc;        /* Bleu Ciel */
    --slate-900: #0f172a;     /* Pour les textes foncés */
    --slate-400: #94a3b8;     /* Pour les textes secondaires */
    --white: #ffffff;
    --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- RESET & BASE --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,600;0,800;1,800&display=swap');

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #fcfdfe;
    overflow-x: hidden;
}

/* --- HERO & BACKGROUNDS --- */
.bg-guideon {
    background: radial-gradient(circle at top left, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

/* Effet circuit imprimé (inspiré de ta carte) */
.circuit-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* --- ANIMATIONS --- */
.floating {
    animation: floating 4s ease-in-out infinite;
}


@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* --- COMPOSANTS --- */

/* Cartes Services */
.service-card {
    background: var(--white);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary) !important;
    box-shadow: 0 30px 60px -12px rgba(59, 130, 246, 0.12);
}

/* Navigation Blur */
nav {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Glassmorphism pour le panneau de contact */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- FORMULAIRE --- */
input, textarea {
    border: 2px solid transparent !important;
    transition: var(--transition);
}

input:focus, textarea:focus {
    background: var(--white) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.1) !important;
}

/* --- BOUTONS --- */
.btn-primary {
    transition: var(--transition);
}

.btn-primary:hover {
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.4);
}

/* --- UTILS --- */
.selection-blue::selection {
    background: var(--primary);
    color: var(--white);
}

/* Smooth Scroll Margin pour les ancres */
section[id] {
    scroll-margin-top: 100px;
}

/* Style personnalisé pour les icônes de contact (AMÉLIORÉ) */
.contact-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15); /* Fond translucide */
    border-radius: 15px; /* Coins arrondis comme ta mascotte */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Effet au survol du lien parent */
.group:hover .contact-icon-box {
    background: #ffffff;
    color: #3b82f6;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Taille de l'icône interne */
.contact-icon-box i {
    font-size: 1.25rem;
}


/* Conteneur d'icône harmonisé */
.contact-icon-box {
    /* Dimensions fixes pour garantir un ratio 1:1 (carré) */
    width: 48px;
    height: 48px;

    /* Flexbox pour centrer l'icône parfaitement au milieu */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Design inspiré de ta mascotte */
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);

    /* Rayon de courbure fixe pour éviter l'effet "pilule" */
    border-radius: 14px;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0; /* Empêche l'icône de s'écraser si le texte est long */
}

.contact-link-text {
    word-break: break-all; /* Coupe l'email proprement si l'écran est minuscule */
    text-align: center;    /* Centre le texte sous le logo sur mobile */
}

/* --- AJUSTEMENTS MOBILE --- */
@media (max-width: 768px) {
    /* Réduire le titre "On discute de votre futur site ?" */
    #contact h2.text-5xl {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }

    /* Ajuster l'espacement du texte sous le logo */
    .contact-link-text {
        margin-top: 4px;
        opacity: 0.9;
        letter-spacing: 0.05em;
        text-align: center;
        word-break: break-all;
    }
}

/* Pour garder le texte à gauche sur ordinateur */
@media (min-width: 1024px) {
    .contact-link-text {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .contact-link-text {
        text-align: left;  /* Aligne à gauche quand le logo repasse à côté */
        word-break: normal;
    }
}


/* Gestion du texte de contact pour le mobile */
.contact-link-text {
    text-align: center;
    word-break: break-all; /* Sécurité anti-débordement */
    max-width: 100%;
}

/* On remet l'alignement à gauche uniquement sur grand écran */
@media (min-width: 1024px) {
    .contact-link-text {
        text-align: left;
        word-break: normal;
    }
}

/* Ajustement de la section bleue sur mobile pour éviter l'étouffement */
@media (max-width: 1024px) {
    #contact .bg-blue-600 {
        padding: 3rem 1.5rem !important;
    }

    #contact h2.text-5xl {
        font-size: 2rem !important; /* Réduit la taille du titre qui prend trop de place */
        text-align: center;
    }
}
