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

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f0f0f0;
    --text-color: #333;
    --light-gray: #f9f9f9;
    --border-color: #e0e0e0;
    --bg-color: #fff;
}

/* Mode sombre - Chrome, Firefox, Safari, Edge */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #4a7ec1;
        --text-color: #e0e0e0;
        --light-gray: #1e1e1e;
        --border-color: #404040;
        --bg-color: #121212;
    }
}

/* Support supplémentaire pour Firefox */
@-moz-document url-prefix() {
    @media (prefers-color-scheme: dark) {
        :root {
            --primary-color: #4a7ec1;
            --text-color: #e0e0e0;
            --light-gray: #1e1e1e;
            --border-color: #404040;
            --bg-color: #121212;
        }
    }
}

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

/* Header avec image héroïque */
.hero {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 90, 160, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    text-align: center;
}

.hero-overlay h1 {
    color: white;
    font-size: 3em;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.hero-phone {
    color: white;
    font-size: 1.8em;
    font-weight: 500;
    margin: 20px 0 0 0;
    padding: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Force la couleur blanche pour les liens téléphone sur mobile */
.hero-phone a {
    color: white !important;
    text-decoration: none;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section de présentation */
.presentation {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.presentation h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
}

.presentation-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color);
}

.presentation-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.presentation-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.5em;
}

.presentation-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.presentation-content li {
    margin-bottom: 8px;
}

/* Qualifications section */
.qualifications {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.qualifications h2 {
    font-size: 2em;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.qualifications-list {
    list-style: none;
    margin-left: 0;
}

.qualifications-list li {
    padding-left: 25px;
    margin-bottom: 12px;
    position: relative;
    font-size: 1.05em;
}

.qualifications-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
}

/* Pricing section */
.pricing-info {
    margin-top: 50px;
    padding: 30px;
    background-color: var(--light-gray);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--text-color);
}

.pricing-info h2 {
    font-size: 2em;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.pricing-content p {
    font-size: 1.2em;
    margin-bottom: 15px;
    text-align: center;
    color: var(--text-color);
}

.pricing-content strong {
    color: var(--primary-color);
    font-size: 1.3em;
}

.deployment-zone {
    font-style: italic;
    color: var(--text-color);
    font-size: 1em;
    margin-top: 20px;
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 0;
}

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

.linkedin-icon {
    color: white;
    text-decoration: none;
    display: inline-block;
    font-size: 2em;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-top: 15px;
}

.linkedin-icon:hover {
    transform: scale(1.2);
    color: #0a66c2;
}

/* Main content */
main {
    min-height: calc(100vh - 500px);
}

/* Bouton Remonter vers le haut */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.scroll-to-top:hover {
    background-color: #1d3a5c;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-overlay h1 {
        font-size: 2em;
    }

    .presentation h2 {
        font-size: 2em;
    }

    .presentation-content {
        font-size: 1em;
    }

    .hero {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-overlay h1 {
        font-size: 1.5em;
    }

    .presentation h2 {
        font-size: 1.5em;
    }

    .presentation {
        padding: 30px 0;
    }

    .linkedin-link {
        margin-top: 15px;
    }
}
