/* ========================================
   CSS Variables & Reset
======================================== */
:root {
    --primary-color: #0077b6;
    --primary-dark: #023e8a;
    --primary-light: #00b4d8;
    --secondary-color: #00a896;
    --accent-color: #0077b6;
    --text-dark: #1a1a2e;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #0077b6, #00b4d8);
    --gradient-dark: linear-gradient(135deg, #023e8a, #0077b6);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ========================================
   Navigation
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
}

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

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

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* ========================================
   Hero Section
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="water" patternUnits="userSpaceOnUse" width="100" height="100"><path d="M0 50 Q 25 30 50 50 T 100 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></pattern></defs><rect fill="url(%23water)" width="100" height="100"/></svg>');
    background-size: 100px 100px;
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% { background-position: 0 0; }
    100% { background-position: 100px 0; }
}

.hero-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.profile-image {
    margin-bottom: 30px;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.profile-photo:hover {
    transform: scale(1.05);
    border-color: var(--primary-light);
}

.image-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 4px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(5px);
}

.image-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

.image-placeholder span {
    font-size: 0.8rem;
    margin-top: 10px;
    opacity: 0.8;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--primary-light);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-subtitle i {
    margin-right: 8px;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge i {
    margin-right: 8px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.btn-full {
    width: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-7px); }
}

/* ========================================
   Sections
======================================== */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-title i {
    color: var(--primary-color);
    margin-right: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

/* ========================================
   About Section
======================================== */
.about {
    background: var(--bg-white);
}

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

.about-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.about-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.about-icon i {
    font-size: 2rem;
    color: white;
}

.about-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

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

.about-card ul {
    text-align: left;
}

.about-card ul li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
}

.about-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ========================================
   SIG Section
======================================== */
.sig-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.module-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.module-card:hover {
    box-shadow: var(--shadow-lg);
}

.module-header {
    background: var(--gradient-primary);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.module-number {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    color: white;
}

.module-header h3 {
    color: white;
    font-size: 1.4rem;
}

.module-header h3 i {
    margin-right: 10px;
}

.module-content {
    padding: 30px;
}

.module-section {
    margin-bottom: 30px;
}

.module-section:last-child {
    margin-bottom: 0;
}

.module-section h4 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-section h4 i {
    color: var(--primary-color);
}

.module-section ul {
    margin-bottom: 20px;
}

.module-section ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.module-section ul li:last-child {
    border-bottom: none;
}

.module-section ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.module-image {
    margin-top: 20px;
}

.module-image .image-placeholder {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    background: linear-gradient(135deg, #e0f2fe, #b3e5fc);
    border: 2px dashed var(--primary-light);
}

.module-image .image-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
}

.module-image .image-placeholder span {
    font-size: 1rem;
    color: var(--primary-dark);
}

.grid-2cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.functions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.function-card {
    background: var(--bg-light);
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.function-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

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

.function-card h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.function-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.data-category {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.data-category h5 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.data-category h5 i {
    margin-right: 8px;
}

.data-category ul li {
    padding: 8px 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.software-badges {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.sw-badge {
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sw-badge.arcgis {
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    color: white;
}

.sw-badge.qgis {
    background: linear-gradient(135deg, #54a0ff, #2e86de);
    color: white;
}

/* ========================================
   Automatismes Section
======================================== */
.automatisme-section {
    background: var(--bg-white);
}

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

.auto-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.auto-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.auto-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.auto-icon i {
    font-size: 2.5rem;
    color: white;
}

.auto-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.auto-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.auto-card ul {
    text-align: left;
}

.auto-card ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

.auto-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.auto-diagram {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
}

.auto-diagram h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.auto-diagram h3 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.diagram-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.flow-item {
    background: var(--bg-white);
    padding: 25px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    min-width: 150px;
    transition: var(--transition);
}

.flow-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.flow-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

.flow-item span {
    font-weight: 600;
    color: var(--text-dark);
}

.flow-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* ========================================
   Skills Section
======================================== */
.skills-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

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

.skill-category {
    background: var(--bg-white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h3 i {
    color: var(--primary-color);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: grid;
    grid-template-columns: 150px 1fr 80px;
    align-items: center;
    gap: 15px;
}

.skill-name {
    font-weight: 500;
    color: var(--text-dark);
}

.skill-bar {
    height: 10px;
    background: var(--bg-light);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 5px;
    transition: width 1s ease;
}

.skill-level {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    text-align: right;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.software-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.software-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.software-item i {
    font-size: 2rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

.software-item span {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* ========================================
   Contact Section
======================================== */
.contact-section {
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-details p {
    color: var(--text-light);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--gradient-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand i {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.footer-brand span {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-brand p {
    opacity: 0.8;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links ul a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
    opacity: 0.8;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 992px) {
    .grid-2cols,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .functions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

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

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

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

    .diagram-flow {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .skill-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .software-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .module-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
