/* Variables CSS pour les couleurs */
:root {
    --primary-blue: #20497E;
    --primary-orange: #F59C33;
    --blue-light: #3A5F96;
    --blue-dark: #1A3A66;
    --blue-ultra-light: #E8EDF5;
    --orange-light: #F7B05C;
    --orange-dark: #D4822A;
    --orange-ultra-light: #FEF7ED;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #6C757D;
    --gray-600: #495057;
    --gray-700: #343A40;
    --gray-800: #212529;
    --white: #FFFFFF;
    --shadow-soft: 0 4px 12px rgba(32, 73, 126, 0.1);
    --shadow-medium: 0 8px 25px rgba(32, 73, 126, 0.15);
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* Typographie - Myriad Pro */
body {
    font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Myriad Pro', sans-serif;
    font-weight: 600;
    color: var(--primary-blue);
}

/* Couleurs */
.bg-primary-blue { background-color: var(--primary-blue) !important; }
.bg-primary-orange { background-color: var(--primary-orange) !important; }
.bg-blue-ultra-light { background-color: var(--blue-ultra-light) !important; }
.bg-orange-ultra-light { background-color: var(--orange-ultra-light) !important; }
.text-primary-blue { color: var(--primary-blue) !important; }
.text-primary-orange { color: var(--primary-orange) !important; }

/* Boutons */
.btn-primary-blue {
    background: linear-gradient(135deg, var(--primary-blue), var(--blue-light));
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.btn-primary-blue:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--blue-dark), var(--primary-blue));
    color: white;
}

.btn-primary-orange {
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-light));
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.btn-primary-orange:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--orange-dark), var(--primary-orange));
    color: white;
}

.btn-outline-blue {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.btn-outline-blue:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-1px);
}

/* Cards */
.card-modern {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}



/* Navigation */
.navbar-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(32, 73, 126, 0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    margin: 0 15px;
    padding: 10px 0 !important;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--orange-light));
    border-radius: 2px;
    transition: width 0.4s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue) !important;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23F59C33' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.navbar-toggler {
    border: 0;
}

/* Hero Section */
.hero-section {
    background-image: url('../img/advice-solution.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: white;
    padding: 320px 0 180px;
    position: relative;
    overflow: hidden;
}
@supports (-webkit-touch-callout: none) {
    .hero-section {
        background-attachment: scroll;
        /* Force le cover sur iOS */
        background-size: cover !important;
        /* Améliore le rendu sur iOS */
        -webkit-background-size: cover;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

@media (min-width: 1200px) {
    .h3, h3 {
        font-size: 1.3rem;
    }
}
.uppercase {
    text-transform: uppercase;
}
.hero-content {
    position: relative;
    z-index: 2;
}

/* Chiffres clés */
.stats-section {
    background: var(--blue-ultra-light);
    padding: 80px 0;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    height: 100%;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Placeholders pour images */
.img-placeholder {
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-align: center;
    border-radius: var(--border-radius);
    min-height: 200px;
    overflow: hidden;
}

.img-placeholder-sm {
    min-height: 120px;
}

.img-placeholder-lg {
    min-height: 300px;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.accent-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--orange-light));
    border-radius: 2px;
    width: 60px;
    margin: 20px auto;
}

/* Témoignages */
.testimonial-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--primary-orange);
    height: 100%;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--gray-600);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-blue);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--blue-light));
    color: white;
    padding: 80px 0;
}

/* Footer */
footer {
    background: var(--gray-800);
    color: white;
    padding: 40px 0 20px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

.txt-home-lead{
    font-weight: 600;
}
.lead {
    font-size: 1.5rem;
    font-weight: 300;
}
.fa-brands, .fab {
    font-size: 2rem;
}
.card h5{
    text-transform: uppercase;
}

/* Animation des chiffres */
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 10px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cards réalisations */
.realization-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.realization-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.realization-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.realization-card .card-body {
    padding: 20px;
}

.realization-card .card-title {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.realization-card .card-text {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

#before-after-slider {
  width:100%;
  position:relative;
  overflow:hidden;
  border:3px solid white;
}

#before-after-slider,
#before-after-slider * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

#before-after-slider img {
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    draggable: false;
}

/* Empêcher l'effet de sélection/highlight */
#before-after-slider::selection,
#before-after-slider *::selection {
    background: transparent;
}

#before-after-slider::-moz-selection,
#before-after-slider *::-moz-selection {
    background: transparent;
}


#after-image {
  display:block
}

#before-image {
  position:absolute;
  height:100%;
  width:50%;
  top:0;
  left:0;
  overflow:hidden;
  z-index:2;
}

#resizer {
  position:absolute;
  display:flex;
  align-items:center;
  z-index:5;
  top:0;
  left:50%;
  height:100%;
  width:4px;
  background:white;
  /*Stop vertical scrolling on touch*/
  -ms-touch-action: pan-y;
    touch-action: pan-y;
    cursor:pointer;
}

#resizer:after {
  background:#20497E;
  font-family: "Font Awesome 5 Free";
  content:'\f337';
  font-weight:900;
  display:flex;
  justify-content:center;
  align-items:center;
  color:white;
  position:absolute;
  margin: 0 0 0 -22px;
  width:40px;
  height:40px;
  border-radius:50%;
  border:3px solid white;

}
#before-after-slider img {
  width:100%;
  display:block;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Page Notre parcours - Nouveaux éléments */

/* Hero section page interne */
.page-hero {
    background-image: url('../img/bg-header.jpg');
    background-position: center;
    color: white;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

/* Cards équipe */
.team-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.team-photo {
    overflow: hidden;
    position: relative;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
}

.team-info {
    padding: 25px;
    text-align: center;
}

.team-name {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.team-role {
    color: var(--primary-orange);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-quote {
    font-style: italic;
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
}

.team-quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-orange);
    position: absolute;
    top: -25px;
    left: -10px;
    font-family: serif;
}

.team-quote::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-orange);
    position: absolute;
    bottom: -55px;
    right: -10px;
    font-family: serif;
}

/* Section valeurs */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.value-title {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Section bureaux */
.office-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.office-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.office-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

.office-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Logos partenaires améliorés */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    margin-top: 40px;
}

.partner-logo {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Responsive */
@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }
    
    .office-gallery {
        grid-template-columns: 1fr;
    }
    
    .team-photo {
        height: 350px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
}

/* Page Contact - Nouveaux éléments */

/* Layout principal */
.contact-section {
    padding: 80px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Formulaire */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(245, 156, 51, 0.1);
}

.form-control::placeholder {
    color: var(--gray-500);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox custom */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
}

.custom-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-400);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.custom-checkbox input:checked + .checkmark {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

.custom-checkbox input:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.checkbox-text {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.4;
}

/* Bouton d'envoi */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-light));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--orange-dark), var(--primary-orange));
}

/* Section infos contact */
.contact-info {
    background: var(--blue-ultra-light);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    height: fit-content;
}

.contact-info h3 {
    color: var(--primary-blue);
    margin-bottom: 30px;
    font-size: 1.4rem;
}

.contact-method {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-orange);
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateX(5px);
}

.contact-method-title {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-method-value {
    color: var(--gray-700);
    font-size: 1.1rem;
}

.contact-method-value a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-method-value a:hover {
    color: var(--orange-dark);
    text-decoration: underline;
}

/* QR Code section */
.qr-section {
    text-align: center;
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: var(--border-radius);
    border: 2px dashed var(--primary-orange);
}

.qr-title {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 15px;
}

.qr-placeholder {
    width: 210px;
    height: 210px;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--gray-500);
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form,
    .contact-info {
        padding: 25px;
    }
    
    .contact-section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .form-control {
        padding: 12px;
    }
    
    .contact-form,
    .contact-info {
        padding: 20px;
    }
}

/* Page Détail Projet - Nouveaux éléments */

/* Hero projet */
.project-hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--blue-light));
    color: white;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20c0 11.046-8.954 20-20 20s-20-8.954-20-20 8.954-20 20-20 20 8.954 20 20z'/%3E%3C/g%3E%3C/svg%3E");
}

.project-hero-content {
    position: relative;
    z-index: 2;
}

.project-category {
    display: inline-block;
    background: var(--primary-orange);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Navigation retour */
.back-nav {
    margin-bottom: 20px;
}

.back-link {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.back-link:hover {
    color: var(--primary-orange);
    opacity: 1;
    transform: translateX(-5px);
}

/* Section description */
.project-description {
    padding: 80px 0;
    background: var(--blue-ultra-light);
}

.description-content {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.description-content p {
    margin-bottom: 20px;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* Galerie masonry */
.gallery-section {
    padding: 80px 0;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    max-height: 300px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    background: rgba(245, 156, 51, 0.9);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 100vw;
    max-height: 100vh;
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.lightbox-image {
    width: 100%;
    height: auto;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-orange);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: var(--orange-dark);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(245, 156, 51, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: var(--primary-orange);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}

.lightbox-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Stats projet */
.project-stats {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    margin-top: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-orange);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .project-hero {
        padding: 100px 0 40px;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .description-content,
    .project-stats {
        padding: 25px;
    }
    
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Animation pour les éléments */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-item {
    animation: fadeInScale 0.6s ease-out;
}

/* Page La méthode - Nouveaux éléments */

/* Section méthodologie */
.methodology-section {
    padding: 80px 0;
}

.method-step {
    margin-bottom: 100px;
    position: relative;
}

.method-step:last-child {
    margin-bottom: 0;
}

/* Numérotation des étapes */
.step-number {
    position: absolute;
    top: -20px;
    left: -60px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: var(--shadow-medium);
    z-index: 2;
}

/* Contenu des étapes */
.step-content {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    margin-left: 60px;
    position: relative;
}


.step-title {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    margin-left: 20px;
}

.step-description {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.6;
    margin-left: 20px;
}

.step-description ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.step-description li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.step-description li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
}

/* Images des étapes */
.step-media {
    margin-top: 30px;
}

.step-single-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.step-single-image:hover {
    transform: translateY(-5px);
}

.step-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Galerie 3 images */
.step-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    height: 400px;
}

.gallery-main {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
}

.gallery-side-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.gallery-side-item:hover {
    transform: scale(1.02);
}

.gallery-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vidéo YouTube responsive */
.youtube-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Layout alternatif pour varier */
.method-step.reverse .row {
    flex-direction: row-reverse;
}

/* Section introduction */
.intro-section {
    background: var(--blue-ultra-light);
    padding: 80px 0;
}

.intro-content {
    background: white;
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.intro-highlight {
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intro-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--gray-700);
}

/* Timeline connector */
.timeline-connector {
    position: absolute;
    left: -20px;
    top: 40px;
    bottom: -100px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-orange), var(--orange-light));
    z-index: 1;
}

.method-step:last-child .timeline-connector {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .method-step {
        margin-bottom: 60px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        top: -10px;
        left: 7px;
    }
    
    .step-content {
        margin-left: 40px;
        padding: 25px;
    }
    
    .step-content::before {
        left: -40px;
        width: 40px;
    }
    
    .step-title {
        font-size: 1.3rem;
        margin-left: 10px;
    }
    
    .step-description {
        margin-left: 10px;
    }
    
    .step-gallery {
        grid-template-columns: 1fr;
        height: auto;
        gap: 10px;
    }
    
    .gallery-side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .timeline-connector {
       display: none;
    }
    
    .intro-content {
        padding: 30px;
    }
    
    .intro-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .gallery-side {
        grid-template-columns: 1fr;
    }
    
    .step-gallery {
        height: auto;
    }
    
    .gallery-main,
    .gallery-side-item {
        height: 200px;
    }
}

/* Animations */
.method-step {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.method-step.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Page Valeur ajoutée - Cards flip CORRIGÉES */

/* Section valeur ajoutée */
.value-section {
    padding: 80px 0;
}

/* Container des cards */
.value-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

/* Card flip container */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* Faces avant et arrière - CORRECTION ICI */
.flip-card-front, .flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    box-sizing: border-box;
}

/* Face avant */
.flip-card-front {
    background: linear-gradient(135deg, var(--primary-blue), var(--blue-light));
    color: white;
    z-index: 2;
    transform: rotateY(0deg);
}

.flip-card-icon {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
}

.flip-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 3;
    line-height: 1.3;
    color: white !important;
}

.flip-indicator {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 0.8rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
}

/* Face arrière */
.flip-card-back {
    background: white;
    color: var(--gray-700);
    transform: rotateY(180deg);
    justify-content: flex-start;
    text-align: left;
    border: 2px solid var(--primary-orange);
    z-index: 1;
}

.flip-card-back-title {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

.flip-card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    width: 100%;
    overflow-y: auto;
    flex: 1;
    display: flex;
    align-items: center;
}

/* Introduction */
.intro-section {
    background: var(--blue-ultra-light);
    padding: 80px 0;
}

.intro-content {
    background: white;
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.intro-highlight {
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--gray-700);
}

/* Animation au chargement */
.flip-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.flip-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Mode mobile - tap pour flip */
@media (max-width: 768px) {
    .value-cards-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .flip-card {
        height: 320px;
    }
    
    .flip-card-front, .flip-card-back {
        padding: 25px;
    }
    
    .flip-card-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .flip-card-title {
        font-size: 1.2rem;
    }
    
    .flip-card-description {
        font-size: 0.9rem;
    }
    
    .intro-content {
        padding: 30px;
    }
    
    .intro-text {
        font-size: 1.1rem;
    }
    
    /* Sur mobile, désactiver le hover et utiliser le clic */
    .flip-card:hover .flip-card-inner {
        transform: none;
    }
}

@media (max-width: 576px) {
    .value-cards-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .flip-card {
        height: 280px;
    }
    
    .flip-card-front, .flip-card-back {
        padding: 20px;
    }
    
    .flip-card-description {
        font-size: 0.85rem;
    }
    
    .flip-card-back-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
}

/* Logo responsive */
.navbar-logo {
    height: 40px;
    width: auto;
    transition: height 0.3s ease;
}

/* Bouton téléphone tablette */
.phone-icon-only {
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 50%;
}

.phone-icon-only:hover {
    transform: translateY(-1px);
}

/* Ajustements responsive navbar */
@media (min-width: 768px) and (max-width: 1199px) {
    /* Tablette : 768px à 1199px */
    .navbar-modern {
        padding: 12px 0;
    }
    .stat-number {
    font-size: 2rem;
    }
    .hero-section {
    padding: 200px 0 80px;
    }
}

@media (min-width: 1200px) {
    /* Desktop : ≥1200px */
    .navbar-modern {
        padding: 15px 0;
    }
    
    .navbar-logo {
        height: 50px; /* Plus grand sur desktop */
    }
}

@media (max-width: 767px) {
    /* Mobile : <768px */
    .navbar-modern {
        padding: 8px 0;
    }
    
    .navbar-logo {
        height: 35px; /* Plus petit sur mobile */
    }
}

/* Face avant avec image de fond */
.flip-card-front {
    background: linear-gradient(135deg, var(--primary-blue), var(--blue-light));
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 2;
    transform: rotateY(0deg);
}

/* Image de fond pour les cards avec photo */
.flip-card-front.with-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay pour garder la lisibilité du texte */
.flip-card-front.with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(32, 73, 126, 0.6), 
        rgba(58, 95, 150, 0.6)
    );
    border-radius: var(--border-radius-lg);
    z-index: 1;
}

/* Assurer que l'icône et le texte soient au-dessus */
.flip-card-icon,
.flip-card-title {
    position: relative;
    z-index: 3;
}

.flip-card-icon {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.flip-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .flip-card-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .flip-card-title {
        font-size: 1.2rem;
    }
    .h1-mobile{
        font-size: calc(1.375rem + 1.5vw);
    }
    .lead-mobile{
        font-size: calc(1rem + 1vw);
    }
}

/* Styles pour la carte interactive ADVICE */
#interactive-map {
    height: 500px; 
    width: 100%;
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 8px 25px rgba(32, 73, 126, 0.15);
    z-index: 1;
}

.custom-popup .leaflet-popup-content-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(32, 73, 126, 0.15);
}

.custom-popup .leaflet-popup-content {
    margin: 15px;
    line-height: 1.4;
}

.project-popup h4 {
    color: #20497E;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: bold;
}

.project-popup p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.project-popup .project-type {
    background: #F59C33;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 8px;
    font-weight: bold;
}

/* Boutons de navigation au-dessus de la carte */
.map-navigation {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.map-nav-btn {
    background: #20497E;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(32, 73, 126, 0.2);
}

.map-nav-btn:hover,
.map-nav-btn.active {
    background: #F59C33;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 73, 126, 0.3);
}

.map-stats {
    background: rgba(255,255,255,0.9);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
    color: #20497E;
    font-weight: bold;
}

/* CSS Responsive pour les Flip Cards */
/* CSS Responsive pour les Flip Cards */

/* APPAREILS TACTILES (Mobile, Tablette, iPad) - Affichage linéaire */
@media (hover: none) and (pointer: coarse), (max-width: 768px) {
    /* Container des cards */
    .value-cards-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        margin-top: 50px;
    }

    /* Supprimer tout effet flip sur appareils tactiles */
    .flip-card {
        background-color: transparent;
        width: 100%;
        height: auto; /* Hauteur automatique */
        perspective: none; /* Supprimer la perspective 3D */
        cursor: default; /* Pas de cursor pointer */
    }

    .flip-card-inner {
        position: relative;
        width: 100%;
        height: auto;
        text-align: left;
        transition: none; /* Supprimer toutes les transitions */
        transform-style: flat; /* Pas de 3D */
        transform: none; /* Supprimer toute transformation */
    }

    /* Réorganiser les faces pour affichage linéaire */
    .flip-card-front, .flip-card-back {
        position: relative; /* Pas d'absolute positioning */
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        -webkit-backface-visibility: visible;
        backface-visibility: visible;
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-soft);
        display: block; /* Affichage normal */
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0;
        box-sizing: border-box;
        transform: none; /* Supprimer les rotations */
    }

    /* Face avant - Garder l'apparence desktop */
    .flip-card-front {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        color: white;
        position: relative;
        height: 250px; /* Hauteur suffisante pour le contenu centré */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 30px;
        margin-bottom: 0;
        border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
        text-align: center;
    }

    .flip-card-front.with-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, 
            rgba(32, 73, 126, 0.6), 
            rgba(58, 95, 150, 0.6)
        );
        border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
        z-index: 1;
    }

    .flip-card-icon {
        font-size: 2.5rem;
        color: var(--primary-orange);
        margin-bottom: 15px;
        position: relative;
        z-index: 3;
    }

    .flip-card-title {
        font-size: 1.2rem;
        font-weight: 600;
        margin: 0;
        line-height: 1.3;
        color: white !important;
        position: relative;
        z-index: 3;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }

    /* Face arrière - Contenu texte */
    .flip-card-back {
        background: white;
        color: var(--gray-700);
        border: 2px solid var(--blue-ultra-light);
        border-top: none;
        padding: 25px;
        border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
        box-shadow: var(--shadow-soft);
    }

    .flip-card-back-title {
        display: none; /* Masquer le titre dupliqué */
    }

    .flip-card-description {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: left;
        width: 100%;
        margin: 0;
        color: var(--gray-700);
    }

    /* Supprimer les indicateurs de flip */
    .flip-indicator {
        display: none;
    }

    /* Supprimer les classes de state sur tactile */
    .flip-card.flipped .flip-card-inner,
    .flip-card:hover .flip-card-inner {
        transform: none;
    }

    .flip-card.touching {
        transform: none;
    }
}

/* DESKTOP avec capacités hover - Effet flip conservé */
@media (hover: hover) and (pointer: fine) {
    /* Container des cards */
    .value-cards-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 40px;
        margin-top: 50px;
    }

    /* Card flip container - comportement normal desktop */
    .flip-card {
        background-color: transparent;
        width: 100%;
        height: 300px;
        perspective: 1000px;
        cursor: pointer;
    }

    .flip-card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        text-align: center;
        transition: transform 0.8s;
        transform-style: preserve-3d;
    }

    .flip-card:hover .flip-card-inner {
        transform: rotateY(180deg);
    }

    /* Faces avant et arrière - comportement normal desktop */
    .flip-card-front, .flip-card-back {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-soft);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 30px;
        box-sizing: border-box;
    }

    /* Face avant desktop */
    .flip-card-front {
        background: linear-gradient(135deg, var(--primary-blue), var(--blue-light));
        color: white;
        position: relative;
        overflow: hidden;
        z-index: 2;
        transform: rotateY(0deg);
    }

    .flip-card-front.with-image {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .flip-card-front.with-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, 
            rgba(32, 73, 126, 0.6), 
            rgba(58, 95, 150, 0.6)
        );
        border-radius: var(--border-radius-lg);
        z-index: 1;
    }

    .flip-card-icon,
    .flip-card-title {
        position: relative;
        z-index: 3;
    }

    .flip-card-icon {
        font-size: 3rem;
        color: var(--primary-orange);
        margin-bottom: 20px;
    }

    .flip-card-title {
        font-size: 1.4rem;
        font-weight: 600;
        margin: 0;
        line-height: 1.3;
        color: white !important;
    }

    /* Face arrière desktop */
    .flip-card-back {
        background: white;
        color: var(--gray-700);
        transform: rotateY(180deg);
        justify-content: flex-start;
        text-align: left;
        border: 2px solid var(--primary-orange);
        z-index: 1;
    }

    .flip-card-back-title {
        color: var(--primary-blue);
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 20px;
        text-align: center;
        width: 100%;
    }

    .flip-card-description {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: center;
        width: 100%;
        overflow-y: auto;
        flex: 1;
        display: flex;
        align-items: center;
    }

    /* Indicateur de flip sur desktop */
    .flip-indicator {
        position: absolute;
        bottom: 15px;
        right: 15px;
        font-size: 0.8rem;
        opacity: 0.8;
        display: flex;
        align-items: center;
        gap: 5px;
        z-index: 3;
    }
}

/* Animation au chargement */
.flip-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.flip-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Très petits écrans - ajustements supplémentaires */
@media (max-width: 480px) {
    .value-cards-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .flip-card-front {
        height: 220px;
        padding: 20px;
    }
    
    .flip-card-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .flip-card-title {
        font-size: 1.1rem;
    }
    
    .flip-card-back {
        padding: 20px;
    }
    
    .flip-card-description {
        font-size: 0.9rem;
    }
}


/* Styles pour la Hero Section Home Mobile */

/* Desktop et tablette - comportement par défaut conservé pour la home */
@media (min-width: 769px) {
    .hero-home {
        background-image: url('../img/advice-solution.jpg');
        background-size: cover;
        background-position: center center;
        background-attachment: fixed;
        background-repeat: no-repeat;
        color: white;
        padding: 320px 0 180px;
        position: relative;
        overflow: hidden;
    }
    
    .hero-home::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1;
    }
    
    .hero-home .hero-content {
        position: relative;
        z-index: 2;
    }
}

@supports (-webkit-touch-callout: none) {
    .hero-home {
        background-attachment: scroll;
        /* Force le cover sur iOS */
        background-size: cover !important;
        /* Améliore le rendu sur iOS */
        -webkit-background-size: cover;
    }
}

/* Mobile - nouvelle présentation UNIQUEMENT pour la home */
@media (max-width: 768px) {
    .hero-home {
        /* Supprimer l'image de fond sur mobile */
        background: none;
        background-color: white;
        color: var(--gray-700);
        padding: 60px 0 40px;
        position: relative;
        overflow: visible;
    }
    
    /* Supprimer l'overlay sur mobile */
    .hero-home::before {
        display: none;
    }
    
    .hero-home .hero-content {
        position: relative;
        z-index: 1;
        margin-bottom: 30px;
    }
    
    /* Ajuster les couleurs du texte pour le fond blanc */
    .hero-home .text-primary-orange {
        color: var(--primary-orange) !important;
    }
    
    .hero-home .lead {
        color: var(--gray-700) !important;
    }
    
    /* Container pour l'image mobile */
    .hero-home .hero-image-mobile {
        width: 100%;
        margin-top: 30px;
        border-radius: var(--border-radius-lg);
        overflow: hidden;
        box-shadow: var(--shadow-soft);
    }
    
    .hero-home .hero-image-mobile img {
        width: 100%;
        height: auto;
        display: block;
        aspect-ratio: 16/9; /* Format paysage */
        object-fit: cover;
    }
    
    /* Ajustements des boutons pour le nouveau contexte */
    .hero-home .btn-outline-light {
        border-color: var(--primary-blue);
        color: var(--primary-blue);
        background: transparent;
    }
    
    .hero-home .btn-outline-light:hover {
        background: var(--primary-blue);
        color: white;
    }
}

/* Très petits écrans */
@media (max-width: 576px) {
    .hero-home {
        padding: 90px 0 30px;
    }
    
    .hero-home .hero-content {
        margin-bottom: 20px;
    }
    
    .hero-home .hero-image-mobile {
        margin-top: 20px;
        border-radius: var(--border-radius);
    }
    
    .hero-home .hero-image-mobile img {
        aspect-ratio: 4/3; /* Ratio un peu plus carré sur très petits écrans */
    }
}

/* Animation pour l'image mobile */
@media (max-width: 768px) {
    .hero-home .hero-image-mobile {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.8s ease-out 0.3s forwards;
    }
    
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Ajustements supplémentaires pour les classes existantes sur mobile */
@media (max-width: 768px) {
    .hero-home .h1-mobile {
        font-size: calc(1.5rem + 0.9vw);
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .hero-home .lead-mobile {
        font-size: calc(1rem + 0.5vw);
        line-height: 1.4;
        margin-bottom: 25px;
    }
    
    /* Espacement des boutons sur mobile */
    .hero-home .d-flex.gap-3 {
        gap: 15px !important;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-home .btn {
        width: 100%;
        max-width: 280px;
        padding: 15px 20px;
    }
}