/*
Theme Name: TD Info OnePage
Description: Thème monopage épuré style Apple pour TD Info
Author: Votre Développeur
Version: 1.2
*/

:root {
    --couleur-primaire: #2db2e6; /* Bleu clair de votre logo */
    --couleur-secondaire: #5b3b9c; /* Violet de votre logo */
    --couleur-fond: #ffffff;
    --couleur-texte: #1d1d1f; /* Noir doux style Apple */
    --couleur-gris: #f5f5f7; /* Gris clair Apple */
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--couleur-texte);
    background-color: var(--couleur-fond);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* En-tête Fixe */
.site-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

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

/* Ajustement du Logo */
.site-logo img {
    max-height: 65px; /* Augmenté de 50px à 65px pour que le texte sous TD reste bien lisible */
    width: auto;
    display: block;
}
.logo-texte {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--couleur-texte);
    text-decoration: none;
}

/* Menu */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--couleur-texte);
    font-size: 0.85rem;
    letter-spacing: -0.01em;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.nav-menu a:hover {
    opacity: 1;
    color: var(--couleur-primaire);
}

/* Sections */
section {
    padding: 140px 20px 80px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
section:nth-child(even) {
    background-color: var(--couleur-gris);
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; margin-bottom: 16px; font-weight: 700; }
h2 { font-size: 2.5rem; letter-spacing: -0.01em; margin-bottom: 24px; font-weight: 600; }
p { font-size: 1.25rem; max-width: 640px; color: #86868b; margin-bottom: 30px; }

/* Boutons */
.btn {
    background: linear-gradient(90deg, var(--couleur-primaire) 0%, var(--couleur-secondaire) 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
}
.btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(45, 178, 230, 0.4);
}

/* Grille de services */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    max-width: 1000px;
    margin-top: 40px;
}
.service-item {
    background: #ffffff;
    padding: 32px;
    border-radius: 18px;
    width: calc(50% - 32px);
    text-align: left;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.service-item h3 { margin-top: 0; color: var(--couleur-secondaire); }

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

footer {
    padding: 40px 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #86868b;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .service-item { width: 100%; }
    .nav-menu { display: none; }
}
/* ==========================================================================
   CORRECTIONS POUR L'AFFICHAGE DU MENU
   ========================================================================== */

/* 1. Ajustement pour la barre d'administration WordPress */
body.admin-bar .site-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* 2. Menu adaptatif (il ne disparaît plus sur mobile/tablette, il s'organise proprement) */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column; /* Le logo passe au-dessus du menu */
        gap: 12px;
        padding: 10px 20px;
    }
    
    .site-navigation .nav-menu {
        display: flex; /* Force l'affichage du menu */
        gap: 16px;     /* Resserre un peu les liens */
    }
    
    .site-navigation .nav-menu a {
        font-size: 0.8rem; /* Écrit un peu plus petit sur mobile */
    }
    
    section {
        padding-top: 180px; /* Donne plus d'espace pour ne pas être caché par le double en-tête mobile */
    }
    
/* ==========================================================================
   ALIGNEMENT ET CENTRAGE LOGOS CLIENTS (STRICT)
   ========================================================================== */

/* Conteneur principal : force l'alignement sur une seule ligne et le centrage */
.logos-clients-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Interdit le retour à la ligne sur ordinateur */
    justify-content: center !important; /* Centre horizontalement */
    align-items: center !important; /* Aligne verticalement sur le même axe */
    gap: 60px !important; /* Espace identique entre chaque logo */
    width: 100% !important;
    max-width: 900px !important;
    margin: 40px auto 0 !important;
    padding: 0 !important;
}

/* La boîte invisible pour chaque logo (toutes identiques) */
.logo-client-item {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s ease;
    width: 180px !important; /* Largeur max de la boîte */
    height: 80px !important; /* Hauteur max de la boîte */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Force le lien à occuper tout l'espace de la boîte */
.logo-client-item a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
}

/* Force l'image à se calibrer proprement sans déformation */
.logo-client-item img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important; /* Inspecte et ajuste le logo dans sa boîte */
    display: block !important;
}

/* Effet au survol */
.logo-client-item:hover {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1.08);
}

/* Version Mobile : passe automatiquement en colonne si l'écran est trop petit */
@media (max-width: 768px) {
    .logos-clients-grid {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        gap: 40px !important;
    }
    .logo-client-item {
        width: 150px !important;
        height: 60px !important;
    }
}
/* Alignement et espacement des listes dans les services */
.service-item ul li {
    margin-bottom: 8px;
}
.service-item p strong {
    color: var(--couleur-texte);
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
}
/* --- Pied de page (Style Apple) --- */
#site-footer {
    background-color: #f5f5f7; /* Gris clair officiel Apple */
    padding: 60px 20px 30px;
    color: #86868b;
    font-size: 0.85rem;
    line-height: 1.6;
    border-top: 1px solid #d2d2d7;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    gap: 40px;
}

.footer-column {
    flex: 1;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d1d1f;
    display: block;
    margin-bottom: 15px;
}

#site-footer h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#site-footer ul li {
    margin-bottom: 10px;
}

#site-footer a {
    color: #86868b;
    text-decoration: none;
    transition: color 0.2s ease;
}

#site-footer a:hover {
    color: var(--couleur-secondaire); /* Passe en violet au survol */
}

/* Ligne de copyright tout en bas */
.footer-bottom {
    max-width: 1000px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #d2d2d7;
    text-align: center;
    font-size: 0.8rem;
}

/* Adaptation Mobile */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
}