/* ============================================
   VARIABLES & RESET
   ============================================ */

:root {
    --primary-color: #1A237E;
    --secondary-color: #C62828;
    --light-color: #FFFFFF;
    --dark-bg: #0D1B4C;
    --light-bg: #F5F5F5;
    --text-color: #000;
    --border-color: #DDD;
    --transition: all 0.3s ease;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden; /* évite le défilement horizontal inattendu */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

h4 {
    font-size: 1.2rem;
    color: var(--text-color);
}

p {
    color: var(--text-color);
    font-size: 1rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 35px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: #A01D1D;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-contact-nav {
    background-color: var(--secondary-color) !important;
    color: var(--light-color) !important;
    padding: 8px 20px;
    border-radius: 5px;
}

.btn-contact-nav:hover {
    background-color: #A01D1D !important;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    background-color: var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
}

.logo-image {
    width: 320px;
    height: 110px;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 5px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.3rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logo-text h1 {
    font-size: 1.2rem;
    color: var(--light-color);
    margin: 0;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--secondary-color);
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light-color);
    cursor: pointer;
    font-size: 1.5rem;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    background-color: var(--light-bg);
    padding: 15px 20px;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-color);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: url('../images/Hero_al-kawthar-service.png') center/cover no-repeat;
    color: var(--light-color);
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(6, 20, 45, 0.65), rgba(6, 20, 45, 0.35)),
        radial-gradient(circle at 20% 50%, rgba(198, 40, 40, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(198, 40, 40, 0.08) 0%, transparent 45%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: 600;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   HERO PAGES (About, Services, Gallery)
   ============================================ */

.about-hero, .services-hero, .gallery-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2E3B8D 100%);
    color: var(--light-color);
    padding: 80px 20px;
    text-align: center;
}

.about-hero h1, .services-hero h1, .gallery-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.about-hero p, .services-hero p, .gallery-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   QUICK PRESENTATION
   ============================================ */

.quick-presentation {
    background-color: var(--light-bg);
    padding: 60px 20px;
    text-align: center;
}

.presentation-content {
    max-width: 700px;
    margin: 0 auto;
}

.presentation-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.presentation-content p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
}

/* ============================================
   SERVICES OVERVIEW
   ============================================ */

.services-overview {
    padding: 80px 20px;
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background-color: var(--light-bg);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background-color: var(--light-color);
    border-top: 4px solid var(--secondary-color);
}

.service-media {
    width: 100%;
    aspect-ratio: 1 / 1; /* carré équivalent 1080x1080 */
    max-width: 1080px;
    max-height: 1080px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--light-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.service-card:hover .service-image {
    transform: scale(1.03);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.services-cta {
    text-align: center;
}

/* ============================================
   SERVICES DETAILED PAGE
   ============================================ */

.services-detailed {
    padding: 60px 20px;
    background-color: var(--light-color);
}

.service-detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.service-detail-item:nth-child(even) {
    direction: rtl;
}

.service-detail-item:nth-child(even) > * {
    direction: ltr;
}

.service-detail-text h2 {
    margin-bottom: 20px;
}

.service-detail-text > p {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-features {
    list-style: none;
    margin: 25px 0;
}

.service-features li {
    padding: 10px 0;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.service-features li:before {
    content: '✓ ';
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 10px;
}

.service-tagline {
    font-style: italic;
    color: var(--primary-color);
    margin: 25px 0 20px 0;
}

.service-detail-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.service-detail-image {
    display: flex;
    justify-content: center;
}

.placeholder-service-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--primary-color), #2E3B8D);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
}

.placeholder-service-image .material-icons {
    font-size: 5rem;
    opacity: 0.6;
}

.service-image-cover {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 25px;
}

.about-text > p {
    font-size: 1.05rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 30px;
}

.values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.value-item .material-icons {
    color: var(--secondary-color);
    font-size: 2rem;
}

.value-item h4 {
    font-size: 1rem;
    color: var(--primary-color);
}

.about-image {
    display: flex;
    justify-content: center;
}

.placeholder-image {
    width: 100%;
    max-width: 400px;
    height: 350px;
    background: linear-gradient(135deg, var(--primary-color), #2E3B8D);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    gap: 15px;
}

.placeholder-image .material-icons {
    font-size: 4rem;
    opacity: 0.5;
}

.placeholder-image p {
    color: var(--light-color);
    opacity: 0.7;
    font-size: 1.1rem;
}

.about-photo {
    width: 100%;
    max-width: 400px;
    max-height: 350px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.placeholder-image-large {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--primary-color), #2E3B8D);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    gap: 15px;
}

.placeholder-image-large .material-icons {
    font-size: 4rem;
    opacity: 0.5;
}

.placeholder-image-large p {
    color: var(--light-color);
    opacity: 0.7;
    font-size: 1.1rem;
}

/* ============================================
   COMPANY STORY & MISSION/VISION (About Page)
   ============================================ */

.company-story {
    padding: 80px 20px;
    background-color: var(--light-color);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-text h2 {
    margin-bottom: 20px;
}

.story-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-color);
}

.mission-vision {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.mission-vision .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.mission-card, .vision-card, .values-card {
    background-color: var(--light-color);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.mission-card:hover, .vision-card:hover, .values-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.mission-icon, .vision-icon, .values-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.mission-card h3, .vision-card h3, .values-card h3 {
    margin-bottom: 15px;
}

.mission-card p, .vision-card p, .values-card p {
    line-height: 1.8;
    color: var(--text-color);
}

/* ============================================
   CORE VALUES DETAILED (About Page)
   ============================================ */

.core-values {
    padding: 80px 20px;
    background-color: var(--light-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card-detailed {
    background-color: var(--light-bg);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.value-card-detailed:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.value-icon-lg {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.value-card-detailed h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.value-card-detailed p {
    color: var(--text-color);
    line-height: 1.8;
}

/* ============================================
   TEAM SECTION
   ============================================ */

.team-section {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.team-content {
    max-width: 800px;
    margin: 0 auto;
}

.team-content p {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.8;
}

/* ============================================
   WHY CHOOSE US PAGES
   ============================================ */

.why-choose {
    padding: 80px 20px;
    background-color: var(--light-color);
}

.why-choose .container {
    padding-left: 8px;
    padding-right: 8px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    align-items: stretch;
    justify-items: center; /* centre les cartes pour respecter le gabarit */
}

.why-card {
    background: linear-gradient(135deg, var(--primary-color), #2E3B8D);
    color: var(--light-color);
    padding: 30px 22px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px; /* même gabarit que la photo d'équipe */
    margin: 0 auto;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.why-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
}

.why-icon .material-icons {
    font-size: 3rem;
}

.why-subicon {
    position: absolute;
    bottom: 16px; /* remonte encore l'icône */
    right: calc(50% - 14px);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--secondary-color);
    pointer-events: none;
}

.why-subicon .material-icons {
    font-size: 18px;
}

.why-card h3 {
    color: var(--light-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.why-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

.why-choose-about {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.why-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.why-list-item {
    text-align: center;
    padding: 30px;
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.why-list-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.why-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--light-color);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.why-list-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.why-list-item p {
    color: var(--text-color);
    line-height: 1.8;
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.gallery-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    font-size: 2.5rem;
    font-weight: 700;
}

.image-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: transparent;
}

.gallery-item h4 {
    padding: 15px;
    background-color: var(--light-color);
    text-align: center;
    margin: 0;
}

.gallery-cta {
    text-align: center;
}

/* ============================================
   GALLERY PAGE SPECIFIC
   ============================================ */

.gallery-filters {
    padding: 40px 20px;
    background-color: var(--light-color);
    text-align: center;
}

.gallery-filters .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--secondary-color);
    color: var(--light-color);
    border-color: var(--secondary-color);
}

.gallery-section {
    padding: 40px 20px;
    background-color: var(--light-bg);
}

.gallery-grid-full {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.gallery-item-full {
    display: flex;
    gap: 30px;
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item-full:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.gallery-image {
    flex: 0 0 40%;
}

.gallery-info {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-info h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.gallery-info p {
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.8;
}

.project-date {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2E3B8D 100%);
    color: var(--light-color);
}

.stats-section .section-title {
    color: var(--light-color);
}

.stats-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-section {
    padding: 80px 20px;
    background-color: var(--light-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.stars {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.stars .material-icons {
    color: #FFC107;
    font-size: 1.5rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-card h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-card span {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* ============================================
   PROCESS SECTION
   ============================================ */

.process-section {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
    margin-top: 60px;
}

.process-step {
    background-color: var(--light-color);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #2E3B8D);
    color: var(--light-color);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.process-step h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.process-step p {
    color: var(--text-color);
}

.process-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: auto;
}

.process-arrow .material-icons {
    color: var(--secondary-color);
    font-size: 2rem;
}

/* ============================================
   CTA SECTIONS
   ============================================ */

.cta-about, .cta-services, .cta-gallery {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2E3B8D 100%);
    color: var(--light-color);
    padding: 80px 20px;
    text-align: center;
}

.cta-about h2, .cta-services h2, .cta-gallery h2 {
    font-size: 2.2rem;
    color: var(--light-color);
    margin-bottom: 20px;
}

.cta-about p, .cta-services p, .cta-gallery p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    padding: 80px 20px;
    background-color: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-item .material-icons {
    color: var(--secondary-color);
    font-size: 2rem;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.info-item p {
    color: var(--text-color);
    margin: 0;
}

.info-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.info-item a:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--dark-bg);
    color: var(--light-color);
    padding: 50px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--light-color);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.tagline {
    color: var(--secondary-color);
    font-style: italic;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    color: var(--light-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.social-links .material-icons {
    font-size: 1.3rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */

.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 62px;
    height: 62px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    font-size: 1.8rem;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.12);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: visible;
}

.whatsapp-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 16px 34px rgba(37, 211, 102, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.whatsapp-floating::before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%2325D366'%3E%3Cpath d='M16 2.7C9.8 2.7 4.7 7.8 4.7 14c0 2.2.6 4.3 1.8 6.2L5 27.5l7.6-1.5c1.8 1 3.9 1.6 6 1.6 6.2 0 11.3-5.1 11.3-11.3C29.9 7.8 24.8 2.7 18.6 2.7h-2.6zm0 1.9h2.6c5.2 0 9.4 4.2 9.4 9.4 0 5.2-4.2 9.4-9.4 9.4-1.9 0-3.7-.5-5.3-1.4l-.4-.1-4.8.9 1-4.7-.2-.4c-1-1.5-1.5-3.3-1.5-5.1 0-5.2 4.2-9.4 9.4-9.4zm5.4 5.5c-.1-.1-.7-.3-1.1-.3-.3 0-.6-.1-.9.1-.3.3-1.2 1.2-1.2 2.9 0 1.7 1.2 3.3 1.3 3.5.1.1 2.4 3.8 6 5.2.8.3 1.4.5 1.9.6.8.2 1.5.2 2-.1.6-.3 1-1 1.2-1.7.1-.7.1-1.2 0-1.3-.1-.1-.2-.1-.3-.1h-1.1c-.1 0-.3.1-.4.3-.1.1-.6.7-.7.8-.1.1-.2.1-.4 0-.2-.1-1.8-.7-3.4-2.1-1.3-1.2-2.1-2.7-2.3-3.1-.1-.1 0-.3.1-.4.1-.1.3-.3.4-.4.1-.1.1-.2.2-.3.1-.1.1-.2.1-.3s0-.2-.1-.3c-.1-.1-1.1-2.6-1.6-3.5z'/%3E%3C/svg%3E");
}

.whatsapp-floating .material-icons {
    opacity: 0;
}

.whatsapp-floating::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.35);
    animation: pulse 2.4s ease-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.35);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.icon-whatsapp {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%2325D366'%3E%3Cpath d='M16 2.7C9.8 2.7 4.7 7.8 4.7 14c0 2.2.6 4.3 1.8 6.2L5 27.5l7.6-1.5c1.8 1 3.9 1.6 6 1.6 6.2 0 11.3-5.1 11.3-11.3C29.9 7.8 24.8 2.7 18.6 2.7h-2.6zm0 1.9h2.6c5.2 0 9.4 4.2 9.4 9.4 0 5.2-4.2 9.4-9.4 9.4-1.9 0-3.7-.5-5.3-1.4l-.4-.1-4.8.9 1-4.7-.2-.4c-1-1.5-1.5-3.3-1.5-5.1 0-5.2 4.2-9.4 9.4-9.4zm5.4 5.5c-.1-.1-.7-.3-1.1-.3-.3 0-.6-.1-.9.1-.3.3-1.2 1.2-1.2 2.9 0 1.7 1.2 3.3 1.3 3.5.1.1 2.4 3.8 6 5.2.8.3 1.4.5 1.9.6.8.2 1.5.2 2-.1.6-.3 1-1 1.2-1.7.1-.7.1-1.2 0-1.3-.1-.1-.2-.1-.3-.1h-1.1c-.1 0-.3.1-.4.3-.1.1-.6.7-.7.8-.1.1-.2.1-.4 0-.2-.1-1.8-.7-3.4-2.1-1.3-1.2-2.1-2.7-2.3-3.1-.1-.1 0-.3.1-.4.1-.1.3-.3.4-.4.1-.1.1-.2.2-.3.1-.1.1-.2.1-.3s0-.2-.1-.3c-.1-.1-1.1-2.6-1.6-3.5z'/%3E%3C/svg%3E");
    vertical-align: middle;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content,
    .contact-content,
    .story-content,
    .service-detail-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-detail-item:nth-child(even) {
        direction: ltr;
    }

    .values {
        grid-template-columns: 1fr;
    }

    .mission-vision .container {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 2rem;
    }

    .services-grid,
    .gallery-grid,
    .why-grid,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .why-choose .container {
        padding-left: 6px;
        padding-right: 6px;
    }

    .why-card {
        padding: 22px 18px;
        width: 100%;
        max-width: 360px; /* un poil sous 400px pour s'aligner à l'image en mobile */
    }

    .gallery-item-full {
        flex-direction: column;
    }

    .gallery-image {
        flex: none;
        width: 100%;
    }

    .whatsapp-floating {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .process-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 20px;
        min-height: 400px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-hero h1, .services-hero h1, .gallery-hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.85rem;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .services-grid {
        gap: 20px;
    }

    .service-card {
        padding: 25px 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .gallery-filters .container {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Harmonisation des cartes "Pourquoi nous" en mobile étroit */
    .why-grid {
        gap: 14px;
        width: 100%;
        margin: 0;
        justify-items: center;
    }

    .why-choose .container {
        padding-left: 4px;
        padding-right: 4px;
    }

    .why-card {
        padding: 18px 16px; /* plus compact pour éviter tout débordement horizontal */
        width: 100%;
        max-width: 340px; /* garde le gabarit proche de la photo d'équipe sur mobile étroit */
        margin: 0 auto;
    }

    .why-icon {
        font-size: 2.4rem;
        margin-bottom: 12px;
    }

    .why-card h3 {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

    .why-card p {
        font-size: 0.88rem;
        line-height: 1.5;
    }
}
