/* Import Google Fonts - Montserrat and Poppins */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-blue: #2563eb; /* Un bleu plus vif pour les accents */
    --secondary-green: #10b981; /* Un vert pour d'autres accents */
    --text-dark: #1f2937; /* Texte sombre */
    --text-light-gray: #4b5563; /* Texte gris clair */
    --bg-light: #f9fafb; /* Fond clair général */
    --border-color: #e5e7eb; /* Couleur de bordure */
    --header-bg: #ffffff; /* Fond blanc pour le header */
    --shadow-light: rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Poppins', sans-serif; /* Poppins pour le corps de texte, plus moderne */
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px; /* Un peu plus large pour le nouveau design */
    margin: auto;
    padding: 0 20px;
}

/* --- Header Nouveau Style --- */
.new-header {
    background: var(--header-bg);
    padding: 20px 0;
    box-shadow: 0 2px 10px var(--shadow-light);
    position: sticky; /* Rendre le header collant */
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.new-header .logo {
    font-family: 'Montserrat', sans-serif; /* Montserrat pour le logo */
    font-weight: 800; /* Plus gras */
    font-size: 28px;
    color: var(--text-dark);
}

.new-header .logo-highlight {
    color: var(--primary-blue); /* Couleur bleue pour le .FRI */
}

.new-header nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px; /* Espacement entre les liens */
}

.new-header nav ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.new-header nav ul li a:hover {
    color: var(--primary-blue);
}

.btn-recruter {
    background-color: var(--primary-blue);
    color: #fff !important; /* !important pour surcharger la règle de base des liens */
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-recruter:hover {
    background-color: #1e55cc; /* Bleu légèrement plus foncé */
    transform: translateY(-2px);
}

/* --- Section Hero Nouveau Style --- */
.hero-section {
    background-color: var(--bg-light);
    padding: 80px 0;
    min-height: calc(100vh - 100px); /* Ajuster pour la hauteur du header */
    display: flex;
    align-items: center;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Le texte prend un peu plus de place */
    gap: 50px;
    align-items: center;
}

.hero-left {
    text-align: left;
}

.tag-expertise {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-light-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.expertise-dot {
    font-size: 0.6em; /* Taille du point */
    color: var(--primary-blue); /* Couleur du point */
    margin-right: 8px;
}

.hero-left h1 {
    font-family: 'Montserrat', sans-serif; /* Montserrat pour le titre H1 */
    font-weight: 800;
    font-size: 3.5em; /* Grande taille */
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.hero-left h1 .highlight-blue {
    color: var(--primary-blue);
}

.hero-left h1 .highlight-green { /* Pas dans le design mais utile si tu veux l'utiliser */
    color: var(--secondary-green);
}

.hero-intro {
    font-size: 1.1em;
    color: var(--text-light-gray);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #1e55cc;
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-light-gray);
    font-size: 20px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    background-color: #e0f2fe; /* Couleur de fond derrière l'image */
    padding: 30px; /* Padding pour l'effet de bordure */
    border-radius: 20px; /* Coins arrondis */
    position: relative;
    box-shadow: 0 10px 30px var(--shadow-light);
    transform: rotate(5deg); /* Rotation subtile */
    width: 100%; /* S'adapte à la largeur de la colonne */
    height: auto;
    aspect-ratio: 1 / 1; /* Rendre le wrapper carré si tu veux (optionnel) */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-image {
    max-width: 80%;
    height: auto;
    border-radius: 15px; /* Coins arrondis pour l'image */
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: rotate(-5deg); /* Contre-rotation pour l'image */
}

/* --- Styles Généraux pour les autres pages --- */
.page-content {
    padding-top: 40px;
    background: #fff;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 30px;
    border-radius: 8px; /* Plus d'arrondis */
    box-shadow: 0 5px 15px var(--shadow-light);
}

section {
    margin-bottom: 40px;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.2em;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 10px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

/* --- Timeline (Parcours) --- */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-blue);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.timeline-item h3 {
    margin-top: 0;
    color: var(--primary-blue);
}

.timeline-item p strong {
    font-weight: 600;
}

/* --- Skills Grid (Expertises) --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-light);
}

.skill-category h4 {
    margin-top: 0;
    color: var(--primary-blue);
    font-size: 1.3em;
    font-weight: 600;
}

.qualities-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.qualities-list li {
    background: var(--primary-blue);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

/* --- Portfolio Grid (Projets et Solutions) --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.project-image {
    width: 100%;
    height: 180px; /* Hauteur fixe pour les images */
    object-fit: cover; /* Recadre les images pour remplir l'espace sans les déformer */
    display: block;
    background-color: #e0e0e0;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
}

.project-card h3 {
    padding: 0 20px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primary-blue);
    font-weight: 600;
}

.project-description {
    padding: 0 20px;
    flex-grow: 1;
    color: var(--text-light-gray);
}

.project-tech {
    padding: 0 20px 20px 20px;
    font-size: 0.9em;
    color: var(--text-light-gray);
}

.project-tech strong {
    font-weight: 600;
}

/* Style commun pour les CTA buttons sur les pages intérieures (Projets, Solutions) */
.cta-button {
    display: inline-block;
    background: var(--primary-blue);
    color: #fff;
    padding: 10px 18px; /* Ajustement du padding */
    text-decoration: none;
    border-radius: 5px; /* Légèrement moins arrondi que le hero-button */
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 15px; /* Pour un peu d'espace au-dessus */
}

.cta-button:hover {
    background: #1e55cc;
}

/* Style spécifique pour les boutons dans les project-cards */
.project-card .cta-button {
    margin: 0 20px 20px 20px;
    align-self: flex-start;
}

.section-note {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    color: var(--text-light-gray);
}

/* --- Partnership Page --- */
.partnership-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.option-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-light);
    text-align: center;
}

.option-card h3 {
    color: var(--primary-blue);
    margin-top: 0;
    font-weight: 600;
}

.option-card ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left; /* Aligner les listes à gauche */
}

.option-card ul li {
    background: #e0f2fe; /* Fond bleu très clair */
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: 5px;
    font-size: 0.95em;
    color: var(--text-dark);
}

.call-to-action-partnership {
    text-align: center;
    margin-top: 40px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-dark);
}

.call-to-action-partnership a {
    color: var(--primary-blue);
    text-decoration: none;
}

.call-to-action-partnership a:hover {
    text-decoration: underline;
}

/* --- Contact Page --- */
.contact-flex-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-form-container {
    flex: 2;
    min-width: 300px;
}

.contact-info-container {
    flex: 1;
    min-width: 250px;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
}

.contact-info-container h4 {
    margin-top: 0;
    color: var(--primary-blue);
    font-weight: 600;
}
.contact-info-container p {
    color: var(--text-light-gray);
}
.contact-info-container a {
    color: var(--primary-blue);
    text-decoration: none;
}
.contact-info-container a:hover {
    text-decoration: underline;
}

/* --- Scroll to top button --- */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-blue);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 24px;
    transition: background-color 0.3s, transform 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#scrollToTopBtn:hover {
    background-color: #1e55cc;
    transform: scale(1.1);
}

/* --- Responsive adjustments --- */
@media (max-width: 992px) {
    .hero-layout {
        grid-template-columns: 1fr; /* Une seule colonne sur tablettes */
        text-align: center;
    }
    .hero-left {
        text-align: center;
    }
    .tag-expertise {
        justify-content: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-left h1 {
        font-size: 3em;
    }
    .hero-intro {
        font-size: 1em;
    }
    .hero-image-wrapper {
        transform: none; /* Supprimer la rotation sur mobile */
        max-width: 80%; /* Réduire la taille de l'image wrapper */
        margin: 40px auto 0;
    }
    .hero-main-image {
        transform: none; /* Supprimer la contre-rotation */
    }
}

@media (max-width: 768px) {
    .new-header .header-content {
        flex-direction: column;
    }
    .new-header nav ul {
        margin-top: 15px;
        flex-direction: column;
        gap: 15px;
    }
    .new-header nav ul li a {
        font-size: 15px;
    }
    .hero-left h1 {
        font-size: 2.5em;
    }
    .hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .social-links {
        justify-content: center;
    }
    .page-content {
        padding: 20px;
    }
    h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .new-header .logo {
        font-size: 24px;
    }
    .new-header nav ul li a {
        font-size: 14px;
    }
    .hero-left h1 {
        font-size: 2em;
    }
    .hero-intro {
        font-size: 1em;
    }
    .hero-button {
        width: 100%;
    }
}