/* Variables globales - Thème sombre (par défaut) */
:root {
    --primary-color: #1f262b;
    --primary-color-light: #2a3338;
    --secondary-color: #32494e;
    --accent-color: #96eec8;
    --accent-color-light: #bdf5dc;
    --accent-gradient: linear-gradient(135deg, #96eec8, #65c8a4);
    --text-color: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --shadow-light: 0 5px 15px rgba(150, 238, 200, 0.2);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.25);
    --bg-color: #32494e;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Variables pour le thème clair */
[data-theme="light"] {
    --primary-color: #f5f7f6;
    --primary-color-light: #fafbfa;
    --secondary-color: #f0f4f2;
    --accent-color: #2e7d32;
    --accent-color-light: #4caf50;
    --accent-gradient: linear-gradient(135deg, #2e7d32, #4caf50);
    --text-color: #1a1a1a;
    --light-gray: #e8ebe9;
    --dark-gray: #2d2d2d;
    --shadow-light: 0 5px 15px rgba(46, 125, 50, 0.15);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.08);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.12);
    --bg-color: #f0f4f2;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Reset et styles de base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    min-height: 100vh;
    color: var(--text-color);
    line-height: var(--line-height-normal);
    background-color: var(--bg-color);
    overflow-x: hidden;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Body sans sidebar pour veille.html et sonnerie.html */
body.no-sidebar {
    display: block;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-color-light) 100%);
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transition: all 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--primary-color-light);
}

/* Styles pour les navigateurs WebKit (Chrome, Safari, etc.) */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--primary-color-light);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 4px;
    border: 2px solid var(--primary-color-light);
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-color-light);
}

/* Conteneur photo de profil avec bouton toggle */
.profile-pic-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-pic {
    width: 160px;
    height: 160px;
    min-width: 160px;
    min-height: 160px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid transparent;
    background: 
        linear-gradient(var(--primary-color), var(--primary-color)) padding-box,
        var(--accent-gradient) border-box;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    position: relative;
    margin: 0;
}

.profile-pic:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(150, 238, 200, 0.4);
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    border-radius: 50%;
    transition: transform 0.5s ease;
    margin: 0;
    padding: 0;
}

.profile-pic:hover img {
    transform: scale(1.05);
}

[data-theme="light"] .profile-pic:hover {
    box-shadow: 0 0 25px rgba(46, 125, 50, 0.3);
}

.sidebar h1 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: var(--accent-color);
    text-align: center;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.sidebar h1::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: var(--accent-gradient);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 30px;
}

.sidebar nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 14px 20px;
    transition: all 0.3s ease;
    border-radius: 10px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--card-bg);
    border: 1px solid rgba(150, 238, 200, 0.1);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .sidebar nav a {
    border-color: rgba(46, 125, 50, 0.2);
}

.sidebar nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar nav a:hover::before, 
.sidebar nav a:focus::before,
.sidebar nav a.active::before {
    opacity: 1;
}

.sidebar nav a:hover, 
.sidebar nav a:focus,
.sidebar nav a.active {
    background-color: rgba(150, 238, 200, 0.15);
    color: var(--accent-color);
    transform: translateX(5px);
    border-color: var(--accent-color);
}

[data-theme="light"] .sidebar nav a:hover,
[data-theme="light"] .sidebar nav a:focus,
[data-theme="light"] .sidebar nav a.active {
    background-color: rgba(46, 125, 50, 0.15);
}

.sidebar nav a.active {
    background-color: rgba(150, 238, 200, 0.2);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-light);
}

[data-theme="light"] .sidebar nav a.active {
    background-color: rgba(46, 125, 50, 0.2);
}

.sidebar nav a i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    background-color: rgba(150, 238, 200, 0.1);
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
}

[data-theme="light"] .sidebar nav a i {
    background-color: rgba(46, 125, 50, 0.1);
}

.sidebar nav a:hover i,
.sidebar nav a.active i {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(150, 238, 200, 0.3);
}

/* Bouton toggle thème - Positionné en haut à droite de la photo */
.profile-pic-container .theme-toggle-container {
    position: absolute;
    top: -5px;
    right: -5px;
    width: auto;
    margin: 0;
    padding: 0;
    border: none;
    z-index: 10;
}

.theme-toggle-btn {
    background: var(--accent-gradient);
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .theme-toggle-btn {
    border-color: var(--bg-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.theme-toggle-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

.theme-toggle-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.theme-toggle-btn i {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.theme-toggle-btn:hover i {
    transform: rotate(15deg);
}

[data-theme="light"] .theme-toggle-container {
    border-top-color: rgba(46, 125, 50, 0.3);
}

/* Date et heure */
.datetime {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--accent-color);
    background-color: var(--card-bg);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(150, 238, 200, 0.2);
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
    animation: glow 2s infinite alternate;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s ease;
}

[data-theme="light"] .datetime {
    text-shadow: none;
    background-color: rgba(46, 125, 50, 0.1);
    border-color: rgba(46, 125, 50, 0.3);
}

#date {
    margin-bottom: 5px;
    font-size: 0.9em;
    opacity: 0.9;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

[data-theme="light"] #date {
    color: var(--accent-color);
}

#time {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.8em;
    color: var(--accent-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

[data-theme="light"] #time {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-bottom: 15px;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5em;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(150, 238, 200, 0.1);
}

[data-theme="light"] .social-links a {
    border-color: rgba(46, 125, 50, 0.2);
}

.social-links a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    top: 100%;
    left: 0;
    transition: all 0.3s ease;
    z-index: -1;
    opacity: 0;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.social-links a:hover::before {
    top: 0;
    opacity: 1;
}

/* Contenu principal */
.main-content {
    flex: 1;
    padding: 20px 40px;
    margin-left: 280px;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
}

section {
    min-height: 100vh;
    padding: 80px 0;
    scroll-margin-top: 20px;
}

section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
}

section h2 i {
    margin-right: 15px;
    background-color: rgba(150, 238, 200, 0.1);
    padding: 10px;
    border-radius: 50%;
    box-shadow: var(--shadow-light);
    transition: background-color 0.3s ease;
}

[data-theme="light"] section h2 i {
    background-color: rgba(46, 125, 50, 0.1);
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
}

section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: var(--text-color);
    line-height: var(--line-height-heading);
}

/* Section d'accueil */
.welcome-section {
    text-align: center;
    padding: 120px 20px;
    background: linear-gradient(135deg, rgba(31, 38, 43, 0.95), rgba(50, 73, 78, 0.95)), 
                url('https://img.freepik.com/photos-gratuite/fond-banniere-stockage-nuage_53876-108506.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
    transition: all 0.3s ease;
}

[data-theme="light"] .welcome-section {
    background: linear-gradient(135deg, rgba(232, 245, 233, 0.9), rgba(241, 248, 242, 0.9)), 
                url('https://img.freepik.com/photos-gratuite/fond-banniere-stockage-nuage_53876-108506.jpg');
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.welcome-section h1 {
    font-size: 4em;
    margin-bottom: 25px;
    color: var(--accent-color);
    animation: fadeIn 1.2s ease-in-out;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.welcome-section h2::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 3px;
    background: var(--accent-gradient);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.welcome-section h2 {
    font-size: 1.8em;
    margin-bottom: 45px;
    color: var(--text-color);
    animation: fadeIn 1.5s ease-in-out;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 5px 15px;
    border-radius: 30px;
    display: inline-block;
    text-shadow: none;
    border: 1px solid rgba(150, 238, 200, 0.3);
    position: relative;
}

.welcome-section .message {
    font-size: 2em;
    color: var(--text-color);
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    margin: 10px auto 0;
    letter-spacing: 0.15em;
    animation: fadeIn 2s ease-in-out;
    height: 1.8em;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Particules d'arrière-plan */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-1000%) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Sections de contenu */
.content-section {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.content-section:hover {
    box-shadow: var(--shadow-dark);
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
}

.profile-content, .bts-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.profile-text, .bts-skills {
    flex: 1;
    min-width: 300px;
}

.skills-list {
    list-style: none;
}

.skills-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--accent-color-light);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 100%;
    margin-bottom: 2rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color-light);
    border-radius: 50%;
    z-index: 1;
    left: 10px;
    top: 15px;
}

.timeline-date {
    font-weight: bold;
    color: var(--accent-color-light);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

[data-theme="light"] .timeline-date {
    color: var(--accent-color);
}

.timeline-content {
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: background-color 0.3s ease;
    color: var(--text-color);
}

.timeline-content h3 {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.timeline-content p {
    color: var(--text-color);
    transition: color 0.3s ease;
}

/* Mission Grid - avec effet de retournement */
.mission-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 40px;
}

.mission-card {
    perspective: 1000px;
    height: 450px;
    border-radius: 15px;
    position: relative;
    width: 30%; /* Environ 3 cartes par ligne avec les espaces */
    min-width: 280px; /* Taille minimale pour la lisibilité */
    margin-bottom: 20px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(150, 238, 200, 0.2);
    animation: missionCardGlow 3s infinite alternate;
    transition: all 0.3s ease;
}

@keyframes missionCardGlow {
    from { box-shadow: 0 0 15px rgba(150, 238, 200, 0.2); }
    to { box-shadow: 0 0 30px rgba(150, 238, 200, 0.4); }
}

[data-theme="light"] @keyframes missionCardGlow {
    from { box-shadow: 0 0 15px rgba(46, 125, 50, 0.15); }
    to { box-shadow: 0 0 30px rgba(46, 125, 50, 0.3); }
}

.mission-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 51, 58, 0.7), rgba(31, 38, 43, 0.7));
    border-radius: 15px;
    z-index: -1;
    transition: background 0.3s ease;
}

[data-theme="light"] .mission-card::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(245, 247, 246, 0.8));
}

[data-theme="light"] .mission-card {
    box-shadow: 0 0 15px rgba(46, 125, 50, 0.15);
}

.mission-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.mission-card-inner.flipped {
    transform: rotateY(180deg);
}

.mission-card-front, .mission-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 13px;
    display: flex;
    flex-direction: column;
    padding: 25px;
    border: 1px solid rgba(150, 238, 200, 0.3);
}

.mission-card-front {
    background: linear-gradient(135deg, rgba(31, 38, 43, 0.95), rgba(50, 73, 78, 0.95));
    justify-content: center;
    align-items: center;
    color: white;
    transition: background 0.3s ease;
}

[data-theme="light"] .mission-card-front {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 246, 0.95));
    color: var(--text-color);
}

.mission-card-front h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: white;
    transition: color 0.3s ease;
}

[data-theme="light"] .mission-card-front h3 {
    color: var(--text-color);
}

.mission-card-back {
    background: linear-gradient(135deg, rgba(31, 38, 43, 0.95), rgba(50, 73, 78, 0.95));
    transform: rotateY(180deg);
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    overflow: hidden;
    transition: background 0.3s ease;
}

[data-theme="light"] .mission-card-back {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 246, 0.95));
    color: var(--text-color);
}

.mission-card-back h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.mission-details {
    padding-right: 0.3rem;
    font-size: 0.9rem;
    height: calc(100% - 60px);
}

.mission-details p, .mission-details ul {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

[data-theme="light"] .mission-details p,
[data-theme="light"] .mission-details ul {
    color: var(--text-color);
}

.mission-details ul {
    padding-left: 15px;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

[data-theme="light"] .mission-details ul {
    color: var(--text-color);
}

.mission-details ul li {
    margin-bottom: 6px;
    color: inherit;
}

.mission-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.mission-brief {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
    height: 80px;
    padding: 0 0.5rem;
    transition: color 0.3s ease;
}

[data-theme="light"] .mission-brief {
    color: var(--text-color);
    opacity: 0.9;
}

.flip-hint {
    bottom: 1rem;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

[data-theme="light"] .flip-hint {
    color: var(--text-color);
    opacity: 0.8;
}

.skill-card:hover .glow-effect {
    opacity: 0.8;
    top: -20px;
    width: 120px;
    height: 120px;
    filter: blur(10px);
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.9;
    }
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(50, 73, 78, 0.8), rgba(31, 38, 43, 0.9));
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(150, 238, 200, 0.2);
    border: 2px solid var(--accent-color);
    transform: translateY(0);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .contact-form {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 246, 0.95));
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1), 0 0 20px rgba(46, 125, 50, 0.15);
    border-color: var(--accent-color);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-gradient);
}

.contact-form:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(150, 238, 200, 0.3);
}

[data-theme="light"] .contact-form:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 30px rgba(46, 125, 50, 0.25);
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 0.5px;
    font-size: 1.1rem;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(150, 238, 200, 0.3);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(46, 125, 50, 0.3);
    color: var(--text-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(150, 238, 200, 0.4);
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(46, 125, 50, 0.3);
    background-color: rgba(255, 255, 255, 1);
}

.form-group:hover label {
    transform: translateY(-3px);
    color: var(--accent-color-light);
}

.submit-btn {
    padding: 16px 36px;
    background: var(--accent-gradient);
    color: var(--primary-color);
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    display: block;
    margin: 10px auto 0;
    box-shadow: 0 8px 25px rgba(150, 238, 200, 0.4);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .submit-btn {
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(150, 238, 200, 0.5);
    letter-spacing: 1.5px;
}

[data-theme="light"] .submit-btn:hover {
    box-shadow: 0 12px 30px rgba(46, 125, 50, 0.4);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn i {
    margin-left: 10px;
    transition: transform 0.4s ease;
}

.submit-btn:hover i {
    transform: translateX(8px);
}

@media (max-width: 768px) {
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-preview img {
        height: 200px;
    }
}

.project-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(20, 30, 48, 0.9), rgba(36, 59, 85, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    transition: background 0.3s ease;
}

[data-theme="light"] .project-placeholder {
    background: linear-gradient(135deg, rgba(245, 247, 246, 0.9), rgba(250, 251, 250, 0.9));
}

.project-placeholder i {
    font-size: 80px;
    color: var(--accent-color);
    opacity: 0.8;
}

.project-placeholder span {
    font-size: 24px;
    color: var(--text-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .project-placeholder {
        height: 200px;
    }
    
    .project-placeholder i {
        font-size: 60px;
    }
    
    .project-placeholder span {
        font-size: 20px;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-preview img {
        height: 200px;
    }
}

.mission-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color-light);
    box-shadow: 0 15px 35px rgba(150, 238, 200, 0.5);
    transition: all 0.4s ease;
}

/* Section profil améliorée */
#profil .profile-content {
    background: linear-gradient(135deg, rgba(31, 38, 43, 0.95), rgba(50, 73, 78, 0.95));
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: 2px solid rgba(150, 238, 200, 0.2);
}

[data-theme="light"] #profil .profile-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 246, 0.95));
    border-color: rgba(46, 125, 50, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

#profil .profile-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
    border-color: var(--accent-color);
}

[data-theme="light"] #profil .profile-content:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

#profil .profile-text {
    position: relative;
    z-index: 1;
}

#profil h3 {
    color: var(--accent-color);
    font-size: 1.8em;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 0.5px;
}

#profil h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
}

#profil p {
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    text-align: justify;
    text-justify: inter-word;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 3px solid var(--accent-color);
    transition: all 0.3s ease;
}

[data-theme="light"] #profil p {
    color: var(--text-color);
    background-color: rgba(46, 125, 50, 0.05);
    border-left-color: var(--accent-color);
}

#profil p:hover {
    background-color: rgba(150, 238, 200, 0.08);
    border-left-color: var(--accent-color-light);
    transform: translateX(5px);
}

[data-theme="light"] #profil p:hover {
    background-color: rgba(46, 125, 50, 0.12);
    border-left-color: var(--accent-color-light);
}

#profil p:last-child {
    margin-bottom: 0;
}

/* Améliorations générales du texte */
p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Améliorations pour les listes */
ul {
    padding-left: 1.8rem;
    margin-bottom: 1.5rem;
}

ul li {
    margin-bottom: 0.8rem;
    position: relative;
}

ul li::before {
    content: "•";
    color: var(--accent-color-light);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Section BTS SIO */
.bts-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.bts-images {
    flex: 1;
    min-width: 350px;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    padding: 10px;
}

.bts-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 4px solid var(--primary-color);
    outline: 1px solid var(--accent-color);
    position: relative;
    transition: all 0.4s ease;
    margin: 5px;
    max-height: 240px;
}

.bts-image:first-child,
.bts-image:nth-child(2),
.bts-image.third-image {
    flex: 1;
    height: calc((100% - 40px) / 3);
}

.bts-image:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color-light);
    z-index: 5;
}

.bts-image img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.6s ease;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.3) contrast(1.1);
}

.bts-image:hover img {
    transform: scale(1.05);
}

.image-credit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.8);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    z-index: 2;
}

.bts-text {
    flex: 2;
    min-width: 300px;
}

.bts-skills, .bts-info {
    background-color: rgba(150, 238, 200, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 3px solid var(--accent-color);
    transition: background-color 0.3s ease;
}

[data-theme="light"] .bts-skills,
[data-theme="light"] .bts-info {
    background-color: rgba(46, 125, 50, 0.08);
}

.bts-skills h4, .bts-info h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.bts-skills ul, .bts-info ul {
    padding-left: 20px;
}

.bts-skills li, .bts-info li {
    margin-bottom: 10px;
    position: relative;
}

.bts-info {
    border-left-color: var(--accent-color-light);
}

.bts-content p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.bts-content h3 {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.bts-text {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.bts-text h3,
.bts-text h4 {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.bts-text ul {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.bts-text li {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.third-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Projets */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-item {
    background: linear-gradient(135deg, rgba(25, 32, 37, 0.95), rgba(40, 58, 62, 0.95));
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
}

[data-theme="light"] .project-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 246, 0.95));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .project-item:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.project-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(150, 238, 200, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    transition: border-color 0.3s ease;
}

[data-theme="light"] .project-header {
    border-bottom-color: rgba(46, 125, 50, 0.3);
}

.project-header h3 {
    font-size: 1.6em;
    margin: 0;
    color: var(--accent-color);
    position: relative;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tag {
    background-color: rgba(150, 238, 200, 0.1);
    color: var(--accent-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    border: 1px solid rgba(150, 238, 200, 0.3);
}

.project-content {
    position: relative;
}

.project-preview {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-preview img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.8);
}

.project-preview:hover img {
    transform: scale(1.03);
    filter: brightness(0.9);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-overlay span {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-preview:hover .project-overlay {
    opacity: 1;
}

.project-preview:hover .project-overlay span {
    transform: translateY(0);
}

.project-details {
    padding: 20px;
    background: linear-gradient(135deg, rgba(20, 30, 48, 0.9), rgba(36, 59, 85, 0.9));
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    margin-top: 10px;
    transition: background 0.3s ease;
}

[data-theme="light"] .project-details {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 246, 0.95));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-details h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.project-details p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

[data-theme="light"] .project-details p {
    color: var(--text-color);
}

.project-details ul {
    padding-left: 20px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

[data-theme="light"] .project-details ul {
    color: var(--text-color);
}

.project-details li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 5px;
    color: inherit;
}

.project-details li::before {
    content: "•";
    color: var(--accent-color);
    display: inline-block;
    margin-right: 10px;
}

.project-features {
    margin: 20px 0;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid var(--accent-color);
    transition: background-color 0.3s ease;
}

[data-theme="light"] .project-features {
    background-color: rgba(46, 125, 50, 0.08);
}

.project-features h4 {
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.project-features ul {
    margin: 0;
    padding-left: 20px;
}

.project-features li {
    margin-bottom: 8px;
}

.project-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.project-actions .btn {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    font-size: 0.9em;
}

[data-theme="light"] .project-actions .btn {
    background-color: var(--accent-color);
    color: #ffffff;
}

.project-actions .btn:hover {
    background-color: var(--secondary-color);
}

[data-theme="light"] .project-actions .btn:hover {
    background-color: var(--accent-color-light);
}

.project-details.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.flip-hint {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    font-size: 0.85rem;
    color: var(--accent-color-light);
    opacity: 0.8;
}

/* Style pour le bouton "En savoir plus" dans la carte sonnerie */
.mission-card-back .learn-more-btn {
    width: 90%;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(150, 238, 200, 0.5);
    letter-spacing: 0.8px;
    background: linear-gradient(135deg, #96eec8, #58be96);
}

.mission-card-back .learn-more-btn:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 8px 25px rgba(150, 238, 200, 0.7);
    letter-spacing: 1px;
}

.mission-category {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin: 50px 0 25px 0;
    padding: 12px 20px;
    border-left: 5px solid var(--accent-color);
    background-color: rgba(150, 238, 200, 0.12);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.skills-container {
    display: block;
    margin-bottom: 30px;
}

.skills-category {
    margin-bottom: 30px;
}

.skills-category h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

.skills-category h3::before {
    content: '';
    position: absolute;
    width: 5px;
    height: 100%;
    left: 0;
    top: 0;
    background: var(--accent-gradient);
    border-radius: 3px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.skill-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.skill-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    object-fit: contain;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

.skill-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

/* Nouvel effet de lueur */
.glow-effect {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--accent-color) 0%, rgba(150, 238, 200, 0) 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.learn-more-btn {
    display: inline-block;
    background: var(--accent-gradient);
    color: var(--primary-color);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(150, 238, 200, 0.2);
    border: none;
    text-align: center;
    font-size: 0.9rem;
}

.learn-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(150, 238, 200, 0.3);
}

.learn-more-btn i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.learn-more-btn:hover i {
    transform: translateX(5px);
}

.mission-card-back .learn-more-btn {
    width: 85%;
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
}

.copyright {
    text-align: center;
    margin: 0 auto;
    padding: 15px 0;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

[data-theme="light"] .copyright {
    color: var(--text-color);
    opacity: 0.7;
}

.bts-image.third-image {
    display: block;
    background-color: transparent;
}

/* Section Certifications */
.certifications-container {
    margin-top: 20px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.certification-card {
    background: linear-gradient(135deg, rgba(31, 38, 43, 0.95), rgba(50, 73, 78, 0.95));
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    border: 2px solid rgba(150, 238, 200, 0.2);
    position: relative;
}

[data-theme="light"] .certification-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 246, 0.95));
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(46, 125, 50, 0.3);
}

.certification-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(150, 238, 200, 0.3);
    border-color: var(--accent-color);
}

[data-theme="light"] .certification-card:hover {
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.25);
    border-color: var(--accent-color);
}

.certification-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: var(--primary-color);
    transition: background-color 0.3s ease;
}

[data-theme="light"] .certification-image-wrapper {
    background-color: var(--bg-color);
}

.certification-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px;
}

[data-theme="light"] .certification-image {
    background-color: rgba(255, 255, 255, 0.8);
}

.certification-card:hover .certification-image {
    transform: scale(1.05);
}

.certification-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(31, 38, 43, 0.7), rgba(31, 38, 43, 0.9));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
}

[data-theme="light"] .certification-overlay {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(245, 247, 246, 0.9));
}

.certification-card:hover .certification-overlay {
    opacity: 1;
}

.certification-view-btn {
    background: var(--accent-gradient);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(150, 238, 200, 0.4);
    transform: translateY(20px);
}

[data-theme="light"] .certification-view-btn {
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

.certification-card:hover .certification-view-btn {
    transform: translateY(0);
}

.certification-view-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(150, 238, 200, 0.6);
}

[data-theme="light"] .certification-view-btn:hover {
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.4);
}

.certification-view-btn i {
    font-size: 1.1em;
}

.certification-info {
    padding: 20px;
    text-align: center;
}

.certification-title {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.certification-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
    transition: color 0.3s ease;
}

[data-theme="light"] .certification-description {
    color: var(--text-color);
    opacity: 0.8;
}

/* Placeholder pour futures certifications */
.certification-placeholder {
    background: linear-gradient(135deg, rgba(31, 38, 43, 0.5), rgba(50, 73, 78, 0.5));
    border: 2px dashed rgba(150, 238, 200, 0.3);
    cursor: default;
    transition: all 0.3s ease;
}

[data-theme="light"] .certification-placeholder {
    background: linear-gradient(135deg, rgba(245, 247, 246, 0.5), rgba(250, 251, 250, 0.5));
    border-color: rgba(46, 125, 50, 0.3);
}

.certification-placeholder:hover {
    border-color: rgba(150, 238, 200, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(150, 238, 200, 0.2);
}

[data-theme="light"] .certification-placeholder:hover {
    border-color: rgba(46, 125, 50, 0.5);
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.15);
}

.certification-placeholder-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 300px;
    padding: 40px 20px;
    color: rgba(150, 238, 200, 0.5);
    transition: color 0.3s ease;
}

[data-theme="light"] .certification-placeholder-content {
    color: rgba(46, 125, 50, 0.5);
}

.certification-placeholder-content i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.6;
}

.certification-placeholder-content p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.7;
}

/* Responsive pour les certifications */
@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .certification-image-wrapper {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .veille-definition {
        flex-direction: column;
        text-align: center;
    }
    
    .veille-definition-icon {
        font-size: 2.5rem;
    }
}

/* Section Veille Technologique - Preview */
.veille-preview {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.veille-definition {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(31, 38, 43, 0.95), rgba(50, 73, 78, 0.95));
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

[data-theme="light"] .veille-definition {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 246, 0.95));
    border-left-color: var(--accent-color);
}

.veille-definition:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-medium);
}

.veille-definition-icon {
    font-size: 3rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.veille-definition-content {
    flex: 1;
}

.veille-definition-content h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.veille-definition-content p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.veille-definition-content p strong {
    color: var(--accent-color);
    font-weight: 600;
}

.veille-action {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(31, 38, 43, 0.95), rgba(50, 73, 78, 0.95));
    border-radius: 15px;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
}

[data-theme="light"] .veille-action {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 246, 0.95));
    border-color: var(--accent-color);
}

.veille-action:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.veille-action-text {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

.veille-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--accent-gradient);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    border: none;
    cursor: pointer;
}

[data-theme="light"] .veille-btn {
    color: #ffffff;
}

.veille-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

.veille-btn i {
    transition: transform 0.3s ease;
}

.veille-btn:hover i {
    transform: translateX(5px);
}

/* Styles pour la page veille.html */
/* Container pour veille.html - pleine largeur comme sonnerie.html */
body.no-sidebar .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}

body.no-sidebar {
    padding: 0;
    margin: 0;
}

.veille-header {
    background: linear-gradient(135deg, rgba(31, 38, 43, 0.95), rgba(50, 73, 78, 0.95));
    padding: 30px 20px;
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
    position: relative;
    transition: background 0.3s ease;
    width: 100%;
}

[data-theme="light"] .veille-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 246, 0.95));
}

.header-content h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.header-content h1 i {
    margin-right: 15px;
}

.header-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.9;
    margin-top: 10px;
}

.back-home-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: var(--accent-gradient);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="light"] .back-home-btn {
    color: #ffffff;
}

.back-home-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.veille-section {
    margin-bottom: 50px;
    background: linear-gradient(135deg, rgba(31, 38, 43, 0.95), rgba(50, 73, 78, 0.95));
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

[data-theme="light"] .veille-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 246, 0.95));
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

.section-title i {
    font-size: 1.8rem;
}

.definition-card {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

[data-theme="light"] .definition-card {
    background: rgba(46, 125, 50, 0.08);
    border-left-color: var(--accent-color);
}

.definition-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-light);
}

.definition-icon {
    font-size: 3rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.definition-content {
    flex: 1;
}

.definition-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

.definition-text strong {
    color: var(--accent-color);
    font-weight: 600;
}

.definition-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.definition-list li {
    padding: 12px 0;
    padding-left: 40px;
    position: relative;
    color: var(--text-color);
    font-size: 1rem;
    border-bottom: 1px solid rgba(150, 238, 200, 0.1);
    transition: all 0.3s ease;
}

[data-theme="light"] .definition-list li {
    border-bottom-color: rgba(46, 125, 50, 0.2);
}

.definition-list li:last-child {
    border-bottom: none;
}

.definition-list li i {
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.definition-list li:hover {
    padding-left: 45px;
    color: var(--accent-color-light);
}

.veille-content {
    margin-top: 30px;
}

.veille-intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    transition: background 0.3s ease;
}

[data-theme="light"] .veille-intro {
    background: rgba(46, 125, 50, 0.05);
}

.veille-icon-large {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

.intro-text strong {
    color: var(--accent-color);
    font-weight: 600;
}

.veille-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.veille-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(150, 238, 200, 0.2);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .veille-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(46, 125, 50, 0.3);
}

.veille-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.veille-card:hover::before {
    transform: scaleX(1);
}

.veille-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.veille-card-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.veille-card:hover .veille-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.veille-card-title {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.veille-card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
}

.veille-why {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

[data-theme="light"] .veille-why {
    background: rgba(46, 125, 50, 0.08);
}

.why-title {
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.why-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

.why-text strong {
    color: var(--accent-color);
}

.why-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.why-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

.why-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.source-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(150, 238, 200, 0.2);
}

[data-theme="light"] .source-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(46, 125, 50, 0.3);
}

.source-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
    border-color: var(--accent-color);
}

.source-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.source-card h3 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.source-card p {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.8;
}

.veille-footer {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--primary-color);
    border-top: 2px solid var(--accent-color);
    margin-top: 50px;
    transition: background-color 0.3s ease;
}

[data-theme="light"] .veille-footer {
    background-color: var(--primary-color);
    border-top-color: var(--accent-color);
}

.back-link {
    display: inline-block;
    margin-bottom: 15px;
    padding: 12px 30px;
    background: var(--accent-gradient);
    color: var(--primary-color);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

[data-theme="light"] .back-link {
    color: #ffffff;
}

.back-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.veille-footer .copyright {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 10px;
    transition: color 0.3s ease, opacity 0.3s ease;
}

[data-theme="light"] .veille-footer .copyright {
    color: var(--text-color);
    opacity: 0.7;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    border: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

[data-theme="light"] .back-to-top {
    color: #ffffff;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-dark);
}

/* Responsive pour veille.html */
@media (max-width: 768px) {
    .veille-header h1 {
        font-size: 2rem;
    }
    
    .back-home-btn {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 20px;
        display: inline-block;
    }
    
    .veille-section {
        padding: 25px;
    }
    
    .definition-card {
        flex-direction: column;
        text-align: center;
    }
    
    .veille-grid,
    .sources-grid {
        grid-template-columns: 1fr;
    }
}