/* Variables CSS */
:root {
    --primary-color: #100ea6;
    --secondary-color: #e57373;
    --text-color: #333;
    --background-color: #f9f9f9;
    --font-family: 'Arial', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Navigation Bar styles */
.navbar {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    animation: slideDown 0.5s ease-in-out;
}

#accueil {
    background-color: #787cd1; 
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
}

.nav-links {
    list-style: none;
    display: flex;
    transition: max-height 0.3s ease-in-out;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

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

/* Bouton de menu pour mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: url('img/hero-background.jpg') no-repeat center center/cover;
    color: black;
    text-align: center;
    padding: 10px 20px; 
    position: relative;
    animation: fadeIn 1s ease-in-out;
}

.hero-content {
    background-color: #dff1f6;
    padding: 20px;
    border-radius: 8px;
    display: inline-block;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-in-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 0;
    animation: fadeInUp 1s ease-in-out;
    
}

/* Services Section */
.services {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column; /* Dispose les éléments en colonne */
    justify-content: center;
    align-items: center; /* Centre le contenu horizontalement */
    padding: 30px 20px;
    animation: fadeIn 1s ease-in-out;
}

.service-content {
    width: 100%; /* Texte prend toute la largeur disponible */
    padding-right: 0;
    box-sizing: border-box;
    margin-bottom: 20px; /* Espace entre le texte et l'image */
}

.service-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.service-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
}

.service-image {
    text-align: center;
    margin-bottom: 20px;
}

.service-image img {
    width: 600px; /* Largeur de l'image */
    height: auto; /* Hauteur ajustée automatiquement */
    animation: zoomIn 1s ease-in-out;
    border-radius: 8px;
}

.services .button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s;
    display: inline-block;
    margin: 20px 0;
}

.services .button:hover {
    background-color: #354495;
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Styles pour la section des prix */
.pricing-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #f9f9f9;
    animation: fadeIn 1s ease-in-out;
}

.pricing-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.card {
    background-color: white;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: zoomIn 0.5s ease-in-out;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.best-value {
    background-color: #e0f7fa;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.card .price {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.card p {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #555;
}

.card .button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s;
    display: inline-block;
    margin: 20px 0;
}

.card .button:hover {
    background-color: #354495;
}

.card ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.card ul li {
    margin: 10px 0;
    font-size: 1rem;
    color: #333;
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Styles pour la section contact */
.contact-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #f9f9f9;
    animation: fadeIn 1s ease-in-out;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

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

.contact-form button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.contact-form button:hover {
    background-color: #354495;
}

.message {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.message.success {
    color: green;
}

.message.error {
    color: red;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* Header styles */
.header {
    background-color: var(--primary-color);
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 1s ease-in-out;
}

.header h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-in-out;
}

.header p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-in-out;
}

.header .button {
    background-color: #2e8ba8;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s;
    animation: fadeInUp 1s ease-in-out;
}

.header .button:hover {
    background-color: #45accc;
}

/* Section styles */
.section {
    padding: 60px 20px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeIn 1s ease-in-out;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section p {
    font-size: 1.1rem;
    margin: 10px 0;
    line-height: 1.8;
}


/* Section Equipe */
.section.equipe {
    display: flex;
    flex-wrap: nowrap;
    background-color: #a1d5e5; 
    padding: 60px 20px;
    align-items: center;
    justify-content: center;
}

.contenu-equipe {
    flex: 1 1 50%;
    padding-right: 20px;
    box-sizing: border-box;
}

.image-equipe {
    flex: 1 1 50%;
    text-align: center;
}

.image-equipe img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    transition: opacity 0.3s;
}

.image-equipe img:hover {
    opacity: 0.8;
}

/* Assurez-vous que les images ont les mêmes dimensions */
.image-equipe img, .contenu-equipe img {
    width: 100%;
    max-width: 400px; /* Ajustez cette valeur si nécessaire */
    height: auto;
}



/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        position: absolute;
        background-color: var(--primary-color);
        top: 70px;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        background-color: var(--primary-color);
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
    }

    .nav-links.active {
        max-height: 300px;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    .section.equipe {
        flex-direction: column;
    }

    .contenu-equipe, .image-equipe {
        flex: 1 1 100%;
        padding: 0;
        margin-bottom: 20px;
    }

    .contenu-equipe {
        order: 2;
    }

    .image-equipe {
        order: 1;
    }

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

    .service-content, .service-image {
        flex: 1 1 100%;
        padding: 0;
        margin-bottom: 40px;
    }

    .service-content {
        text-align: center;
        padding: 0 20px;
    }

    .service-content p {
        text-align: center;
    }


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

    .card {
        width: 100%;
        max-width: 350px;
    }

    .contact-form {
        padding: 0 20px;
    }
}

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

    .header p {
        font-size: 1rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .section p {
        font-size: 1rem;
    }
}

/* Responsive Styles pour la page "Qui sommes-nous ?" */
@media (max-width: 768px) {


    /* Ajustements pour la section Hero */
    .hero {
        padding: 30px 10px;
    }

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

    .hero p {
        font-size: 1rem;
    }

    /* Ajustements pour la section Services */
    .services {
        padding: 20px 10px;
    }

    .service-content h3 {
        font-size: 2rem;
    }

    .service-content p {
        font-size: 1rem;
    }

    .service-image img {
        max-width: 100%;
    }

    .services .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 10px 15px;
    }

    .logo img {
        height: 40px;
    }

    .menu-toggle {
        font-size: 1.2rem;
    }

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

    .hero p {
        font-size: 0.9rem;
    }

    .service-content h3 {
        font-size: 1.8rem;
    }

    .service-content p {
        font-size: 0.9rem;
    }

    .services .button {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

}



/* Style de la page Services */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin: 20px 0;
    animation: fadeIn 1s ease-in-out;
}

.services {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

/* Styles pour les cartes de service */
.service-card {
    text-align: center;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, opacity 0.3s;
    opacity: 0;
    transform: translateY(50px);
}

.animated.service-card {
    transform: translateY(0);
    opacity: 1;
}

/* Animation de hover appliquée en priorité */
.service-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Couleurs distinctes pour chaque carte */
.communication {
    background-color: #787cd1; 
}

.public-affairs {
    background-color: #a0cad8; 
}

.legal-services {
    background-color: #3f77c1;
}

.service-card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #ffffff;
}

/* Bouton Contact */
.contact-button {
    background-color: #ffffff;
    color: var(--primary-color);
    padding: 12px 25px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
    margin: 20px 0;
}

.contact-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.service-card:hover .contact-button {
    transform: scale(1.1) !important; /* Animation de hover prioritaire */
}

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

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

[data-animation="fade-in-up"] {
    animation: fadeInUp 0.7s ease-in-out forwards;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .service-card {
        width: 90%;
        padding: 20px;
    }

    .service-card h2 {
        font-size: 1.5rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .contact-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .service-card {
        width: 100%;
    }

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

    .service-card h2 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 0.8rem;
    }
}




/* Styles de base pour le footer */
.footer {
    background-color: #0e1217;
    color: #e0e0e0;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    flex-wrap: wrap; /* Ajout pour rendre le footer responsive */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
}

/* Section gauche du footer */
.footer-left {
    flex: 1;
    padding: 20px;
    text-align: left;
}

.footer-left h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-left p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #b0b0b0;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.social-icons a img:hover {
    transform: scale(1.2);
}

/* Section droite du footer */
.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap; /* Gère la disposition sur petits écrans */
}

.contact-card {
    background-color: #1a1d23;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    width: 300px; /* Définit une largeur fixe pour la carte */
    overflow: hidden; /* Empêche le débordement du contenu */
    text-align: center; /* Centre le texte */
    margin: 10px; /* Ajoute de l'espace autour */
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center; /* Centre le contenu */
    gap: 10px; /* Espace entre l'icône et le texte */
}

.contact-info img {
    width: 30px;
    margin-right: 15px;
    fill: #ffffff;
}

/* Limiter la largeur du texte */
.contact-info p {
    font-size: 1rem;
    color: #ffffff;
    word-wrap: break-word; /* Coupe le texte qui dépasse */
    overflow: hidden;
    text-overflow: ellipsis; /* Ajoute des points de suspension si le texte est trop long */
}

/* Effet au survol */
.contact-card:hover {
    transform: translateY(-5px);
    background-color: #24262b; /* Change la couleur de fond au survol */
}

.contact-card:hover .contact-info p,
.contact-card:hover .contact-info img {
    color: #ffffff; /* Garde le texte en blanc au survol */
    fill: #ffffff;
}

/* Responsiveness : Adaptation pour tablettes */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; /* Réorganise la disposition en colonne */
        text-align: center;
        padding: 20px;
    }

    .footer-left {
        margin-bottom: 20px; /* Ajout d'espacement entre les sections */
    }

    .footer-right {
        justify-content: center;
    }

    .contact-card {
        width: 80%; /* Largeur plus grande pour les tablettes */
        margin: 10px auto;
    }
}

/* Responsiveness : Adaptation pour mobiles */
@media (max-width: 480px) {
    .footer-left h2 {
        font-size: 1.5rem; /* Réduction de la taille des titres */
    }

    .footer-left p {
        font-size: 0.9rem;
    }

    .contact-info p {
        font-size: 0.9rem;
    }

    .contact-card {
        width: 90%; /* Largeur maximale sur mobile */
    }

    .social-icons {
        justify-content: center;
    }

    .social-icons a img {
        width: 25px;
        height: 25px;
    }
}