/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2980b9; /* Bleu plus foncé pour meilleur contraste */
    --secondary-color: #1a242f; /* Plus foncé pour meilleur contraste */
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333333; /* Plus foncé pour meilleur lisibilité */
    --text-light: #ffffff;
    --background-color: #f9f9f9;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 5px;
    --container-width: 1200px;
    --focus-color: #f39c12; /* Orange pour les éléments focus */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    text-decoration: underline; /* Renforcer la visibilité des liens */
    color: var(--primary-color);
    transition: var(--transition);
}

nav a, .footer-links a, .btn {
    text-decoration: none; /* Exception pour ces liens */
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--primary-color);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white; /* Assurez un contraste suffisant */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Améliore la perception de l'interactivité */
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Header */
header {
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

nav {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
}

.menu li {
    margin-left: 20px;
}

.menu a {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 5px 10px;
    border-radius: var(--border-radius);
}

.menu a:hover, .menu a.active {
    color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.1);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.9)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.9)), url('images/header-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 60px 0;
    text-align: center;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form, .contact-info {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form h3, .contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
}

.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.info-item {
    display: flex;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    min-width: 30px;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

/* Map Section */
.map-section {
    padding: 40px 0 80px;
}

.map-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-align: center;
}

.map {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--light-color);
}

.contact-intro {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0 20px;
}

footer a {
    color: #85c1e9; /* Bleu clair avec meilleur contraste sur fond foncé */
}

footer a:hover, footer a:focus {
    color: white;
}

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

/* On peut supprimer ou commenter les styles liés aux réseaux sociaux qui ne sont plus utilisés */
/*
.social-media {
    margin-top: 30px;
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

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

.social-icons .icon {
    color: white;
}
*/

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-links h3, .footer-contact h3, .footer-social h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-contact h3::after, .footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-contact .icon-wrapper {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Styles pour les icônes SVG */
.icon {
    color: var(--primary-color);
    stroke-width: 2;
    vertical-align: middle;
    /* Assurez-vous que les icônes ne transmettent pas d'information cruciale */
}

.service-card .icon {
    display: block;
    margin: 0 auto 20px;
    color: var(--primary-color);
    width: 64px;
    height: 64px;
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    min-width: 30px;
}

.hamburger .icon {
    color: var(--secondary-color);
}

.hamburger .icon-close {
    display: none;
}

.hamburger.active .icon-menu {
    display: none;
}

.hamburger.active .icon-close {
    display: block;
}

/* Améliorations pour l'accessibilité */
*:focus {
    outline: 3px solid var(--focus-color);
    outline-offset: 2px;
}

/* Skip link pour naviguer au clavier */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--secondary-color);
    color: white;
    padding: 8px;
    z-index: 1000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* Media Queries */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .menu {
        position: fixed;
        top: 80px;
        left: -100%;
        background-color: var(--light-color);
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 30px;
        transition: var(--transition);
    }
    
    .menu.active {
        left: 0;
    }
    
    .menu li {
        margin: 15px 0;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* Support des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Ajout de styles pour les logos cliquables */
.logo a {
    text-decoration: none;
    color: inherit;
}

.logo a:hover h1,
.logo a:hover h2,
.footer-logo a:hover h2 {
    color: var(--primary-color);
}

/* Améliorations pour la page de confidentialité */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.privacy-section {
    margin-bottom: 2.5rem;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.privacy-section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.privacy-section p {
    margin-bottom: 1.5rem;
}

.privacy-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.privacy-section ul li {
    margin-bottom: 0.75rem;
    list-style-type: disc;
}

.content-section {
    padding: 3rem 0;
    background-color: var(--background-color);
}
