/* styles.css */

:root {
    --primary: #1a5276;
    --primary-dark: #144260;
    --secondary: #d4ac0d;
    --accent: #e74c3c;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --transition: all 0.3s ease;
}

* {
    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(--dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 28px;
    margin-bottom: 0;
    color: var(--primary);
}

.logo span {
    font-size: 12px;
    color: var(--gray);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

nav ul li a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    color: white;
    background: 
        linear-gradient(135deg, rgba(26, 82, 118, 0.8), rgba(20, 66, 96, 0.8)),
        url('fond.jpg') center/cover no-repeat;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--secondary);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 400px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    color: var(--secondary);
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--gray);
    font-size: 18px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(26, 82, 118, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray);
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 17px;
}

.about-features {
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature i {
    color: var(--secondary);
    margin-right: 10px;
    font-size: 18px;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--light);
    border-radius: 8px;
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.stat h3 {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat p {
    color: var(--gray);
    font-weight: 500;
}

/* Team Section */
.team {
    padding: 100px 0;
    background-color: var(--light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.member-photo {
    height: 200px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--primary);
}

.team-member h3 {
    margin-top: 20px;
    margin-bottom: 5px;
}

.position {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 15px;
}

.team-member p {
    padding: 0 20px 20px;
    color: var(--gray);
}

/* SECTION EXPERTISE UNIFIÉE ET CORRIGÉE */
.two-columns {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.member-left {
    flex: 0 0 350px;
    text-align: center;
}

.member-photo-big {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    object-fit: cover;
}

.member-photo-big:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* NOM - CORRECTION POUR ÉVITER LES COUPURES */
.member-name {
    margin-top: 15px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    word-break: keep-all;
    white-space: normal;
    text-align: center;
    padding: 0 10px;
}

.member-position {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 5px;
    text-align: center;
}

.team-text {
    flex: 1;
    min-width: 300px;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: left;
}

/* CORRECTION SPÉCIFIQUE POUR LE TEXTE - EMPÊCHE LES COUPURES INCORRECTES */
.team-text p {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    margin-bottom: 1.2rem;
    text-align: justify;
    text-justify: inter-word;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--primary);
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background-color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-form {
    flex: 1;
    background-color: var(--light);
    padding: 40px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26, 82, 118, 0.2);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 70px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    transition: var(--transition);
    opacity: 0.8;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--secondary);
    padding-left: 5px;
}

.footer-col p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: 'Open Sans', sans-serif;
}

.newsletter-form button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: #b8940a;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    opacity: 0.7;
}

/* Section Clients */
.clients {
    padding: 60px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.clients-title {
    font-size: 34px;
    color: var(--primary);
    margin-bottom: 100px;
}

/* Slider */
.clients-slider {
    overflow: hidden;
    position: relative;
}

.slide-track {
    display: flex;
    width: calc(250px * 16 * 2);
    animation: scroll 30s linear infinite;
}

.slide {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.slide img {
    max-height: 120px;
    object-fit: contain;
}

/* Animation défilement */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50%)); }
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    /* SECTION EXPERTISE - Tablette */
    .two-columns {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .member-left {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
    }
    
    .team-text {
        width: 100%;
        min-width: auto;
    }
    
    .member-name {
        font-size: 1.6rem;
    }
    
    .member-position {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .team {
        padding: 60px 0;
    }
    
    .two-columns {
        gap: 25px;
        margin-top: 30px;
    }
    
    .member-photo-big {
        max-width: 250px;
    }
    
    .member-name {
        font-size: 1.4rem;
        padding: 0;
        word-break: keep-all;
        white-space: normal;
    }
    
    .member-position {
        font-size: 1.1rem;
    }
    
    .team-text {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .team-text p {
        hyphens: none;
        word-break: normal;
        text-align: left;
    }
    
    /* Navigation mobile */
    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0 0 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    /* Section Clients mobile */
    .slide img {
        max-height: 40px;
    }
    
    .slide {
        width: 180px;
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 28px;
    }
    
    .service-card, .contact-form {
        padding: 30px 20px;
    }
    
    .image-placeholder {
        width: 100%;
        height: 250px;
        font-size: 70px;
    }
    
    /* SECTION EXPERTISE - Très petit mobile */
    .member-photo-big {
        max-width: 220px;
    }
    
    .member-name {
        font-size: 1.3rem;
    }
    
    .team-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* CORRECTION FINALE POUR LES MOTS COUPÉS */
    .team-text p {
        word-break: keep-all;
        overflow-wrap: break-word;
        hyphens: none;
        letter-spacing: 0.1px;
        word-spacing: 0.5px;
    }
}
