/* ==================== RESET ET BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3a67a9;
    --secondary-color: #2c2929;
    --accent-color: #000000;
    --text-color: #333;
    --bg-color: #dddddd;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==================== SÉLECTEUR DE LANGUE ==================== */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    display: flex;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--secondary-color);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.lang-btn:hover,
.lang-btn.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ==================== HEADER ==================== */
header {
    position: relative;
    color: white;
    padding: 2rem 0;
    text-align: center;
    background-image: url('https://images.unsplash.com/photo-1511795409834-ef04bbd61622');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(58, 103, 169, 0.8);
    z-index: 1;
}

header .container {
    position: relative;
    z-index: 2;
}

.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.logo-image {
    width: 180px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
}

/* ==================== NAVIGATION ==================== */
nav {
    background-color: var(--secondary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li {
    position: relative;
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

nav ul li a:hover,
.nav-link.active {
    color: var(--primary-color);
}

.dropdown {
    position: relative;
}

.dropbtn::after {
    content: '\25BC';
    font-size: 0.7em;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropbtn.active::after {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 4px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ==================== SYSTÈME DE PAGES ==================== */
.page {
    display: none;
    padding: 4rem 0;
}

.page.active {
    display: block;
}

.page-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-content p {
    margin-bottom: 1rem;
}

/* ==================== SECTIONS PRINCIPALES ==================== */
section {
    padding: 4rem 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--secondary-color);
}

h3 {
    font-size: 1.8rem;
    margin: 1.5rem 0;
    color: var(--secondary-color);
}

#accueil .page-content p {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 1.1rem;
}

/* ==================== SECTION ME CONNAÎTRE ==================== */
.about-content-with-image {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.about-image-container {
    position: sticky;
    top: 2rem;
}

.about-portrait {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-portrait:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.about-text-container p {
    margin-bottom: 1rem;
}

.about-text-container h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* ==================== SECTIONS SPÉCIFIQUES ==================== */
#accueil .presentation,
.about-me {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.name-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.name-link:hover {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

/* ==================== PAGES DE SERVICES ==================== */
.service-page {
    min-height: 100vh;
}

.back-btn-container {
    margin-bottom: 2rem;
}

.back-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.service-intro {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.service-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

.service-categories {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 4rem;
}

.service-category-detail {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-bottom: 3rem;
}

.service-category-detail:hover {
    transform: translateY(-5px);
}

.category-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-header i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.category-header h3 {
    margin: 0;
    font-size: 1.8rem;
    color: white;
}

.category-content {
    padding: 2rem;
}

.category-content h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.category-content h4:first-child {
    margin-top: 0;
}

.category-content ul {
    list-style: none;
    padding-left: 0;
}

.category-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.category-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.methodology {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.method-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.method-step {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: transform 0.3s ease;
}

.method-step:hover {
    transform: translateY(-3px);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

/* ==================== GALERIE ==================== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.gallery-overlay p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.view-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-btn:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
}

.gallery-item.hidden {
    display: none;
}

/* ==================== SECTION CONTACT ==================== */
.contact-bar {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 2rem 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 50%;
    min-width: 3.8rem;
    height: 3.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.contact-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-info p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    color: white;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ==================== FOOTER MODERNE ==================== */
.modern-footer {
    background: linear-gradient(135deg, #2c2929 0%, #1a1818 100%);
    color: #ffffff;
    padding: 3rem 0 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: #d4af37;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #3a67a9;
}

.labels-container {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.footer-links .logo-image {
    width: 100px;
}

.footer-contact .contact-item {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-contact .contact-item i {
    color: #3a67a9;
    font-size: 1.1rem;
    margin-top: 0.2rem;
    min-width: 20px;
    background: none;
    padding: 0;
    height: auto;
}

.footer-social {
    margin-top: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social .social-icon {
    width: 45px;
    height: 45px;
    border: 2px solid transparent;
}

.footer-social .social-icon:hover {
    border-color: #d4af37;
    box-shadow: 0 5px 15px rgba(58, 103, 169, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 2rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #3a67a9;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #d4af37;
}

.footer-legal-links .separator {
    color: rgba(255, 255, 255, 0.4);
}

/* ==================== RESPONSIVE ==================== */

/* Tablettes et petits écrans */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-header {
        padding: 1.5rem;
    }
    
    .category-header h3 {
        font-size: 1.5rem;
    }
}

/* Smartphones et petits écrans */
@media (max-width: 768px) {
    /* Header responsive */
    .logo-image {
        width: 150px;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    /* Navigation responsive */
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.3rem 0;
    }
    
    /* Section Me connaître - MODIFICATION PRINCIPALE */
    .about-content-with-image {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        gap: 2rem;
    }
    
    .about-image-container {
        position: relative; /* Plus de sticky sur mobile */
        top: auto;
        max-width: 300px;
        margin: 0 auto; /* Centrer l'image */
    }
    
    .about-portrait {
        width: 100%;
    }
    
    /* Contact responsive */
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-info {
        text-align: center;
    }
    
    /* Espacement général */
    .container {
        padding: 0 0.5rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .page-content,
    .service-intro,
    .category-content,
    .methodology {
        padding: 1rem;
    }
    
    .back-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Galerie responsive */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    /* Contact grid responsive */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-bar {
        padding: 2rem 1rem;
    }
    
    /* Langue switcher responsive */
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 6px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    /* Filtres galerie responsive */
    .gallery-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Service categories responsive */
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .category-header i {
        font-size: 2rem;
    }
    
    .method-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Footer responsive */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links h3::after,
    .footer-contact h3::after,
    .footer-social h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact .contact-item {
        justify-content: center;
        text-align: left;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .modern-footer {
        padding: 2rem 0 0;
    }
    
    .labels-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links .logo-image {
        width: 80px;
    }
}

/* Très petits écrans */
@media (max-width: 576px) {
    .logo-image {
        width: 120px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-legal-links .separator {
        display: none;
    }
}