/* Importation des polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Variables CSS pour les couleurs et autres valeurs réutilisables */
:root {
    --primary-color: #0e71b4;       /* Bleu CADECOM (d'après la carte de visite) */
    --secondary-color: #e41e26;     /* Rouge CADECOM (d'après la carte de visite) */
    --accent-color: #0e71b4;        /* Bleu comme accent */
    --dark-color: #1a2a3a;          /* Bleu très foncé presque noir */
    --light-color: #f8f9fa;         /* Gris très clair */
    --text-color: #333;             /* Couleur de texte principale */
    --text-light: #6c757d;          /* Couleur de texte secondaire */
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

/* Réinitialisation et styles de base */
*, *::before, *::after {
    box-sizing: border-box;
}

body, h1, h2, h3, p, ul, li, a {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

body {
    background-color: var(--light-color);
    font-size: 16px;
    overflow-x: hidden;
}

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

/* Header moderne avec navigation fixe */
header {
    background: var(--white);
    color: var(--dark-color);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
}

header .logo-container {
    display: flex;
    align-items: center;
}

header #logo-cadecom {
    height: 52px;
    transition: var(--transition);
    max-width: 100%; /* Assure que le logo ne dépasse pas son conteneur */
}

header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

header nav ul li {
    margin: 0 4px;
}

/* Language Switcher */
.language-switcher {
    margin-left: 10px;
}

.language-switcher .dropdown-toggle {
    display: flex;
    align-items: center;
    padding: 5px 8px;
    font-size: 13px;
}

.language-switcher .dropdown-toggle i {
    margin-right: 4px;
    font-size: 14px;
}

header nav a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 13.5px;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

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

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

header nav a:hover::after {
    width: 100%;
}

/* Styles pour le menu déroulant */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 12px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 13px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(14, 113, 180, 0.1);
    color: var(--primary-color);
}

/* Section Hero (Accueil) moderne avec dégradé */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.hero h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.8s ease-out forwards;
}

.hero .slogan {
    font-size: 22px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    display: inline-block;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

/* Ajustements responsives pour la section hero */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 60px;
    }

    .hero h2 {
        font-size: 32px;
        padding: 0 15px;
    }

    .hero .slogan {
        font-size: 18px;
        padding: 8px 15px;
        margin-bottom: 30px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0 40px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero .slogan {
        font-size: 16px;
        padding: 8px 12px;
        margin-bottom: 25px;
    }
}

.hero .btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: var(--border-radius);
    margin: 0 10px 10px;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow);
}

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

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

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.hero .quick-links {
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Ajustements responsives pour les boutons */
@media (max-width: 768px) {
    .hero .btn {
        padding: 10px 20px;
        font-size: 14px;
        margin: 5px;
        width: 80%;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .hero .btn {
        padding: 10px 15px;
        font-size: 13px;
        width: 90%;
        margin: 5px 0;
    }
}

/* Sections Générales */
section {
    padding: 80px 0;
    position: relative;
}

section:nth-child(even) {
    background-color: var(--white);
}

section:nth-child(odd) {
    background-color: var(--light-color);
}

section .section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

section h3 {
    margin: 30px 0 20px;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
}

section p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
}

/* Ajustements responsives pour les sections générales */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    section .section-title {
        margin-bottom: 40px;
    }

    section h2 {
        font-size: 30px;
    }

    section h2::after {
        width: 60px;
        height: 2px;
        bottom: -8px;
    }

    section h3 {
        font-size: 20px;
        margin: 25px 0 15px;
    }

    section p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 0;
    }

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

    section h2 {
        font-size: 26px;
    }

    section h2::after {
        width: 50px;
        bottom: -6px;
    }

    section h3 {
        font-size: 18px;
        margin: 20px 0 12px;
    }

    section p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .container {
        padding: 0 15px;
    }
}

#logo-zeicat-section {
    display: block;
    margin: 0 auto 30px;
    max-width: 300px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

#logo-zeicat-section:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.hero img {
    display: block;
    margin: 30px auto;
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeInScaleUp 0.8s ease-out 0.6s forwards;
}

.hero img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Ajustements responsives pour les images dans la section hero */
@media (max-width: 768px) {
    .hero img {
        margin: 20px auto;
        max-width: 90%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero img {
        margin: 15px auto;
        max-width: 95%;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    }

    .hero img:hover {
        transform: scale(1.01); /* Réduire l'effet de survol sur mobile */
    }
}

/* Équipe Dirigeante */
.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.member {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    width: calc(33.333% - 30px);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-photo {
    width: 120px; /* Adjust size as needed */
    height: 120px; /* Adjust size as needed */
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    margin-bottom: 15px;
    border: 3px solid var(--primary-color); /* Optional: adds a border */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Optional: adds a subtle shadow */
}

.member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
}

.member h4 {
    color: var(--dark-color);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.member p {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--text-light);
}

.member p strong {
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

/* Ajustement pour tablettes et mobiles pour la section équipe */
@media(max-width: 992px) {
    .member {
        width: calc(50% - 30px);
    }
}

@media(max-width: 768px) {
    .member {
        width: 100%;
    }
}

/* Footer moderne */
footer {
    background: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 50px 0 30px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-size: 15px;
}

footer .social-links {
    margin: 20px 0;
}

footer .social-links a {
    display: inline-block;
    margin: 0 10px;
    color: var(--white);
    font-size: 20px;
    transition: var(--transition);
}

footer .social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Ajustements responsives pour le footer */
@media (max-width: 768px) {
    footer {
        padding: 40px 0 25px;
    }

    footer p {
        font-size: 14px;
        margin-bottom: 8px;
    }

    footer .social-links {
        margin: 15px 0;
    }

    footer .social-links a {
        margin: 0 8px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 30px 0 20px;
    }

    footer::before {
        height: 3px;
    }

    footer p {
        font-size: 13px;
        margin-bottom: 6px;
    }

    footer .social-links {
        margin: 12px 0;
    }

    footer .social-links a {
        margin: 0 6px;
        font-size: 16px;
    }
}

/* Keyframes for Hero Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Menu mobile et responsive */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--primary-color);
    transition: var(--transition);
    padding: 5px;
    margin-left: 10px;
    z-index: 1001; /* S'assurer que le bouton est toujours visible */
}

.mobile-menu-toggle.active {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

/* Styles pour les partenaires */
.partners-list {
    margin: 20px 0;
    padding-left: 20px;
}

.partners-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Styles pour la signature du président */
.signature {
    font-style: italic;
    text-align: right;
    margin-top: 15px;
    color: var(--text-light);
}

/* Styles pour les adresses */
.addresses {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.address {
    flex: 1;
    min-width: 250px;
    padding: 15px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.address h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

@media(max-width: 992px) {
    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 32px;
    }

    .addresses {
        flex-direction: column;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Réduire la taille du logo sur tablette */
    header #logo-cadecom {
        height: 45px; /* Réduction de la taille du logo */
    }

    header nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        transition: var(--transition);
        box-shadow: var(--shadow);
        z-index: 999;
    }

    header nav.active {
        left: 0;
    }

    header nav ul {
        flex-direction: column;
        padding: 20px 0;
    }

    header nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    /* Styles pour les menus déroulants sur mobile */
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        margin: 0;
        padding: 0;
    }

    .dropdown-menu.active {
        opacity: 1;
        visibility: visible;
        max-height: 200px;
        padding: 10px 0;
        margin: 10px 0;
        background-color: rgba(14, 113, 180, 0.05);
        border-radius: var(--border-radius);
    }

    section {
        padding: 50px 0;
    }

    section h2 {
        font-size: 28px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero .slogan {
        font-size: 18px;
    }

    .hero .btn {
        display: block;
        margin: 10px auto;
        max-width: 80%;
    }
}

/* Styles pour les sections "À propos" */
.about-sections {
    margin: 40px 0;
}

.about-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.about-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.section-header i {
    font-size: 28px;
    color: var(--primary-color);
    margin-right: 15px;
    min-width: 40px;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.about-section p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
    padding-left: 55px;
}

/* Ajustements responsives pour les sections "À propos" */
@media (max-width: 992px) {
    .about-sections {
        margin: 30px 0;
    }

    .about-section {
        margin-bottom: 35px;
        padding-bottom: 25px;
    }

    .section-header h3 {
        font-size: 22px;
    }

    .section-header i {
        font-size: 26px;
        margin-right: 12px;
        min-width: 38px;
    }

    .about-section p {
        font-size: 15px;
        padding-left: 50px;
    }
}

@media (max-width: 768px) {
    .about-sections {
        margin: 25px 0;
    }

    .about-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .section-header i {
        margin-right: 0;
        margin-bottom: 8px;
        font-size: 24px;
    }

    .section-header h3 {
        font-size: 20px;
    }

    .about-section p {
        font-size: 15px;
        padding-left: 0;
        line-height: 1.6;
    }
}

.president-message {
    background-color: var(--light-color);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 20px 0 40px;
    font-style: italic;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Ajustements responsives pour le message du président */
@media (max-width: 768px) {
    .president-message {
        padding: 15px;
        margin: 15px 0 30px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .president-message {
        padding: 12px;
        margin: 12px 0 25px;
        font-size: 14px;
        border-left: 3px solid var(--primary-color);
    }
}

.partners {
    margin-top: 20px;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* Distributes space around logos */
    align-items: center;
    gap: 20px; /* Space between logos */
    margin-top: 20px;
    padding: 10px 0; /* Add some padding */
    border-top: 1px solid #eee; /* Optional: a light separator line */
    border-bottom: 1px solid #eee; /* Optional: a light separator line */
}

.partners-logos img {
    max-height: 60px;  /* Slightly increased max height */
    max-width: 150px; /* Slightly reduced max width for more logos */
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease; /* Smooth transition for hover effect */
}

.partners-logos img:hover {
    transform: scale(1.1); /* Slight zoom on hover */
}

/* Ajustements responsives pour les logos des partenaires */
@media (max-width: 768px) {
    .partners-logos {
        gap: 15px;
        padding: 8px 0;
    }

    .partners-logos img {
        max-height: 50px;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .partners-logos {
        gap: 10px;
        justify-content: center;
    }

    .partners-logos img {
        max-height: 40px;
        max-width: 100px;
        margin: 5px;
    }

    .partners-logos img:hover {
        transform: scale(1.05); /* Réduire l'effet de survol sur mobile */
    }
}

/* Styles pour le projet ZEICAT */
.project-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}

.feature {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.timeline {
    margin: 50px 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-items {
    position: relative;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
    width: 50%;
    padding: 0 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-content {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.impact-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.impact {
    flex: 1;
    min-width: 250px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.impact:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.impact i {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Styles pour les actualités */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.news-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 200px;
    background-color: var(--light-color);
    position: relative;
}

.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 14px;
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.news-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Ajustements responsives pour les actualités */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        margin: 30px 0;
    }

    .news-image {
        height: 180px;
    }

    .news-date {
        top: 10px;
        right: 10px;
        font-size: 13px;
        padding: 4px 8px;
    }

    .news-content {
        padding: 15px;
    }

    .news-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .news-excerpt {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .news-item:hover {
        transform: translateY(-5px); /* Réduire l'effet de survol sur mobile */
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur très petits écrans */
        gap: 15px;
        margin: 20px 0;
    }

    .news-image {
        height: 160px;
    }

    .news-content {
        padding: 12px;
    }

    .news-title {
        font-size: 15px;
    }

    .news-excerpt {
        font-size: 13px;
    }
}

/* Styles pour le formulaire de contact */
.contact-form {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin: 40px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info {
    margin-top: 40px;
}

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

.contact-icon {
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 3px;
}

.contact-details {
    flex: 1;
}

.contact-details h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

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

/* Styles pour le menu mobile et responsive supplémentaires */
@media(max-width: 768px) {
    /* Réduire davantage la taille du logo sur smartphone */
    header #logo-cadecom {
        height: 38px; /* Réduction plus importante pour les smartphones */
    }

    /* Ajuster la hauteur du header pour les smartphones */
    header {
        padding: 15px 0;
    }

    header.scrolled {
        padding: 8px 0;
    }

    /* Améliorer l'espacement dans le header sur mobile */
    header .logo-container {
        flex: 1;
    }

    header .header-content {
        padding: 0 5px;
    }

    /* Ajuster la position du menu mobile */
    header nav {
        top: 70px; /* Réduire pour correspondre à la hauteur du header plus petite */
        height: calc(100vh - 70px);
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: left;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-dot {
        left: 12px;
        right: auto;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: 12px;
    }

    .project-features,
    .about-cards {
        flex-direction: column;
    }

    .feature,
    .about-card {
        min-width: 100%;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Styles pour la section Contact améliorée */
#contact .container h2 { /* Cibler spécifiquement le h2 de la section contact */
    text-align: left; /* Aligner le titre principal à gauche */
    margin-bottom: 20px;
}

#contact .container h2::after { /* Ajuster le pseudo-élément pour le titre à gauche */
    left: 0;
    transform: translateX(0);
    width: 60px; /* Réduire un peu la largeur du soulignement */
}

#contact .container > p { /* Paragraphe d'introduction */
    margin-bottom: 30px;
    font-size: 1.1em;
    color: var(--text-light);
}

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

.contact-column {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Styles pour les colonnes de contenu */
.content-columns {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.content-column {
    flex: 1;
}

/* Ajustements responsives pour les colonnes de contenu et grilles de contact */
@media (max-width: 768px) {
    .content-columns {
        flex-direction: column;
        gap: 20px;
        margin: 20px 0;
    }

    .content-column {
        width: 100%;
    }

    .contact-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .contact-column {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .content-columns {
        gap: 15px;
        margin: 15px 0;
    }

    .contact-details-grid {
        gap: 15px;
        margin-bottom: 25px;
    }

    .contact-column {
        padding: 15px;
    }
}

.contact-column h3, .contact-column h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-column p {
    margin-bottom: 10px;
    line-height: 1.7;
}

.contact-column a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-column a:hover {
    text-decoration: underline;
}

/* Styles pour le formulaire de contact dans la page contact.php */
#contact-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 30px; /* Ajouté pour espacer du titre "Formulaire de Contact" */
}

#contact-form .form-group {
    margin-bottom: 20px;
}

#contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: var(--transition);
    background-color: #fdfdfd; /* Léger fond pour les champs */
}

#contact-form input[type="text"]:focus,
#contact-form input[type="email"]:focus,
#contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 113, 180, 0.2); /* Utilisation de la couleur primaire */
}

#contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

#contact-form .btn { /* Style générique pour les boutons, s'il existe */
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

#contact-form .btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Ajustements responsives pour le formulaire de contact */
@media (max-width: 768px) {
    #contact-form {
        padding: 20px;
        margin-top: 25px;
    }

    #contact-form .form-group {
        margin-bottom: 15px;
    }

    #contact-form label {
        margin-bottom: 6px;
        font-size: 15px;
    }

    #contact-form input[type="text"],
    #contact-form input[type="email"],
    #contact-form textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    #contact-form textarea {
        min-height: 100px;
    }

    #contact-form .btn {
        padding: 10px 20px;
        width: 100%;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #contact-form {
        padding: 15px;
        margin-top: 20px;
    }

    #contact-form input[type="text"],
    #contact-form input[type="email"] {
        padding: 8px 10px;
        font-size: 13px;
    }

    #contact-form textarea {
        min-height: 80px;
    }
}

/* Styles pour les messages de statut du formulaire */
#form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
}

#form-status.success {
    background-color: #d4edda; /* Vert clair pour succès */
    color: #155724; /* Texte vert foncé */
    border: 1px solid #c3e6cb;
}

#form-status.error {
    background-color: #f8d7da; /* Rouge clair pour erreur */
    color: #721c24; /* Texte rouge foncé */
    border: 1px solid #f5c6cb;
}

/* Emails et Réseaux Sociaux sections */
#contact .container h3 { /* Cibler les h3 pour "Emails Généraux" et "Réseaux Sociaux" */
    margin-top: 40px; /* Plus d'espace au-dessus */
}

/* Style pour le bandeau dégradé sur les pages spécifiques */
.page-hero-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    height: 150px;
    display: flex; /* Pour centrer le contenu verticalement */
    align-items: center; /* Pour centrer le contenu verticalement */
    justify-content: flex-start; /* Aligner le contenu du container à gauche */
    text-align: left; /* Aligner le texte à gauche */
    position: relative;
    overflow: hidden;
    padding: 20px 0; /* Ajout d'un padding vertical pour le contenu */
}

.page-hero-gradient h1,
.page-hero-gradient h2,
.page-hero-gradient p {
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-hero-gradient h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 38px; /* Ajustable */
    font-weight: 700;
    margin-bottom: 10px; /* Réduit pour rapprocher le sous-titre */
}

.page-hero-gradient p {
    font-size: 18px; /* Ajustable */
    max-width: 800px; /* Peut être ajusté si besoin */
    margin-left: 0; /* Assure l'alignement à gauche */
    margin-right: 0; /* Assure l'alignement à gauche */
}

/* Styles pour les images de projet en ligne */
.inline-project-image {
    display: block; /* Pour permettre le centrage avec margin auto */
    max-width: 600px; /* Limite la largeur maximale de l'image */
    width: 100%; /* S'assure que l'image est responsive et ne dépasse pas son conteneur */
    height: auto; /* Maintient le ratio de l'image */
    margin: 25px auto; /* Marge verticale et centrage horizontal */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.inline-project-image:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Ajustements pour les écrans plus petits si nécessaire */
@media (max-width: 768px) {
    .inline-project-image {
        max-width: 90%; /* Permet à l'image d'être un peu plus large sur mobile */
        margin: 20px auto;
    }
}

/* Ajustements pour les très petits écrans */
@media (max-width: 480px) {
    /* Réduire encore plus la taille du logo sur les très petits écrans */
    header #logo-cadecom {
        height: 32px; /* Taille encore plus petite pour les très petits écrans */
    }

    /* Ajuster davantage le header pour les très petits écrans */
    header {
        padding: 12px 0;
    }

    header.scrolled {
        padding: 6px 0;
    }

    /* Améliorer l'espacement dans le header sur très petits écrans */
    header .mobile-menu-toggle {
        font-size: 22px; /* Légèrement plus petit pour les très petits écrans */
    }

    header .container {
        width: 95%; /* Utiliser plus d'espace horizontal */
        padding: 0 10px;
    }

    /* Ajuster la position du menu mobile */
    header nav {
        top: 60px; /* Réduire pour correspondre à la hauteur du header plus petite */
        height: calc(100vh - 60px);
    }
}

/* Styles pour image flottante à droite, taille réduite */
.image-float-right-half {
    float: right;
    max-width: 300px; /* Environ la moitié de 600px, ou ajustez selon le besoin */
    /* width: 50%; */ /* Alternativement, par rapport au parent, mais peut être trop grand */
    margin: 0 0 10px 20px !important; /* Priorité pour écraser le margin: auto de .inline-project-image. Marge en haut, à droite, en bas, à gauche */
}

/* Ajustements responsives pour les images flottantes */
@media (max-width: 768px) {
    .image-float-right-half {
        max-width: 250px;
        margin: 0 0 10px 15px !important;
    }
}

@media (max-width: 480px) {
    .image-float-right-half {
        float: none;
        max-width: 100%;
        margin: 15px auto !important;
        display: block;
    }
}

/* Clearfix pour les conteneurs si le flottant cause des problèmes de layout avec les éléments suivants */
/* Peut être appliqué au parent de l'image flottante ou à un élément suivant si nécessaire */
/* Exemple: .text-block::after { content: ""; clear: both; display: table; } */
/* Pour l'instant, on suppose que le flux de paragraphe normal gérera cela. */
