/* General Styles & Reset */
:root {
    --transition: all 0.3s ease;
    /* Couleurs par défaut */
    --text-primary: #1a1f36;
    --text-secondary: #4a5568;
    --text-tertiary: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #edf2f7;
    --border-color: #e2e8f0;
    
    /* Ombres */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

* {
    font-family: 'Inria Sans', sans-serif;
    font-style: normal;
    transition: all .4s;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
}

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

.section {
    padding: 100px 0;
}

.section-title, .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2, .section-header h2 {
    font-size: 2.5rem; /* ~40px */
    margin-bottom: 16px;
    /* La couleur est définie dans les fichiers spécifiques */
}

.section-title p, .section-header p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Utilitaires */
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-secondary); }
.bg-gray { background-color: var(--bg-tertiary); }

/* Boutons Globaux */
.cta-button-large {
    background: linear-gradient(135deg, #049fd9, #8a2be2);
    color: white;
    padding: 16px 48px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(4, 159, 217, 0.3);
}

/* --- Why Choose Us Section (Global) --- */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.why-us-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.why-us-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color, #049fd9);
}

.why-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    color: var(--primary-color, #049fd9);
}

.why-us-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.why-us-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Student Projects Section (Global) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.project-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-tertiary);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.project-tag {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

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

.project-techs span {
    background: var(--bg-tertiary);
    color: var(--primary-color, #049fd9);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'IBM Plex Mono', monospace;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

/* --- Contact Form Styles (Global) --- */
.contact-section { background: var(--bg-secondary); }

.contact-form { max-width: 800px; margin: 0 auto; background: white; padding: 40px; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-group { margin-bottom: 24px; position: relative; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-secondary); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 16px; font-family: 'Space Grotesk', sans-serif; transition: border-color 0.3s, box-shadow 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color, #049fd9); box-shadow: 0 0 0 3px rgba(4, 159, 217, 0.1); }
.form-group.invalid input, .form-group.invalid select { border-color: #e53e3e; }
.error-message { color: #e53e3e; font-size: 13px; margin-top: 6px; display: none; min-height: 1em; }
.form-group.invalid .error-message { display: block; }

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form { padding: 24px; }
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none; /* Permet de cliquer à travers le conteneur */
}

.toast {
    background: white;
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid var(--primary-color, #049fd9);
    pointer-events: auto;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-left-color: #00b894; }
.toast.error { border-left-color: #ff7675; }
.toast.info { border-left-color: #0984e3; }

.toast-icon { font-size: 1.4rem; flex-shrink: 0; }
.toast.success .toast-icon { color: #00b894; }
.toast.error .toast-icon { color: #ff7675; }
.toast.info .toast-icon { color: #0984e3; }

.toast-content { flex-grow: 1; }
.toast-message { font-size: 0.95rem; font-weight: 500; line-height: 1.4; display: block; }