/*
Theme Name: HDDX Pro Portfolio
Theme URI: https://hddx.fr
Author: Ahmad HADDAR
Author URI: https://hddx.fr
Description: Portfolio professionnel multi-pages pour administrateur cloud
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hddx-pro
*/

/* ===== VARIABLES COULEURS ===== */
:root {
    /* Palette Premium Tech */
    --bg-primary: #0a0e1a;        /* Noir profond */
    --bg-secondary: #111827;      /* Gris très foncé */
    --bg-tertiary: #1f2937;       /* Gris foncé */
    --accent-primary: #00d4ff;    /* Cyan brillant */
    --accent-secondary: #ff6b35;  /* Orange accent */
    --accent-purple: #7c3aed;     /* Violet */
    --text-primary: #f1f5f9;      /* Blanc cassé */
    --text-secondary: #cbd5e1;    /* Gris clair */
    --text-tertiary: #94a3b8;     /* Gris moyen */
    --border-color: #334155;
    --success: #10b981;
    
    /* Aliases */
    --primary-blue: #00d4ff;
    --primary-dark: #00a8cc;
    --primary-light: #26e5ff;
    --text-dark: #f1f5f9;
    --text-light: #94a3b8;
    --bg-light: #1f2937;
    --bg-white: #0a0e1a;
}

/* ===== RESET ET BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-blue), 0 5px 15px rgba(0, 212, 255, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* ===== NAVBAR/HEADER ===== */
header {
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.95), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-blue);    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-svg {
    width: 120px;
    height: 60px;
    filter: drop-shadow(0 4px 15px rgba(0, 212, 255, 0.2));
    transition: all 0.3s ease;
}

.logo-svg:hover {
    filter: drop-shadow(0 8px 25px rgba(0, 212, 255, 0.4));}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-menu a {
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-blue);
}

.nav-menu a.active {
    color: var(--accent-blue);
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 5px;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #0a0e1a 0%, #111827 25%, #1f2937 50%, #111827 75%, #0a0e1a 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
    color: white;
    padding: 150px 2rem;
    text-align: center;
    margin-bottom: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: white;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    font-size: 1rem;
    padding: 12px 30px;
}

/* ===== POPUPS SECTION ===== */
.popups-container {
    padding: 80px 2rem;
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.5), rgba(31, 41, 55, 0.3));
    position: relative;
}

.popups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.popup-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.95));
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: popupEnter 0.6s ease-out backwards;
}

.popup-card:nth-child(1) {
    animation-delay: 0.1s;
}

.popup-card:nth-child(2) {
    animation-delay: 0.3s;
}

.popup-card:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes popupEnter {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-card:hover {
    transform: translateY(-15px);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.popup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.popup-card:hover::before {
    left: 100%;
}

.popup-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(124, 58, 237, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.popup-icon i {
    font-size: 1.8rem;
    color: var(--accent-primary);
}

.popup-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.popup-card p {
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.popup-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn-sm {
    padding: 8px 20px !important;
    font-size: 0.9rem !important;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 80px 2rem;
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.3), rgba(10, 14, 26, 0.5));
}

.about-section h2 {
    color: var(--accent-primary);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    color: var(--text-tertiary);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text a {
    color: var(--accent-primary);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.9));
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(0, 212, 255, 0.6);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.15);
}

.stat-card h4 {
    color: var(--accent-primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.page-content {
    padding: 60px 2rem;
}

.page-title {
    color: var(--accent-blue);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent-blue);
}

/* ===== TIMELINE / ITEMS ===== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8), rgba(17, 24, 39, 0.8));
    backdrop-filter: blur(10px);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.timeline-item:hover::before {
    left: 100%;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.25);
}

.timeline-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.timeline-subtitle {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-tertiary);
    line-height: 1.7;
}

.timeline-subtitle {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-light);
    line-height: 1.7;
}

.timeline-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    display: inline-block;
    background-color: var(--bg-secondary);
    color: var(--accent-blue);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--accent-blue);
}

/* ===== GRILLE PROJETS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.project-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.9));
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card h3 {
    color: var(--text-primary);
}

.project-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.2);
}

.project-card:hover::after {
    opacity: 1;
}

.project-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-tertiary);
    line-height: 1.7;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* ===== FORMATION CARDS ===== */
.formation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.formation-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.9));
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border-top: 4px solid var(--accent-primary);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.formation-card h4 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.formation-card p {
    color: var(--text-tertiary);
}

.formation-school {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.formation-period {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.formation-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== CERTIFICATIONS GRID ===== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cert-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.9));
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.cert-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.15);
}

.cert-card i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.cert-card h4 {
    color: var(--text-primary);
}

.cert-card h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.cert-issuer {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cert-date {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.98), rgba(5, 7, 13, 0.98));
    color: white;
    padding: 3rem 2rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero {
        padding: 60px 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .projects-grid,
    .formation-grid,
    .cert-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGE FORMATION SPÉCIFIQUE ===== */
.page-template-default.page-formation,
[class*="formation"] body {
    background: #0a0e1a !important;
}

.page-template-default .formation-grid {
    grid-template-columns: 1fr !important;
}

.page-template-default .formation-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.95)) !important;
    border-left: 5px solid #00d4ff !important;
    border-radius: 8px !important;
    padding: 28px !important;
}

.page-template-default .formation-header {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.page-template-default .formation-logo {
    flex-shrink: 0;
}

.page-template-default .esgi-logo {
    width: 100px;
    height: 100px;
}

.page-template-default .formation-school-name {
    font-size: 1.3rem;
    color: #00d4ff;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}
