/* Variables et réinitialisation */
:root {
    --primary-color: #001b87;
    --primary-light: #2a3da8;
    --secondary-color: #ff7900;
    --secondary-light: #ff9a40;
    --light-color: #ecf0f1;
    --dark-color: #001b87;
    --success-color: #27ae60;
    --card-border: 1px solid rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
    overflow-x: hidden;
    font-size: 95%;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* En-tête amélioré */
header {
    background-color: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-img {
    height: 50px;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
}



header.scrolled {
    padding: 5px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-info a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.lang-switcher {
    display: flex;
    gap: 10px;
}

.lang-switcher a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

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

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: relative;
    transition: all 0.3s ease;
    background: white;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.logo h1 {
    font-size: 26px;
    color: var(--primary-color);
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 15px;
    background: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 12px 20px;
    border-radius: 50px;
    background: transparent;
    font-size: 9.95px;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    transition: var(--transition);
    z-index: -1;
    border-radius: 50px;
}

.nav-menu a:hover::before {
    left: 0;
}

.nav-menu a:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 27, 135, 0.3);
}

.nav-menu i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover i {
    color: white;
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(0, 27, 135, 0.12);
    border-radius: 999px;
    color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff, #f7f9ff);
    box-shadow: var(--shadow);
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.language-toggle i {
    color: var(--secondary-color);
}

.language-toggle:hover {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 27, 135, 0.3);
}

.language-toggle:hover i {
    color: white;
}

.language-divider {
    color: rgba(0, 27, 135, 0.35);
}

.language-toggle:hover .language-divider {
    color: rgba(255, 255, 255, 0.65);
}

.language-target {
    color: var(--secondary-color);
}

.language-toggle:hover .language-target {
    color: white;
}

.search-icon {
    font-size: 20px;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
}

.search-icon:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.menu-toggle:hover {
    background-color: rgba(0, 27, 135, 0.1);
    color: var(--secondary-color);
}

/* ===== Animations du header ===== */

/* Entrée du header au chargement */
#mainHeader {
    animation: headerDrop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes headerDrop {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* Apparition échelonnée des éléments (backwards : préserve les effets de survol) */
#mainHeader .logo,
#mainHeader .nav-menu li,
#mainHeader .language-toggle,
#mainHeader .menu-toggle {
    animation: headerItemIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
#mainHeader .logo { animation-delay: 0.25s; }
#mainHeader .nav-menu li:nth-child(1) { animation-delay: 0.38s; }
#mainHeader .nav-menu li:nth-child(2) { animation-delay: 0.46s; }
#mainHeader .nav-menu li:nth-child(3) { animation-delay: 0.54s; }
#mainHeader .nav-menu li:nth-child(4) { animation-delay: 0.62s; }
#mainHeader .nav-menu li:nth-child(5) { animation-delay: 0.70s; }
#mainHeader .nav-menu li:nth-child(6) { animation-delay: 0.78s; }
#mainHeader .language-toggle { animation-delay: 0.86s; }
#mainHeader .menu-toggle { animation-delay: 0.50s; }

@keyframes headerItemIn {
    from { opacity: 0; transform: translateY(-26px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo : réaction au survol */
.logo-img {
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.45s ease, height 0.3s ease;
}
.logo:hover .logo-img {
    transform: scale(1.08) rotate(-3deg);
    filter: drop-shadow(0 6px 12px rgba(0, 27, 135, 0.25));
}

/* Icône globe : rotation au survol */
.language-toggle i {
    transition: transform 0.4s ease, color 0.3s ease;
}
.language-toggle:hover i {
    transform: rotate(25deg) scale(1.1);
}

/* Icône menu (mobile) : léger zoom au survol */
.menu-toggle i {
    transition: transform 0.3s ease;
}
.menu-toggle:hover i {
    transform: scale(1.15);
}

/* État défilé : compact, translucide et flouté */
header.scrolled {
    padding: 6px 5%;
    background-color: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 24px rgba(0, 27, 135, 0.12);
}
header.scrolled .logo-img {
    height: 42px;
}

@media (prefers-reduced-motion: reduce) {
    #mainHeader,
    #mainHeader .logo,
    #mainHeader .nav-menu li,
    #mainHeader .language-toggle,
    #mainHeader .menu-toggle {
        animation: none;
    }
    .logo:hover .logo-img,
    .language-toggle:hover i,
    .menu-toggle:hover i {
        transform: none;
    }
}

/* Version mobile */
@media (max-width: 768px) {
    .header-actions {
        gap: 8px;
    }

    .nav-menu {
        flex-direction: column;
        border-radius: 15px;
        padding: 15px;
        gap: 10px;
        position: absolute;
        top: 100%;
        left: 5%;
        right: 5%;
        width: 90%;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-menu a {
        justify-content: center;
        padding: 15px;
    }
    
    .header-main {
        padding: 10px 5%;
    }
    
    .menu-toggle {
        display: flex;
    }

    .language-toggle {
        min-height: 40px;
        padding: 8px 11px;
        font-size: 0.82rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
}

/* Bannière Hero améliorée */
.hero {
    background: linear-gradient(rgba(0, 27, 135, 0.7), rgba(0, 27, 135, 0.7)), url('images/bckg5.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    min-height: 90vh;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #f9f9f9, transparent);
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    z-index: 2;
}

/* ===== Entrée animée du hero (au chargement / rechargement) ===== */
.hero-content > h2,
.hero-content > p,
.hero-content > .btn {
    animation: heroRise 0.95s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
.hero-content > h2:nth-of-type(1) { animation-delay: 0.25s; }
.hero-content > h2:nth-of-type(2) { animation-delay: 0.50s; }
.hero-content > p:nth-of-type(1)  { animation-delay: 0.75s; }
.hero-content > p:nth-of-type(2)  { animation-delay: 0.95s; }
.hero-content > .btn {
    animation: heroRise 0.95s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s backwards,
               heroBtnGlow 2.4s ease-in-out 2.3s infinite;
}

@keyframes heroRise {
    from { opacity: 0; transform: translateY(55px) scale(0.9); filter: blur(8px); }
    60%  { filter: blur(0); }
    to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes heroBtnGlow {
    0%, 100% { box-shadow: 0 5px 15px rgba(255, 121, 0, 0.3); }
    50%      { box-shadow: 0 10px 30px rgba(255, 121, 0, 0.65); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-content > h2,
    .hero-content > p,
    .hero-content > .btn {
        animation: none;
    }
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 3.8rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin: 15px 0;
    text-align: center;
    max-width: 100%;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 121, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-color) 100%);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 121, 0, 0.4);
}

.btn:hover::before {
    left: 0;
}

/* Sections générales améliorées */
.section {
    padding: 100px 5%;
    position: relative;
}

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

.section-title h2 {
    font-size: 3.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title h4 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    max-width: 800px;
    margin: 25px auto 0;
    font-size: 1.1rem;
}

.section-title2 p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 25px auto 0;
    font-size: 1.1rem;
}

/* À propos amélioré */
.about-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.about-image {
  flex: 1;
  min-width: 350px;
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 27, 135, 0.15);
  object-fit: cover;
  height: 530px;
}

.experience-badge {
  position: absolute;
  bottom: 25px;
  left: 25px;
  background: rgba(0, 27, 135, 0.9);
  color: white;
  padding: 20px 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 27, 135, 0.3);
  backdrop-filter: blur(5px);
}

.experience-badge h3 {
  font-size: 2rem;
  margin: 0;
  color: var(--secondary-color);
}

.about-text {
  flex: 1;
  min-width: 320px;
  animation: fadeIn 1s ease-in-out;
}

.about-text h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  position: relative;
}

.about-text h2 span {
  color: var(--secondary-color);
}

.about-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
  text-align: justify;
}

.about-stats {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.stat-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 160px;
  transition: var(--transition);
  border: var(--card-border);
}

.stat-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.stat-item i {
  font-size: 40px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.stat-item h4 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.about-btn {
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    gap: 40px;
  }

  .about-text h2 {
    font-size: 2rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .experience-badge {
    bottom: 15px;
    left: 15px;
    padding: 15px 20px;
  }
}

.highlight-item {
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: var(--card-border);
    position: relative;
    overflow: hidden;
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.highlight-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.highlight-item:hover::before {
    width: 100%;
    opacity: 0.05;
}

.highlight-item i {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.highlight-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.highlight-item p {
    text-align: center;
    margin: 0 auto;
    max-width: 90%;
    position: relative;
    z-index: 1;
}

/* Services améliorés */
.services {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/bckg2.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 27, 135, 0.8) 0%, rgba(255, 121, 0, 0.8) 100%);
    z-index: 0;
}

.services > * {
    position: relative;
    z-index: 1;
}

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

.service-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: var(--card-border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    height: 100%;
    opacity: 0.05;
}

.service-card i {
    font-size: 50px;
    color: var(--secondary-color);
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover i {
    animation: pulse 1s infinite;
    color: var(--primary-color);
}

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

.service-card p {
    color: #555;
}

/* ===== Section Extras — galerie de plantes + parallaxe ===== */
.extras-section {
  position: relative;
  padding: 110px 0 120px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(160deg, #0a1f4d 0%, #123a1e 100%);
}

/* Couche de fond en parallaxe (déplacée au scroll via JS) */
.extras-parallax-bg {
  position: absolute;
  inset: -18% 0;
  background: url("images/bckg8.jpg") no-repeat center center/cover;
  opacity: 0.25;
  z-index: 0;
  will-change: transform;
}
.extras-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 16, 45, 0.72) 0%, rgba(7, 35, 18, 0.62) 100%);
  z-index: 1;
}

.extras-container {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.extras-section .section-title h2 { color: #fff; }
.extras-section .section-title p { color: rgba(255, 255, 255, 0.88); }

/* Grille de cartes */
.extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
  margin-top: 50px;
}

.plant-card {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #0d2a16;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  will-change: transform;
  /* apparition au scroll (opacité seule : n'entre pas en conflit avec la parallaxe) */
  opacity: 0;
  transition: opacity 0.7s ease, box-shadow 0.4s ease;
}
.plant-card.in-view { opacity: 1; }

.plant-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.plant-card:hover {
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.5);
}
.plant-card:hover img { transform: scale(1.12); }

@media (max-width: 768px) {
  .extras-section { padding: 80px 0 90px; }
  .extras-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
@media (max-width: 380px) {
  .extras-grid { grid-template-columns: 1fr; }
}

/* Métiers améliorés */
.metiers {
    background: linear-gradient(45deg, #d9d4cf 0%, #ffffff 100%);
    background-size: cover;
    background-position: center;
    padding: 100px 5%;
    position: relative;
}

.metiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.metier-card {
    background-color: white;
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: var(--card-border);
    position: relative;
    overflow: hidden;
}

.metier-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.metier-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.metier-card:hover::after {
    height: 100%;
    opacity: 0.05;
}

.metier-card i {
    font-size: 50px;
    color: var(--secondary-color);
    margin-bottom: 25px;
    transition: var(--transition);
}

.metier-card:hover i {
    animation: float 3s ease-in-out infinite;
}

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

/* ===== Accordéon "Nos métiers" — panneaux d'images extensibles ===== */
.metiers-accordion {
    display: flex;
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
    height: clamp(380px, 46vw, 460px);
}

.metier-panel {
    position: relative;
    flex: 1;
    min-width: 0;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    box-shadow: 0 12px 30px rgba(0, 27, 135, 0.18);
    transition: flex 0.6s cubic-bezier(0.76, 0, 0.24, 1);
    outline: none;
}

.metier-panel.is-active {
    flex: 5;
}

.metier-panel.brand {
    background-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.metier-panel:focus-visible {
    box-shadow: 0 0 0 3px var(--secondary-color);
}

/* Voile dégradé pour la lisibilité du texte */
.metier-panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 27, 135, 0.88) 0%, rgba(0, 27, 135, 0.35) 45%, rgba(0, 27, 135, 0.1) 100%);
    transition: opacity 0.4s ease;
}
.metier-panel.is-active .metier-panel-overlay {
    background: linear-gradient(to top, rgba(0, 27, 135, 0.9) 0%, rgba(0, 27, 135, 0.4) 55%, rgba(0, 27, 135, 0.12) 100%);
}

/* Libellé compact (panneau replié) */
.metier-panel-label {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding-bottom: 26px;
    color: #fff;
    transition: opacity 0.3s ease;
}
.metier-panel-label i {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(2px);
}
.metier-panel-label span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.95rem;
    white-space: nowrap;
}
.metier-panel.is-active .metier-panel-label {
    opacity: 0;
    pointer-events: none;
}

/* Contenu détaillé (panneau ouvert) */
.metier-panel-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(26px, 3vw, 40px);
    color: #fff;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
    pointer-events: none;
}
.metier-panel.is-active .metier-panel-content {
    opacity: 1;
    transform: translateY(0);
}
.metier-panel-content i {
    font-size: 38px;
    color: var(--secondary-light);
    margin-bottom: 14px;
}
.metier-panel-content h3 {
    color: #fff;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    margin-bottom: 10px;
}
.metier-panel-content p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.98rem;
    max-width: 44ch;
}

/* Mobile : accordéon vertical */
@media (max-width: 768px) {
    /* Snap actif UNIQUEMENT quand la section métiers est à l'écran (classe posée en JS) */
    html.metiers-snapping {
        scroll-snap-type: y proximity;
        scroll-padding-top: 72px;
    }
    .metiers-accordion {
        flex-direction: column;
        height: auto;
        gap: 10px;
    }
    .metier-panel {
        flex: 0 0 auto;
        height: 76px;
        transition: height 0.55s cubic-bezier(0.76, 0, 0.24, 1);
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    /* flex:0 0 auto indispensable pour neutraliser le flex:5 de base,
       sinon flex-basis:0 écrase la hauteur et l'animation ne se joue pas */
    .metier-panel.is-active {
        flex: 0 0 auto;
        height: 360px;
    }
    .metier-panel-label {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 16px;
        padding: 0 22px;
    }
    .metier-panel-label span {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 1.05rem;
    }
    .metier-panel-label i {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }
    .metier-panel-content {
        padding: 22px;
    }
    .metier-panel-content i {
        font-size: 30px;
        margin-bottom: 10px;
    }
    .metier-panel-content p {
        font-size: 0.92rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .metier-panel,
    .metier-panel-content,
    .metier-panel-overlay { transition: none; }
}

/* Pourquoi nous choisir amélioré */
.why-us {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 100px 5%;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.05"><circle cx="50" cy="50" r="40" fill="white"/></svg>') repeat;
    animation: rotate 30s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.why-us > * {
    position: relative;
    z-index: 1;
}

.why-us .section-title h2 {
    color: white;
    margin-bottom: 15px;
}

.why-us-visual {
    display: none;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
    margin-bottom: 15px;
}

.benefit {
    padding: 40px 30px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    transition: var(--transition);
    color: var(--dark-color);
    border: var(--card-border);
    position: relative;
    overflow: hidden;
}

.benefit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.benefit:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-hover);
}

.benefit:hover::before {
    height: 100%;
    opacity: 0.05;
}

.benefit p {
    color: #666;
}

.benefit i {
    font-size: 50px;
    margin-bottom: 25px;
    color: var(--secondary-color);
    transition: var(--transition);
}

.benefit:hover i {
    animation: pulse 1s infinite;
}

/* ============================================ */
/* SECTION RÉALISATIONS - MODE CARROUSEL VERTICAL AVEC DÉFILEMENT HORIZONTAL */
/* ============================================ */

.realisations {
    display: block;
    margin-bottom: 40px;
}

.gallery-hint {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

.gallery-hint i {
    margin-right: 8px;
    color: var(--secondary-color);
}

/* Conteneur du carrousel */
.gallery-carousel {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    cursor: grab;
    padding: 15px 0;
    border-radius: 20px;
    -webkit-overflow-scrolling: touch;
}

.gallery-carousel:active {
    cursor: grabbing;
}

/* Cacher la scrollbar par défaut mais garder la fonctionnalité */
.gallery-carousel::-webkit-scrollbar {
    height: 8px;
}

.gallery-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.gallery-carousel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.gallery-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Grille horizontale */
.gallery-grid-horizontal {
    display: inline-flex;
    gap: 25px;
    padding: 10px 20px;
    white-space: nowrap;
}

/* Élément de réalisation en horizontal */
.realisation-item {
    position: relative;
    width: 320px;
    min-width: 320px;
    height: 280px;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: var(--shadow);
    display: inline-block;
    white-space: normal;
}

.realisation-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.realisation-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.realisation-item:hover img {
    transform: scale(1.1);
}

.realisation-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,27,135,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.realisation-item:hover .overlay {
    transform: translateY(0);
}

.realisation-item .overlay i {
    font-size: 28px;
    background: rgba(255,255,255,0.2);
    padding: 10px;
    border-radius: 50%;
}

/* Navigation du carrousel */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow);
}

.carousel-arrow:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

/* Indicateur de scroll */
.scroll-indicator {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #888;
}

.scroll-indicator i {
    animation: bounce 1.5s infinite;
    margin: 0 5px;
}

@keyframes bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Version mobile du carrousel */
@media (max-width: 768px) {
    .realisation-item {
        width: 260px;
        min-width: 260px;
        height: 220px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Clients améliorés */
.clients {
    text-align: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 121, 0, 0.12), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #eef4ff 52%, #fff5ec 100%);
    padding: 100px 5%;
    position: relative;
    overflow: hidden;
}

.clients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.02"><rect x="0" y="0" width="100" height="100" fill="%23001b87"/></svg>') repeat;
    z-index: 0;
}

.clients > * {
    position: relative;
    z-index: 1;
}

.clients .section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 27, 135, 0.12);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-tagline i {
    color: var(--secondary-color);
}

/* Carrousel partenaires en défilement continu */
.clients-marquee {
    margin-top: 50px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 24px 0;
    cursor: grab;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox : masque la barre de défilement */
    -ms-overflow-style: none;       /* IE/Edge ancien */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.clients-marquee::-webkit-scrollbar {
    display: none;                  /* Chrome/Safari : masque la barre */
}

.clients-marquee.is-grabbing {
    cursor: grabbing;
}

.clients-track {
    display: flex;
    width: max-content;
}

.client-logo {
    --partner-accent: var(--secondary-color);
    min-height: 245px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 26px 22px 24px;
    border-radius: 22px;
    border: 1px solid rgba(0, 27, 135, 0.08);
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, rgba(0, 27, 135, 0.3), var(--partner-accent)) border-box;
    box-shadow: 0 18px 45px rgba(0, 27, 135, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}

.client-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.75) 48%, rgba(255, 255, 255, 0) 72%),
        linear-gradient(135deg, rgba(0, 27, 135, 0.06), rgba(255, 121, 0, 0.06));
    transform: translateX(-120%);
    transition: transform 0.65s ease;
    pointer-events: none;
}

.client-logo::after {
    content: '';
    position: absolute;
    inset: auto 22px 0;
    height: 5px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--primary-color), var(--partner-accent));
}

.client-logo:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 26px 60px rgba(0, 27, 135, 0.18);
    border-color: rgba(255, 121, 0, 0.22);
}

.client-logo:hover::before {
    transform: translateX(120%);
}

/* Cartes au sein du rail animé */
.clients-track .client-logo {
    flex: 0 0 auto;
    width: 240px;
    margin-right: 28px;
    transform: rotate(-2deg);
}

.clients-track .client-logo:nth-child(even) {
    transform: rotate(2deg);
}

.clients-track .client-logo:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.04);
    z-index: 2;
}

.partner-rank {
    position: absolute;
    top: 16px;
    right: 18px;
    color: rgba(0, 27, 135, 0.18);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.partner-logo-frame {
    width: 100%;
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 255, 0.96));
    box-shadow: inset 0 0 0 1px rgba(0, 27, 135, 0.06);
    position: relative;
    z-index: 1;
}

.client-logo img {
    max-height: 104px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.35s ease, filter 0.35s ease;
    cursor: zoom-in;
}

.client-logo:hover img {
    transform: scale(1.08);
    filter: saturate(1.12) contrast(1.04);
}

.client-logo h3 {
    color: var(--primary-color);
    font-size: 1rem;
    line-height: 1.25;
    margin: 0;
    position: relative;
    z-index: 1;
}

.partner-bgfi { --partner-accent: #8ca078; }
.partner-orange { --partner-accent: #ff7900; }
.partner-ifad { --partner-accent: #20a052; }
.partner-olea { --partner-accent: #b84b2f; }
.partner-ict { --partner-accent: #df0b52; }
.partner-wf { --partner-accent: #f28f40; }
.partner-act { --partner-accent: #9ad13d; }
.partner-zeni { --partner-accent: #168dc7; }

.partner-orange .partner-logo-frame {
    background: #ff7900;
}

.partner-orange img {
    max-height: 118px;
}

.partner-ifad img,
.partner-ict img {
    max-height: 92px;
}

.partner-olea img,
.partner-wf img {
    max-height: 78px;
}

/* Contact amélioré */
.contact {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 5%;
    position: relative;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--primary-color), transparent);
    opacity: 0.1;
    z-index: 0;
}

.contact > * {
    position: relative;
    z-index: 1;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: var(--card-border);
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding: 50px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1516387938699-a93567ec168e?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
}

.contact-info::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.05"><circle cx="50" cy="50" r="40" fill="white"/></svg>') repeat;
    animation: rotate 30s linear infinite;
    z-index: 0;
}

.contact-info > * {
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 2rem;
}

.contact-info > p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.contact-details {
    margin-top: 30px;
}

.contact-details a {
    color: white !important;
    text-decoration: underline;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--secondary-color) !important;
    text-decoration: none;
}

.contact-details p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: #fff !important; 
}

.contact-details i {
    color: var(--secondary-color);
    font-size: 24px;
    width: 30px;
    transition: var(--transition);
}

.contact-details p:hover i {
    transform: scale(1.2);
}

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

.contact-social h4 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

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

.social-links a {
    display: inline-flex;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: white;
    font-size: 20px;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 121, 0, 0.3);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    padding: 50px 40px;
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #444;
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: var(--transition);
    background: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 27, 135, 0.1);
    background: white;
}

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

.form-btn {
    text-align: center;
    margin-top: 20px;
}

.form-btn .btn {
    padding: 18px 50px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

/* Pied de page amélioré */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #0026b3 100%);
    color: white;
    padding: 80px 5% 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.05"><polygon points="50,0 100,50 50,100 0,50" fill="white"/></svg>') repeat;
    z-index: 0;
}

footer > * {
    position: relative;
    z-index: 1;
}

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

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-column ul li:hover {
    transform: translateX(5px);
}

.footer-column a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

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

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

.social-icons a {
    display: inline-flex;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive amélioré */
@media (max-width: 1024px) {
    .hero h2 {
        font-size: 3rem;
    }

    .header-actions {
        gap: 8px;
    }
    
    .nav-menu {
        gap: 10px;
    }
    
    .nav-menu a {
        padding: 10px 14px;
        font-size: 11px;
    }

    .language-toggle {
        padding: 9px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-wrap: nowrap;
        padding: 10px 4%;
    }

    .header-actions {
        margin-left: auto;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        text-align: center;
        gap: 15px;
        width: 90%;
        position: absolute;
        top: 100%;
        left: 5%;
        right: 5%;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-menu a {
        justify-content: center;
        padding: 15px;
    }
    
    .header-top {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px 5%;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .section {
        padding: 80px 5%;
    }
    
    .about-content, .contact-container {
        flex-direction: column;
    }
    
    .services-grid, .metiers-grid, .benefits, .footer-content, .about-highlights {
        grid-template-columns: 1fr;
    }

    .why-us {
        background:
            radial-gradient(circle at 50% 34%, rgba(255, 121, 0, 0.08), transparent 28%),
            linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
        color: #111827;
        padding: 78px 6% 86px;
        margin-bottom: 0;
    }

    .why-us::before {
        display: none;
    }

    .why-us .section-title {
        max-width: 720px;
        margin: 0 auto;
    }

    .why-us .section-title h2 {
        color: #101828;
        font-family: 'Poppins', sans-serif;
        font-size: clamp(2.15rem, 9vw, 3.4rem);
        line-height: 1.15;
        margin-bottom: 24px;
    }

    .why-us .section-title h2::after {
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        margin-top: 24px;
    }

    .why-us .section-title2 p {
        color: #738198;
        font-size: clamp(1.25rem, 4.9vw, 1.85rem);
        line-height: 1.6;
        max-width: 680px;
        margin: 0 auto;
    }

    .why-us-visual {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: min(82vw, 360px);
        min-height: 150px;
        margin: 54px auto 58px;
        position: relative;
    }

    .why-us-visual::before {
        content: '';
        position: absolute;
        inset: 28px 16px;
        border-radius: 999px;
        background: linear-gradient(135deg, rgba(0, 27, 135, 0.08), rgba(255, 121, 0, 0.11));
        filter: blur(2px);
    }

    .why-us-visual span {
        width: 66px;
        height: 66px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: var(--primary-color);
        background: #ffffff;
        box-shadow: 0 16px 35px rgba(0, 27, 135, 0.14);
        position: relative;
        z-index: 1;
    }

    .why-us-visual span:nth-child(even) {
        margin-top: 42px;
        color: var(--secondary-color);
    }

    .why-us-visual i {
        font-size: 1.55rem;
    }

    .benefits {
        gap: 0;
        max-width: 720px;
        margin: 0 auto;
        text-align: left;
    }

    .benefit {
        display: grid;
        grid-template-columns: 42px 1fr;
        gap: 0 18px;
        align-items: start;
        padding: 24px 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        color: #344054;
        overflow: visible;
    }

    .benefit + .benefit {
        border-top: 1px solid rgba(0, 27, 135, 0.08);
    }

    .benefit::before {
        content: '\f00c';
        position: static;
        width: 42px;
        height: 42px;
        grid-row: 1 / span 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 121, 0, 0.1);
        color: var(--secondary-color);
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 1rem;
    }

    .benefit:hover {
        transform: none;
        box-shadow: none;
    }

    .benefit:hover::before {
        height: 42px;
        opacity: 1;
    }

    .benefit > i {
        display: none;
    }

    .benefit h3 {
        color: #111827;
        font-family: 'Poppins', sans-serif;
        font-size: clamp(1.32rem, 5.6vw, 1.85rem);
        line-height: 1.2;
        margin: 0 0 10px;
    }

    .benefit p {
        color: #667085;
        font-size: clamp(1rem, 4.1vw, 1.22rem);
        line-height: 1.55;
        margin: 0;
    }
    
    .about-text {
        padding: 30px;
    }
    
    .about-text p {
        font-size: 1.1rem;
    }
    
    .contact-info, .contact-form {
        padding: 40px 30px;
    }
    
    .clients-track .client-logo {
        width: 220px;
        margin-right: 20px;
    }

    .hero {
        padding: 80px 20px;
        min-height: 80vh;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 15px;
        min-height: 70vh;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2.3rem;
    }
    
    .btn {
        padding: 14px 30px;
        font-size: 14px;
    }
    
    .service-card, .metier-card {
        padding: 25px 20px;
    }
    
    .contact-details p {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
        text-align: justify;
    }
    
    .about-text {
        padding: 25px 20px;
        text-align: justify;
    }
    
    .contact-info, .contact-form {
        padding: 30px 20px;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .clients-track .client-logo {
        width: 200px;
        margin-right: 16px;
        min-height: 215px;
        padding: 24px 18px 22px;
    }

    .partner-logo-frame {
        min-height: 118px;
        padding: 16px;
    }

    .client-logo img {
        max-height: 92px;
    }

    .partner-orange img {
        max-height: 104px;
    }

    .partner-olea img,
    .partner-wf img {
        max-height: 68px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Messages de statut du formulaire améliorés */
#formStatus {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
}

.form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-status.loading {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Styles pour le formulaire amélioré */
.required {
    color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.phone-input-container {
    display: flex;
    width: 100%;
}

.country-code-select {
    width: 30%;
    padding: 16px 15px;
    border: 1px solid #ddd;
    border-radius: 10px 0 0 10px;
    border-right: none;
    font-size: 16px;
    background-color: #f8f9fa;
    transition: var(--transition);
}

.country-code-select:focus {
    background-color: white;
}

.phone-number-input {
    width: 70%;
    border-radius: 0 10px 10px 0;
}

.country-detection-status {
    display: block;
    min-height: 18px;
    margin-top: 7px;
    color: #667085;
    font-size: 0.82rem;
    line-height: 1.4;
}

.country-detection-status.success {
    color: var(--success-color);
}

.country-detection-status.error {
    color: #9b5b00;
}

/* Style pour les champs en erreur */
input.error, select.error, textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Style pour les champs valides */
input.valid, select.valid, textarea.valid {
    border-color: #27ae60;
}

/* Indication de chargement */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Centrage du titre et du bouton dans la section À propos */
.about-section .section-title {
  text-align: center;
  margin-bottom: 40px;
}

.about-section .section-title h2 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.about-section .section-title h2 span {
  color: var(--secondary-color);
}

.about-section .section-title p {
  color: #555;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.cta-container {
  text-align: center;
  margin-top: 40px;
}

.cta-container p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 15px;
}

.all-partners {
    width: 80%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 27, 135, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.all-partners:hover {
    transform: scale(1.03);
}

/* Affichage mobile - agrandir l'image des partenaires */
@media (max-width: 768px) {
  .all-partners {
    width: 95%;
    max-width: none;
  }
}

@media (max-width: 640px) {
    .clients {
        padding: 80px 5%;
    }
}

/* Animation d'apparition fluide */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== LIGHTBOX AMÉLIORÉE AVEC NAVIGATION ====== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    cursor: default;
}

.lightbox img:hover {
    transform: scale(1.02);
}

.lightbox .close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox .close-btn:hover {
    color: #ff4444;
    transform: scale(1.1);
    background: rgba(0,0,0,0.7);
}

/* Conditions d'utilisation - amélioration mise en forme */
.conditions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 30px;
}

.condition-item {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.condition-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 27, 135, 0.1);
}

.condition-icon {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    min-width: 50px;
    text-align: center;
}

.condition-text h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.condition-text p {
    color: #555;
    line-height: 1.5;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .condition-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .condition-icon {
        margin-bottom: 10px;
    }
}

/* Flèches de navigation */
.lightbox .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox .nav-arrow:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox .prev-arrow {
    left: 20px;
}

.lightbox .next-arrow {
    right: 20px;
}

/* Compteur d'images */
.lightbox .image-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .lightbox .prev-arrow {
        left: 10px;
    }
    
    .lightbox .next-arrow {
        right: 10px;
    }
    
    .lightbox .close-btn {
        top: -40px;
        right: 0;
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }
    
    .lightbox .image-counter {
        bottom: -35px;
        font-size: 0.8rem;
    }
}

/* ====== SECTION CONDITIONS D'UTILISATION ====== */
.conditions-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
    padding: 80px 5%;
}

.conditions-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.conditions-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 50px;
}

.condition-block {
    background: #fff;
    padding: 30px 25px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 27, 135, 0.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.condition-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 27, 135, 0.1);
    border-color: rgba(0, 27, 135, 0.15);
}

.condition-block i {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.condition-block h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.condition-block p {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

.condition-block a {
    color: var(--secondary-color);
    text-decoration: none;
}

.condition-block a:hover {
    text-decoration: underline;
}

.conditions-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 25px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Version responsive */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: normal !important;
    font-size: 0.95rem;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--secondary-color);
    text-decoration: none;
    white-space: nowrap;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Mobile : centrer */
@media (max-width: 768px) {
    .checkbox-label {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
    }
    
    .checkbox-label a {
        white-space: normal;
    }
}

/* Desktop : aligné à gauche */
@media (min-width: 769px) {
  
}

.conditions-footer p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    line-height: 1.5;
}

.conditions-footer i {
    font-size: 18px;
}

.conditions-footer a {
    color: var(--secondary-light);
    text-decoration: none;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.conditions-footer a:hover {
    text-decoration: underline;
}

/* Checkbox conditions */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: normal !important;
    font-size: 0.95rem;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.checkbox-label a {
    color: var(--secondary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Responsive conditions */
@media (max-width: 768px) {
    .conditions-content {
        padding: 30px 20px;
        gap: 20px;
    }
    
    .condition-block {
        padding: 20px;
    }
    
    .conditions-footer {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 14px;
        padding: 22px 18px;
    }
    
    .conditions-footer p {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 6px;
        font-size: 0.92rem;
    }

    .conditions-footer p a {
        flex-basis: 100%;
    }
}

@media (max-width: 480px) {
    .conditions-container {
        border-radius: 18px;
    }

    .conditions-footer {
        padding: 20px 14px;
    }

    .conditions-footer p {
        gap: 8px;
        font-size: 0.85rem;
    }
}

/* =====================================================
   PAGES LÉGALES (conditions, mentions légales, confidentialité)
   ===================================================== */
.legal-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 60px 5% 110px;
    text-align: center;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255, 121, 0, 0.35), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.legal-hero::after {
    content: '';
    position: absolute;
    bottom: -140px;
    left: -100px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.legal-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    margin-bottom: 28px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: var(--transition);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.legal-back:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateX(-4px);
}

.legal-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    margin-bottom: 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.legal-tag i {
    color: var(--secondary-light);
}

.legal-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 16px;
}

.legal-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
}

.legal-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
    padding: 0 5% 80px;
}

.legal-container {
    max-width: 1100px;
    margin: -70px auto 0;
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 25px 60px rgba(0, 27, 135, 0.12);
    overflow: hidden;
}

.legal-intro {
    padding: 40px 50px 0;
    color: #555;
    line-height: 1.7;
}

.legal-intro p {
    margin-bottom: 12px;
}

.legal-section .conditions-list {
    grid-template-columns: 1fr;
    gap: 18px;
}

.legal-section .condition-item {
    border: 1px solid rgba(0, 27, 135, 0.06);
}

.condition-text h3 a,
.condition-text p a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.condition-text p a:hover {
    text-decoration: underline;
}

/* ===== Pages légales : texte rédigé (remplace les cartes) ===== */
.legal-prose {
    padding: 26px 50px 8px;
    color: #444;
    line-height: 1.78;
    text-align: justify;
}
.legal-prose h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 34px 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 27, 135, 0.08);
    text-align: left;
}
.legal-prose h2:first-of-type {
    margin-top: 6px;
}
.legal-prose p {
    margin-bottom: 16px;
}
.legal-prose ul {
    margin: 0 0 16px 22px;
}
.legal-prose li {
    margin-bottom: 6px;
}
.legal-prose a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}
.legal-prose a:hover {
    text-decoration: underline;
}
.legal-prose strong {
    color: var(--primary-color);
}
@media (max-width: 768px) {
    .legal-prose {
        padding: 22px 24px 6px;
    }
    .legal-prose h2 {
        font-size: 1.15rem;
    }
}

.legal-back-bottom {
    text-align: center;
    margin-top: 45px;
}

.legal-back-bottom .btn i {
    margin-right: 8px;
}

/* Liens légaux dans le pied de page */
.footer-legal {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.footer-legal li {
    display: flex;
    align-items: center;
}

/* Séparateur vertical "|" entre les liens (en CSS, donc pas traduit ni dans le HTML) */
.footer-legal li:not(:first-child)::before {
    content: "|";
    margin-right: 24px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .legal-intro {
        padding: 30px 22px 0;
    }

    .legal-section .conditions-list {
        padding: 22px;
    }

    /* Liens légaux : plus compacts sur petit écran, tout en restant sur une ligne */
    .footer-legal {
        gap: 16px;
    }
    .footer-legal li:not(:first-child)::before {
        margin-right: 16px;
    }
    .footer-legal a {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .legal-hero {
        padding: 40px 5% 90px;
    }

    .legal-container {
        border-radius: 20px;
    }
}
