/* Styles personnalisés pour HT-ESACOM */

/* Variables CSS personnalisées */
:root {
    --primary-blue: #0f172a;       /* Couleur ardoise nuit identique à "Prêt à commencer votre parcours" */
    --primary-red: #dc2626;        /* Rouge Rubis vif et énergique */
    --primary-amber: rgb(217, 119, 6); /* #d97706 - Ambre / Or chaleureux */
    --primary-emerald: rgb(217, 119, 6);
    --dark-gray: #0f172a;          /* Ardoise nuit profonde */
    --light-gray: #f8fafc;
    --accent-blue: #020617;        /* Ardoise profonde pour les hovers */
    --accent-red: #b91c1c;         /* Rouge profond pour les hovers */
    --accent-amber: #b45309;       /* Ambre soutenu pour les hovers */
    --soft-shadow: rgba(0, 0, 0, 0.08);
}

/* Reset & Responsive de base */
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

/* Animations personnalisées */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Classes d'animation */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Styles pour les cartes */
.card-hover {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Styles pour les boutons */
.btn-primary {
    background: var(--primary-blue);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-red);
}

.btn-secondary {
    background: var(--primary-red);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-blue);
}

/* Styles pour les formulaires */
.form-control {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.form-control:focus {
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1), 0 4px 12px rgba(0, 102, 255, 0.25);
    border-color: var(--primary-blue);
}

/* Styles pour les images */
.img-hover {
    transition: opacity 0.3s ease;
}

.img-hover:hover {
    opacity: 0.95;
}

/* Styles pour le texte */
.text-gradient {
    color: var(--primary-blue);
    font-weight: bold;
}

/* Styles pour les sections */
.section-padding {
    padding: 5rem 0;
}

/* Styles pour les icônes */
.icon-hover {
    transition: all 0.3s ease;
}

.icon-hover:hover {
    opacity: 0.8;
}

/* Styles pour la navigation */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Styles pour les messages */
.alert {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: #d97706;
    color: white;
}

.alert-error {
    background: #dc2626;
    color: white;
}

.alert-warning {
    background: #b45309;
    color: white;
}

.alert-info {
    background: #0f172a;
    color: white;
}

/* Styles pour la pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Styles pour les cartes d'articles */
.article-card {
    border: 1px solid #e5e7eb;
}

/* Styles pour les cartes de programmes */
.programme-card {
    border: 1px solid #e5e7eb;
}

/* Styles pour les membres d'équipe */
.team-member {
    /* Pas d'effet de survol */
}

.team-member img {
    /* Pas d'effet de survol */
}

/* Styles pour le footer */
.footer-gradient {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* Styles pour les ombres élégantes */
.shadow-elegant {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.08);
}

.shadow-blue-glow {
    box-shadow: 0 8px 32px -4px rgba(0, 102, 255, 0.3);
}

.shadow-red-glow {
    box-shadow: 0 8px 32px -4px rgba(255, 0, 0, 0.3);
}

/* Styles pour les liens sociaux */
.social-link {
    transition: all 0.3s ease;
}

.social-link:hover {
    opacity: 0.8;
}

/* Styles pour les badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.badge-primary {
    background: var(--primary-blue);
    color: white;
}

.badge-secondary {
    background-color: #6b7280;
    color: white;
}

/* Styles pour les tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: var(--dark-gray);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Styles responsifs */
@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

/* Styles pour les animations d'entrée */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.2s;
}

.fade-in-delay-2 {
    animation-delay: 0.4s;
}

.fade-in-delay-3 {
    animation-delay: 0.6s;
}

/* Styles pour les couleurs indépendantes */
.bg-primary-blue {
    background-color: var(--primary-blue);
}

.bg-primary-red {
    background-color: var(--primary-red);
}

.bg-dark-gray {
    background-color: var(--dark-gray);
}

.text-primary-blue {
    color: var(--primary-blue);
}

.text-primary-red {
    color: var(--primary-red);
}

.text-dark-gray {
    color: var(--dark-gray);
}

/* Styles pour les dégradés personnalisés */
.gradient-primary {
    background: var(--primary-blue);
}

.gradient-secondary {
    background: var(--dark-gray);
}

/* Styles pour les ombres personnalisées */
.shadow-primary {
    box-shadow: 0 10px 25px -5px rgba(50, 87, 116, 0.1), 0 10px 10px -5px rgba(50, 87, 116, 0.04);
}

.shadow-secondary {
    box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.1), 0 10px 10px -5px rgba(220, 38, 38, 0.04);
}

/* Styles pour les bordures personnalisées */
.border-primary {
    border-color: var(--primary-blue);
}

.border-secondary {
    border-color: var(--primary-red);
}

/* Styles pour les textes personnalisés */
.text-primary {
    color: var(--primary-blue);
}

.text-secondary {
    color: var(--primary-red);
}

.text-dark {
    color: var(--dark-gray);
}

/* === AMÉLIORATIONS VISUELLES AVANCÉES === */

/* Typographie améliorée */
body {
    font-feature-settings: "kern" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* Boutons avec effet simple */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine:hover {
    opacity: 0.95;
}

/* Cartes avec effet simple */
.card-glow {
    position: relative;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
}

/* Sections avec fond dégradé subtil */
.section-gradient-light {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.section-gradient-blue {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.03) 0%, rgba(0, 102, 255, 0.08) 100%);
}

.section-gradient-red {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.03) 0%, rgba(255, 0, 0, 0.08) 100%);
}

/* Liens avec soulignement animé */
.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

/* Images avec effet simple */
.img-overlay {
    position: relative;
    overflow: hidden;
}

.img-overlay:hover {
    opacity: 0.95;
}

/* Icônes avec animation de rotation */
.icon-rotate:hover {
    opacity: 0.8;
}

/* Badges modernes */
.badge-modern {
    background: var(--primary-blue);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Navigation sticky avec effet de scroll */
.nav-sticky {
    transition: all 0.3s ease;
}

.nav-sticky.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
}

/* Footer avec meilleur contraste */
footer {
    background: #0f172a;
}

/* Amélioration des inputs */
input, textarea, select {
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    outline: none;
}

/* Séparateurs élégants */
hr {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    margin: 2rem 0;
}

/* Amélioration de la lisibilité */
p {
    line-height: 1.75;
    color: #4b5563;
}

/* Effet de profondeur pour les sections */
.section-depth {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   PROTECTION DE HAUT NIVEAU & ANTI-COPIE INTÉGRALE (HT-ESACOM)
   ========================================================================== */

/* 1. Blocage strict et universel de la sélection de texte sur tous les éléments */
*, *::before, *::after {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* 2. Neutralisation du surlignage de sélection pour empêcher la capture visuelle */
::selection {
    background: transparent !important;
    color: inherit !important;
}
::-moz-selection {
    background: transparent !important;
    color: inherit !important;
}

/* 3. Dérogation stricte pour les formulaires (saisie, modification et sélection autorisées) */
input, textarea, select, [contenteditable="true"], .allow-select {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
}
input::selection, textarea::selection {
    background: #0f172a !important;
    color: #ffffff !important;
}
input::-moz-selection, textarea::-moz-selection {
    background: #0f172a !important;
    color: #ffffff !important;
}

/* 4. Blocage total du glisser-déposer (Drag & Drop) */
img, a, div, section, p, span, h1, h2, h3, h4, h5, h6 {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    pointer-events: auto;
}

/* Impression autorisée */

/* ==========================================================================
   Article Content & Rich Text Typography
   ========================================================================== */
.article-body {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.85;
    word-break: break-word;
}

.article-body p {
    margin-bottom: 1.35rem;
    color: #334155;
    line-height: 1.85;
}

.article-body h1, 
.article-body h2, 
.article-body h3, 
.article-body h4 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-body h1 { font-size: 2rem; }
.article-body h2 { font-size: 1.55rem; border-bottom: 2px solid #f1f5f9; padding-bottom: 0.5rem; }
.article-body h3 { font-size: 1.3rem; }
.article-body h4 { font-size: 1.1rem; }

.article-body ul {
    list-style-type: disc;
    padding-left: 1.75rem;
    margin-bottom: 1.35rem;
}

.article-body ol {
    list-style-type: decimal;
    padding-left: 1.75rem;
    margin-bottom: 1.35rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article-body blockquote {
    border-left: 4px solid #0f172a;
    background: #f8fafc;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #475569;
    border-radius: 0 0.5rem 0.5rem 0;
}

.article-body a {
    color: #0f172a;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.2s;
}

.article-body a:hover {
    color: #dc2626;
}

.article-body strong, 
.article-body b {
    font-weight: 700;
    color: #0f172a;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.article-body .not-prose img {
    margin: 0 !important;
    box-shadow: none;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.article-body th, 
.article-body td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    text-align: left;
}

.article-body th {
    background-color: #f1f5f9;
    font-weight: 600;
    color: #0f172a;
}



