/* --- Base Générale pour un Annuaire Pro & Webapp (Thème "Artio Transport Luxe") --- */

/* Importation des polices Google Fonts */
/* J'ajoute Montserrat ici pour le titre du logo */
@import url('https://fonts.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&family=Raleway:wght@300;700&family=Montserrat:wght@900&display=swap');

/* === Thème "ARTIO TRANSPORT LUXE" === */
:root {
    /* Couleurs */
    --bg: #f5f5f0; 
    --panel: #ffffff; 
    --muted: #6b7a8f; 
    --accent: #2e4a62; 
    --accent-light: #a87e5b; /* Bronze vieilli / Cuivre */
    --text-dark: #3a4a58; 
    --accent-darker: #1a2c38; 

    /* Polices */
    --font-heading: 'Playfair Display', serif; 
    --font-body: 'Lato', sans-serif; 
    --font-alt: 'Raleway', sans-serif; 
    --font-logo: 'Montserrat', sans-serif; 

    /* Variables de géométrie (Conservées uniquement pour la réutilisation des valeurs) */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
}

/* --- Fond global : Harmonie de gris et beige --- */
body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--bg) 0%, #ebebea 100%);
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
}

body::before {
    content: none;
}

/* =========================================================
    HEADER ET NAVIGATION
========================================================= */
.site-header {
    background: var(--panel);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-bottom: none;
}
.header-inner { background: transparent !important; }

/* 🎯 TITRE DU SITE (STYLE PRINCIPAL) */
.site-title {
    color: var(--panel); 
    font-family: var(--font-logo); 
    font-weight: 400; 
    font-size: 1.5em; /* TAILLE ADOPTÉE POUR GRAND ÉCRAN */
    letter-spacing: 3px; 
    text-transform: uppercase; 
    text-shadow: 
        0px 0px 10px rgba(0, 0, 0, 0.6), 
        0px 3px 6px rgba(0, 0, 0, 0.9); 
    transition: all 0.3s ease-in-out; 
}

/* 🚨 AJOUT : Media Query pour le responsive (écrans <= 768px) */
@media (max-width: 768px) {
    .site-title {
        font-size: 0.9em; /* Taille réduite */
        letter-spacing: 1px; /* Espacement réduit */
        /* On peut aussi ajuster l'ombre si nécessaire, mais ce n'est pas obligatoire */
        text-shadow: 
            0px 0px 5px rgba(0, 0, 0, 0.6), 
            0px 2px 4px rgba(0, 0, 0, 0.9);
    }
}

/* Optionnel : Effet subtil au survol du titre */
.site-title:hover {
    color: var(--accent-light); 
    text-shadow: 
        0px 0px 12px rgba(0, 0, 0, 0.7), 
        0px 4px 8px rgba(0, 0, 0, 1);
}

/* 🤩 Effet "Souligné Glissant" sur les liens de navigation */
.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: var(--font-alt);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}
.main-nav a::after {
    content: '';
    position: absolute; 
    bottom: 0;         
    left: 0;           
    width: 100%;       
    height: 3px;       
    background-color: var(--accent-light);
    transform: translateX(-100%); 
    transition: transform 0.3s ease-out;
}
.main-nav a:hover {
    color: var(--accent-darker); 
    background: transparent;
    transform: none; 
}
.main-nav a:hover::after {
    transform: translateX(0);
}

/* 🤩 Effet "Focus Élégant" Menu Mobile (CONTRASTÉ) */
#menu-toggle {
    background: var(--accent);
    color: var(--panel);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
}
#menu-toggle:hover {
    background: var(--accent-light);
    box-shadow: 0 0 20px rgba(168, 126, 91, 0.8), 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: scale(1.05); 
}

/* =========================================================
    CORPS DU TEXTE : LIENS HYPERTEXTES (NOUVEL EFFET)
========================================================= */

/* 🎯 Application de l'effet "Souligné Glissant" aux liens dans les articles */
.main-content a:not(.btn):not(.tag-cloud a),
article a:not(.btn):not(.tag-cloud a) {
    color: var(--accent); 
    text-decoration: none; 
    transition: color 0.3s ease;
    
    position: relative;
    overflow: hidden;
    display: inline-block; 
    
    line-height: 1.5; 
    vertical-align: middle; 
}

.main-content a:not(.btn):not(.tag-cloud a)::after,
article a:not(.btn):not(.tag-cloud a)::after {
    content: '';
    
    position: absolute; 
    bottom: 0;         
    left: 0;           
    width: 100%;       
    height: 2px;       
    
    background-color: var(--accent-light);
    transform: translateX(-100%); 
    transition: transform 0.3s ease-out;
}

.main-content a:not(.btn):not(.tag-cloud a):hover,
article a:not(.btn):not(.tag-cloud a):hover {
    color: var(--accent-darker); 
}

.main-content a:not(.btn):not(.tag-cloud a):hover::after,
article a:not(.btn):not(.tag-cloud a):hover::after {
    transform: translateX(0); 
}


/* =========================================================
    SIDEBAR (AVEC RECOUVREMENT LATÉRAL CONTRASTÉ)
========================================================= */
.sidebar {
    background: #fcfcfc;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.sidebar ul li.menu-title {
    color: var(--accent);
    transition: all 0.25s ease-in-out;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
}

.sidebar h3 {
    color: var(--text-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-family: var(--font-heading);
    font-weight: 700;
}

.sidebar ul li a {
    color: var(--muted);
    transition: color 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    text-decoration: none;
    font-family: var(--font-alt);
    font-weight: 400;
    
    position: relative; 
    overflow: hidden; 
}

/* 🎯 Effet de recouvrement (CONTRASTÉ) */
.sidebar ul li a::before {
    content: "";
    
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    
    background-color: rgba(168, 126, 91, 0.2); 
    transform: translateX(-100%); 
    transition: transform 0.3s ease-out;
    z-index: 0; 
}

/* Le texte doit être au-dessus du recouvrement pour être visible */
.sidebar ul li a .link-text {
    position: relative; 
    z-index: 1; 
}



/* 🤩 Effet "Recouvrement Latéral" activé au survol */
.sidebar ul li a:hover::before {
    transform: translateX(0);
}

.sidebar ul li a:hover {
    color: var(--accent-darker); 
    font-weight: 600; 
}
.sidebar ul li a:hover::after {
    color: var(--accent); 
    opacity: 1;
    transform: translateY(-50%) scale(1.2); 
}

/* Scrollbar (Couleurs ajustées) */
.sidebar::-webkit-scrollbar-track {
    background: var(--bg);
}
.sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-light);
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
.sidebar {
    scrollbar-color: var(--accent-light) var(--bg);
}

/* =========================================================
    FOOTER
========================================================= */
.site-footer {
    background: var(--accent-darker);
    color: #f0f0f0; 
    border-top: 5px solid var(--accent-light);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    font-family: var(--font-alt);
}
.footer-links a {
    color: #f0f0f0; 
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    text-decoration: underline;
    color: var(--accent-light);
}

/* =========================================================
    FORMULAIRE DE CONTACT (CORRECTION BLANC SUR BLANC)
========================================================= */
.contact {
    background: var(--panel);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

/* Bordure plus foncée pour la visibilité */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
    background: var(--panel);
    color: var(--text-dark);
    border: 1px solid #9e9e9e; 
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: var(--font-body);
}

/* Focus des encadrés visible (CONTRASTÉ) */
.contact input:focus,
.contact textarea:focus,
.contact select:focus {
    border-color: var(--accent); 
    box-shadow: 0 0 12px rgba(46, 74, 98, 0.6); 
    outline: none;
    background-color: #fcfafa;
}

/* 🤩 Effet "Lueur de Soumission" sur les boutons (CONTRASTÉ) */
.contact button:hover {
    transform: scale(1.02); 
}

/* =========================================================
    AUTRES EFFETS DISCRETS (Cartes, Boutons, Pagination, etc.)
========================================================= */

/* --- Cards (Matière et Profondeur - CONTRASTÉ) --- */
.card {
    background: var(--panel);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

/* 🤩 Effet "Profondeur et Focus" */
.card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25), 0 0 15px rgba(0, 0, 0, 0.08); 
}

/* --- TITRES D'ARTICLE (Élégance avec accent bronze - CONTRASTÉ) --- */
article.card div.excerpt h3 a {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    box-shadow: inset 0 -1px 0 0 var(--accent-light);
}

/* 🤩 Effet "Éclairage Accentué" au survol */
article.card div.excerpt h3 a:hover {
    color: var(--accent-darker); 
    box-shadow: inset 0 -3px 0 0 var(--accent-light); 
}

/* 🤩 Effet "Lueur Chaleureuse" sur le bouton (CONTRASTÉ) */
.btn {
    background: linear-gradient(45deg, var(--accent-light), #c4b693);
    color: var(--accent);
    box-shadow: 0 4px 15px rgba(168, 126, 91, 0.5);
    border: 1px solid var(--accent-light);
    transition: all 0.4s ease;
    text-transform: uppercase;
    text-decoration: none;
}
.btn:hover {
    background: linear-gradient(45deg, #c4b693, var(--accent-light));
    box-shadow: 0 0 30px rgba(168, 126, 91, 1), 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: scale(1.05); 
    color: white;
}

/* === Pagination : Pastilles Subtiles (CONTRASTÉ) --- */
.pagination a, .pagination span {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
}
.pagination a {
    background: var(--panel);
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.pagination a:hover {
    background: var(--accent-light);
    color: var(--panel);
    box-shadow: 0 0 15px rgba(168, 126, 91, 0.8); 
    border-color: var(--accent-light);
    transform: scale(1.1); 
}
.pagination .current {
    background: var(--accent);
    color: white;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--accent);
}

/* === Nuage de tags : Discrétion et Structure (CONTRASTÉ) === */
.tag-cloud a {
    color: var(--muted);
    transition: all 0.5s ease;
    opacity: 0.9;
    background-color: #f0f0e8;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    font-family: var(--font-alt);
}
.tag-cloud a:hover {
    color: var(--accent);
    opacity: 1;
    transform: scale(1.15); 
    box-shadow: 0 0 15px rgba(168, 126, 91, 0.5); 
    background-color: var(--panel);
}

/* === Hero / Catégories : Dalles de verre vers Tablettes Lourdes --- */
.hero-card {
    background: var(--panel);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
/* 🤩 Effet "Miroir d'eau" */
.hero-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 0, 0, 0.1);
}
.hero-content h3.cat-name {
    color: var(--accent);
    text-shadow: none;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* --- Partage social (Discret) --- */
.social-share a {
    color: white;
    background-color: var(--muted);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
}

/* 🤩 Effet "Élargissement Subtil" sur les liens sociaux (CONTRASTÉ) */
.social-share a:hover {
    transform: scale(1.2); 
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

/* Couleurs specifiques aux reseaux sociaux (ajustées) */
.facebook:hover { background-color: #3b5998; }
.twitter:hover  { background-color: #00acee; }
.linkedin:hover { background-color: #0077b5; }
.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #c4b693 0%, var(--accent-light) 45%, #b09f78 60%, #f9f8f4 90%);
}

/* =========================================================
    news et timeline (LUXE DISCRET)
    ========================================================= */

.news-feed {
    position: relative; /* Conteneur parent pour positionner la ligne */
    list-style: none; /* Supprime les puces par défaut */
    padding-left: 20px; /* Espace pour la ligne et les indicateurs */
}

/* 🚨 AJOUT : Création de la barre verticale */
.news-feed::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 10px; /* Position de la ligne (doit correspondre au point) */
    width: 2px; /* Épaisseur de la ligne */
    background-color: var(--accent-light); /* Couleur Bronze */
    opacity: 0.5; /* Discrétion */
    z-index: 0;
}

.news-feed li {
    position: relative; /* Pour que le li::before soit positionné par rapport au li */
    margin-bottom: 25px; /* Espace entre les événements */
    padding-left: 20px;
}

.news-feed li::before {
    content: ""; /* L'indicateur (point) */
    position: absolute;
    top: 8px; /* Ajusté pour centrer sur la ligne */
    left: 1px; /* Ajusté pour centrer sur la ligne (10px - 9px/2) */
    width: 18px; /* Taille du point */
    height: 18px;
    border-radius: 50%;
    
    background: var(--panel); 
    border: 2px solid var(--accent-light); 
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); 
    transition: all 0.3s ease;
    z-index: 1;
}

/* 🤩 Effet "Goutte d'eau - Subtil" sur la Timeline (CONTRASTÉ) */
.news-feed li:hover::before {
    background: var(--accent-light); 
    transform: scale(1.1); 
    box-shadow: 0 0 15px rgba(168, 126, 91, 0.8); 
}