/* ===================================
   STYLES GÉNÉRAUX & VARIABLES
   =================================== */

:root {
    --primary-color: #1a3a52;
    --secondary-color: #2e5f8f;
    --accent-color: #d4af37;
    --dark-bg: #0f1f2e;
    --light-bg: #f5f7fa;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --border-color: #bdc3c7;
    --success-color: #27ae60;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo .tagline {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 500;
    margin-top: 2px;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* ===================================
   SECTION HERO
   =================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 15px;
    opacity: 0.95;
}

/* ===================================
   BOUTONS
   =================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
    cursor: pointer;
    margin-top: 10px;
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

/* ===================================
   SECTION PROFIL
   =================================== */

.profil {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.profil h2,
.experience h2,
.competences h2,
.formation h2,
.langues h2,
.references h2,
.contact h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.profil h2::after,
.experience h2::after,
.competences h2::after,
.formation h2::after,
.langues h2::after,
.references h2::after,
.contact h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.profil-card {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.profil-info p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.8;
}

.profil-info strong {
    color: var(--secondary-color);
}

.profil-description h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 22px;
}

.profil-description p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
    color: #555;
}

/* ===================================
   SECTION EXPÉRIENCE - TIMELINE
   =================================== */

.experience {
    padding: 80px 0;
    background-color: white;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background-color: var(--accent-color);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-date {
    text-align: right;
    padding-right: 50%;
    margin-right: 20px;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 50%;
    padding-left: 40px;
}

.timeline-item:nth-child(even) .timeline-date {
    text-align: left;
    padding-left: 50%;
    margin-left: 20px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 50%;
    padding-right: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: 4px solid white;
    top: 20px;
    z-index: 1;
}

.timeline-date {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.timeline-content {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 5px;
}

.timeline-content .company {
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: #555;
}

.timeline-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ===================================
   SECTION COMPÉTENCES
   =================================== */

.competences {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.competences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.competence-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.competence-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.competence-card ul {
    list-style: none;
}

.competence-card li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: #555;
}

.competence-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.certification-section {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.certification-section h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 22px;
}

.certifications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.cert {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    background-color: var(--light-bg);
    border-radius: 5px;
}

.cert-badge {
    color: var(--success-color);
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.cert span:last-child {
    color: #555;
}

/* ===================================
   SECTION FORMATION
   =================================== */

.formation {
    padding: 80px 0;
    background-color: white;
}

.formation-items {
    margin-bottom: 60px;
}

.formation-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.formation-item:last-child {
    border-bottom: none;
}

.formation-year {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 14px;
}

.formation-details h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 18px;
}

.formation-details .school {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.formation-details .description {
    color: #555;
    font-size: 14px;
}

.training-section {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 8px;
}

.training-section h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 22px;
}

.training-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.training-list li {
    padding: 15px;
    background: white;
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
    color: #555;
    font-size: 14px;
}

/* ===================================
   SECTION LANGUES
   =================================== */

.langues {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.langues h2 {
    margin-bottom: 50px;
}

.langues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.langue-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.langue-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 20px;
}

.langue-item .niveau {
    color: var(--secondary-color);
    font-weight: 500;
}

/* ===================================
   SECTION RÉFÉRENCES
   =================================== */

.references {
    padding: 80px 0;
    background-color: white;
}

.references h2 {
    margin-bottom: 20px;
}

.intro-text {
    text-align: center;
    color: #999;
    font-style: italic;
    margin-bottom: 40px;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.reference-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.reference-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.reference-card ul {
    list-style: none;
}

.reference-card li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: #555;
}

.reference-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* ===================================
   SECTION CONTACT
   =================================== */

.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.contact h2 {
    color: white;
}

.contact h2::after {
    background-color: var(--accent-color);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-item {
    text-align: center;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 14px;
    line-height: 1.8;
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form-section h3 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 24px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 5px var(--accent-color);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
}

.footer p {
    margin-bottom: 15px;
}

.footer-links {
    margin-top: 20px;
    font-size: 12px;
}

.footer-links a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .profil-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        text-align: left;
        padding-left: 70px;
        margin-left: 0;
        margin-right: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
        margin-right: 0;
        padding-left: 70px;
        padding-right: 0;
    }

    .timeline-item::before {
        left: 14px;
    }

    .formation-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .competences-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 28px !important;
    }
}

@media (max-width: 480px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 14px;
    }

    .certifications {
        grid-template-columns: 1fr;
    }

    .training-list {
        grid-template-columns: 1fr;
    }

    .profil h2,
    .experience h2,
    .competences h2,
    .formation h2,
    .langues h2,
    .references h2,
    .contact h2 {
        font-size: 24px;
    }
}
