@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Montserrat:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght,wdth@8..144,900,75&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Roboto+Flex:opsz,wght,wdth@8..144,900,75&display=swap');

.mobile-only {
    display: none;
  }
  .desktop-only {
    display: none;
} 
.main-container {
    width: 1320px;
	margin: 0px auto 0;
	background: transparent;
	padding: 0px;
}
/* ------------------------------------------------BODY--------------------------------------------------- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: url('images/fondcarbone.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    font-family: 'Open Sans';
    padding-top: 110px;
}
/* -----------------------------------------------HEADER-------------------------------------------------- */
header {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    background-color: #1B3A5C;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 110px;
}
.header-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    position: relative;
    padding: 0 20px;
}
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}
.logo img {
    height: 108px;
    width: auto;
    margin-top: 5px;
}
/* -----------------------------------------------TOPNAV----------------------------------------------------- */
.topnav {
    display: flex;
    gap: 20px;
    background-color: transparent;
    align-items: center;
    margin-top: 10px;
    position: relative;
}

/* Liens de navigation */
.topnav a {
    color: #2E6DA4;
    font-size: 14x;
    padding: 4px 4px; /* réduit horizontal ET vertical */
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s ease;
    font-family: 'Roboto Flex', sans-serif;
    font-weight: 900;
    font-stretch: 75%;
}


.topnav a:hover {
    background-color: #ddd;
    color: black;
    transform: scale(1.1);
}

.topnav a.active {
    background-color: transparent;
    color: white;
}
.topnav a.icon {
    display: none;
}
.mobile-phone-link {
    display: none;
}
.contact-phone {
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
    background-color: #1B3A5C;
    padding: 8px 12px;
    border-radius: 5px;
    white-space: nowrap;
    text-decoration: none;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 10;
}

.topnav {
    margin-top: 10px;
    position: relative;

}
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin-left: auto;
    padding: 0;
}
nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 18px;
    white-space: nowrap;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
}
nav ul li a:hover {
    background-color: #143050;
    transform: translateY(-3px);
    color: #fff;
}
/*--------------------------------------------------FOOTER-------------------------------------------------*/ 
footer {
    font-family: 'Open Sans', sans-serif;
    color: #a1a1a1;
    background-color: #1B3A5C;
    padding: 20px;
    text-align: center;
    position:relative;
}
.footer-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    gap: 20px;
    padding: 0 20px;
    text-align: left;
}
.footer-column {
    flex: 1 1 auto;
    min-width: 250px;
}
.footer-column h3 {
    margin-bottom: 10px;
    font-weight: 700;
    color: #f0f0f0;
}
.footer-column a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}
.footer-column a:hover {
    text-decoration: underline;
}
.legal-info p {
    font-size: 14px;
    color: #ddd;
    margin: 10px 0 0;
    text-align: center;
}
.footer-column.contact-info p {
    justify-content: flex-start;
}
    .cta {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .cta button {
        width: 80%;
        font-size: 1.5em;
    }
    .testimonials {
        flex-wrap: wrap;
        justify-content: center;
    }
    .testimonial {
        width: 90%;
        margin-bottom: 20px;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-column {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .footer-column.site-map {
        display: none;
    }
    .footer-container {
        display: flex;
        flex-direction: column;
    }
    .footer-column.contact-info {
        order: 1;
    }
    .footer-column.legal-info {
        order: 2;
    }
/* ------------------------------------------------INDEX-------------------------------------------------- */
.contact-btn {
    position: fixed;
    top: 50%;
    right: -80px;
    transform: translateY(-50%) rotate(-90deg);
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    padding: 20px 0;
    font-size: 1.4em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
    z-index: 9999;
    width: 200px;
    height: 40px;
    white-space: nowrap;
    border-radius: 5px;
    border: #000000;
}
.contact-btn:hover {
    background-color: #2E6DA4;
}
.hero {
    position: relative;
    height: 425px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(0, 0, 0);
    text-align: center;
    background-color: #ffffff;
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
}
.hero-overlay {
    position: absolute;
    z-index: 10;
    padding: 20px;
    color: rgb(20, 20, 20);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}
.hero-overlay h1 {
    font-size: 4rem;
    margin: 0;
    font-family: 'Lora', serif;
}
.hero-overlay h2 {
    font-size: 2.5rem;
    margin: 10px 0 0;
    font-family: 'Lora', serif;
    
}
/*---------bouton coté droit -----------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.testimonials-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px;
    background-color: white;
    padding: 50px 20px;
    position: relative;
    z-index: 1;
}
.testimonials {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    max-width: 100%;
    padding: 20px 0;
}
.testimonial {
    background-color: #1B3A5C;
    color: white;
    padding: 20px;
    border-radius: 20px;
    width: 250px;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid #2E6DA4;
}
.testimonials-container::after {

    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 18px;
    z-index: 0;
    pointer-events: none;
}
.see-all-reviews button {
    background-color: #2689c7;
    color: rgb(128, 35, 35);
    padding: 20px 40px;
    border: 1px solid #d60e0e;
    border-radius: 60px;
    font-size: 2em;
    cursor: pointer;
    box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.2);
    margin: 50px 0;
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: transform 0.2s, opacity 0.2s;
    cursor: pointer;
    transition: background-color 0.3s;
    font-style: italic;
    text-shadow: 
    -1px -1px 2px black;
}
.stars {
    color: #FFD700;
    font-size: 1em;
}
.engagements {
    width: 100%;
    min-height: 800px;
    padding: 40px;
    background-color: #1B3A5C93;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.engagements-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    width: 100%;
    font-family: 'Merriweather Sans', sans-serif;
    font-weight: 600;
    font-size: 20px;
}

.engagements-image {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    margin-left: 300px;
    max-width: 900px;
    height: auto;
}

.panneau {
    background-color: #f4f4f4;
    border: 2px solid #2E6DA4;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    border-radius: 8px;
    margin-top: 140px;
    font-family: 'Merriweather Sans', sans-serif;
    font-weight: 600;
}

.panneau h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #000000;
}

.panneau h2 {
    margin-bottom: 20px;
    color: rgb(0, 0, 0);
    font-size: 2em;
}

.panneau .highlight {
    color: red;
}

.panneau ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    border-radius: 8px;
    padding: 15px;
}

.panneau li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    color: #000000;
}

.panneau .check-icon {
    color: rgb(1, 161, 15);
    margin-right: 10px;
    font-size: 20px;
}

.engagements-text {
    flex: 1;
    text-align: left;
    max-width: 50%;
    margin-left: auto;
    margin-top: 120px;
    padding-left: 10px;
}
.engagements-text h2{
    font-family: 'Merriweather Sans', sans-serif;
    font-weight: 600;
    font-size: 40px;
    color: #ffffff;

}

.engagements h3 {
    text-align: left;
    color: white;
    margin-bottom: 30px;
    max-width: 100%;
}

.engagements-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    color: white;
}

.engagements-list li {
    font-size: 1.8rem; /* plus grand */
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.engagements ul li strong {
    display: inline-block;
    margin-left: 10px;
}

.check-icon {
    color: green;
    font-size: 1.5em;
    margin-right: 10px;
}


.btn-devis {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #2E6DA4;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.btn-devis:hover {
    background-color: #143050;
}
.btn-devis {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #2E6DA4;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.btn-devis:hover {
    background-color: #143050;
}
.presentation {
  background-color: #1B3A5C;
  display: flex;
  justify-content: center;
  padding: 60px 20px;
  color: white;
}
.presentation-box {
  background-color: rgb(255, 255, 255);
  color: black;
  display: flex;
  flex-direction: row;
  gap: 40px;
  border-radius: px;
  padding: 80px;
  max-width: 1200px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  flex-wrap: wrap;
}
.left-content, .right-content {
  flex: 1 1 45%;
  min-width: 300px;
}
.left-content h3 {
  font-size: 1.6em;
  text-align: left;
  margin: 0;
}

.right-content h4 {
  font-size: 1.5em;
  font-weight: bold;
  text-align: left;
  margin: 0 0 10px 0;
}
.right-content p {
  font-size: 1.2em;
  text-align: left;
  margin: 0;
}
.container-mission {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(255, 255, 255);
    min-height: 30px;
    box-sizing: border-box;
}
.ourmission {
    text-align: center;
    margin-bottom: 40px;
    font-size: 3rem;
    font-family: 'Merriweather Sans', sans-serif;
    font-weight: 600;
}
.container-mission > .mission-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.mission {
    background-color: #1B3A5C;
    padding: 30px;
    width: 300px;
    min-height: 160px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    text-align: center;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: all 0.4s ease;
    
}
.mission:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.contact-info {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    padding: 20px;
    gap: 20px;
    color: white;
    background-color: #1B3A5C;
    box-sizing: border-box;
    text-decoration: none;

}
.contact-info a {
    color: white;
    text-decoration: none;
      font-family: 'Roboto Flex', sans-serif;
  font-weight: 900;
  font-stretch: 75%;
}
.contact-item {
    width: 30%;
    box-sizing: border-box;
}
.contact-info a {
    color: white;
}
.contact-info a:hover {
    text-decoration: underline;
}
.social-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    top: 2px;
}

.facebook-link,
.instagram-link {
    text-decoration: none;
    color: white;
}

.facebook-link:hover,
.instagram-link:hover {
    text-decoration: underline;
}

.appel h1 {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    padding: 1px;
    gap: 10px;
    color: white;
    background-color: #2E6DA4;
    box-sizing: border-box;
}
.realisations-grid {
    background-color: #fff;
    padding: 60px 20px;
  }
  .realisations-grid .grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  .realisations-grid .item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(.16,1,.3,1), box-shadow 0.5s cubic-bezier(.16,1,.3,1);
    transform-style: preserve-3d;
    perspective: 600px;
    will-change: transform;
    border-radius: 12px;
    padding: 12px;
    position: relative;
  }
  .realisations-grid .item::after {
    content: 'Voir le projet';
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #2E6DA4;
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s cubic-bezier(.16,1,.3,1);
    pointer-events: none;
    white-space: nowrap;
  }
  .realisations-grid .item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  .realisations-grid .item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(.16,1,.3,1), box-shadow 0.5s cubic-bezier(.16,1,.3,1);
  }
  .realisations-grid .item:hover img {
    box-shadow: 0 16px 40px rgba(27,58,92,0.3);
  }
  .realisations-grid .item h3 {
    margin-top: 15px;
    font-size: 1.1rem;
    color: #1B3A5C;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s;
  }
  .realisations-grid .item:hover h3 {
    color: #2E6DA4;
  }
  .realisations-grid .item p {
    font-size: 0.95rem;
    color: #555;
    margin-top: 5px;
  }
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lightbox-overlay.hidden {
  display: none;
}
.lightbox-image {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
}
.lightbox-nav {
  color: white;
  margin-top: 20px;
  font-size: 1.5rem;
  display: flex;
  gap: 20px;
  align-items: center;
}
.lightbox-arrow {
  cursor: pointer;
  font-weight: bold;
}
/* -----------------------------------------------WHO-PAGE----------------------------------------------- */
.who-page {
    background-color: #1B3A5C;
    color: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 4px 8px rgb(0, 0, 0);
    margin: auto;
    border: 2px solid #2E6DA4;
}
.section-background {
    background-color: #ffffff;
    padding: 60px 20px;
}
.who-page h1 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}
.who-page p {
    font-size: 16px;
    line-height: 1.6;
    font-family: 'Lora', serif;
}
.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.presentation-arnaud,
.presentation-pierre {
    background-color: #1B3A5C;
    color: white;
    padding: 50px;
    border-radius: 10px;
    max-width: 430px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    flex: 1;
    min-width: 350px;
    margin-bottom: 30px;
    border: 2px solid #b0b0b0;
}
.presentation-arnaud h2,
.presentation-pierre h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}
.presentation-arnaud p,
.presentation-pierre p {
    font-size: 16px;
    line-height: 1.9;
    font-family: 'Lora', serif;
}
/*---------------------------------------------SERVICES PAGE ----------------------------------------------*/
.service-card {
    background-color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 60px 40px;
    margin: 0 auto;
    width: 100%;
    max-width: none;
    min-height: 300px;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 90%;
    max-width: 1200px;
}
.plan-image {
    width: 500px;
    height: auto;
    margin-right: 30px;
}
.text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}
h1, h2 {
    margin: 0;
    padding: 0;
}
ul {
    padding-left: 20px;
    list-style-type: none;
}
li {
    margin-bottom: 10px;
}
.services-section {
    background-color: #1B3A5C93;
    padding: 60px 0;
  }
  .ourservice {
    text-align: center;
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: bold;
    background-color: #1B3A5C93;
  }
  .container-service {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 5%;
    max-width: 1300px;
    margin: auto;
  }
  .service {
    background-color: transparent;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
  }
  .service-toggle {
    background-color: #ffffff;
    color: #000000;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    font-size: 1.6rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(.16,1,.3,1);
    border: 2px solid transparent;
    z-index: 1;
  }
  /* Spotlight gradient qui suit le hover */
  .service-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(46,109,164,0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 0;
  }
  /* Barre lumineuse en bas */
  .service-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #2E6DA4, #5a9fd4, #2E6DA4, transparent);
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(.16,1,.3,1);
  }
  /* Indicateur + qui devient × quand ouvert */
  .service-toggle .toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #2E6DA4;
    margin-left: 16px;
    font-size: 20px;
    font-weight: 300;
    color: #2E6DA4;
    transition: all 0.4s cubic-bezier(.16,1,.3,1);
    flex-shrink: 0;
  }
  .service:hover .service-toggle .toggle-icon {
    background: #2E6DA4;
    color: #ffffff;
  }
  .service.open .service-toggle .toggle-icon {
    transform: rotate(45deg);
    background: #2E6DA4;
    color: #ffffff;
  }

  .service:hover .service-toggle {
    background-color: #1B3A5C;
    color: #ffffff;
    border-color: #2E6DA4;
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(27,58,92,0.35);
  }
  .service.open .service-toggle {
    background-color: #1B3A5C;
    color: #ffffff;
    border-color: #2E6DA4;
    border-radius: 15px 15px 0 0;
  }
  .service:hover .service-toggle::before {
    opacity: 1;
  }
  .service:hover .service-toggle::after,
  .service.open .service-toggle::after {
    transform: scaleX(1);
  }
  /* Reveal du contenu au hover */
  .service p {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    margin: 0;
    opacity: 0;
    background: linear-gradient(180deg, #143050, #1B3A5C);
    color: #d0dded;
    text-align: left;
    font-size: 15px;
    line-height: 1.7;
    transition: max-height 0.6s cubic-bezier(.16,1,.3,1), padding 0.5s cubic-bezier(.16,1,.3,1), opacity 0.4s ease 0.1s;
    border-radius: 0 0 15px 15px;
    border-left: 2px solid #2E6DA4;
    border-right: 2px solid #2E6DA4;
    border-bottom: 2px solid #2E6DA4;
  }
  .service:hover p,
  .service p.active {
    max-height: 500px;
    padding: 24px;
    opacity: 1;
  }
/* ------------------------------------------MENTIONS LEGALES--------------------------------------------- */
.container-section {
    flex: 1;
}
.container-section h1{
    font-size: 30px;
    text-align: center;
    font-weight: bold;
}
.container-section h2{
    font-size: 17px;

    font-weight: bold;
}
.container-section h3{
    font-size: 17px;

    font-weight: bold;
}
.container-section p{
    font-size: 15px;
}
.confidentialité h3{
    font-size: 50px;
}
/* ---------------------------------------------PROJETS--------------------------------------------------- */
.toggle-phase {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    transition: color 0.3s ease;
    color: #333;
  } 
.toggle-phase:hover {
    color: #007bff;
  }
.container-projet {
background-color: #1B3A5C93; 
}
.container-projet h2 {
    text-align: center;
    font-size: 60px;
    color: #ffffff;
    border: 18px; 
    font-weight: bold;
  font-family: 'Roboto Flex', sans-serif;
  font-weight: 900;
  font-stretch: 75%;

}
    #imagePopup {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1000;
    }
    #imagePopup img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
    }
    #imagePopup .close {
        position: absolute;
        top: 20px;
        right: 30px;
        font-size: 30px;
        color: white;
        cursor: pointer;
    }
.image-projet {
    text-align: center;
    padding: 40px 20px;
    background: transparent;
    border-radius: 10px;
    max-width: 1200px;
    margin: auto;
}
.image-projet h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}
.image-projet p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}
.photo-projet {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: auto;
}
.photo-projet img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-projet img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.popup img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}
.popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}
.phase {
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 800px;
    border: 2px solid #2E6DA4;
    border-radius: 20px;
    cursor: pointer;

    /* Ajout Flexbox pour centrage */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 200px;
    transition: all 0.5s cubic-bezier(.16,1,.3,1);
    overflow: hidden;
    position: relative;
}
/* ── Curtain Reveal ── */
.phase::before,
.phase::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: #ffffff;
    z-index: 2;
    transition: transform 0.7s cubic-bezier(.16,1,.3,1);
    pointer-events: none;
}
.phase::before {
    left: 0;
    transform-origin: left;
    border-radius: 20px 0 0 20px;
}
.phase::after {
    right: 0;
    transform-origin: right;
    border-radius: 0 20px 20px 0;
}
/* Spotlight qui suit la souris */
.phase .phase-spotlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 180px at var(--sx, 50%) var(--sy, 50%), rgba(46,109,164,0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 4;
    border-radius: 20px;
}
.phase:hover .phase-spotlight {
    opacity: 1;
}
/* Au hover : les rideaux bougent légèrement pour teaser */
.phase:hover::before {
    transform: translateX(-8px);
}
.phase:hover::after {
    transform: translateX(8px);
}
.phase:hover {
    border-color: #5a9fd4;
    box-shadow: 0 12px 36px rgba(27,58,92,0.25);
}
/* Active : les rideaux s'ouvrent complètement */
.phase.active::before {
    transform: translateX(-105%);
}
.phase.active::after {
    transform: translateX(105%);
}
.phase.active {
    background-color: #1B3A5C;
    border-color: #2E6DA4;
    box-shadow: 0 16px 48px rgba(27,58,92,0.35);
    align-items: stretch;
    justify-content: flex-start;
}
/* Titres : visibles au-dessus du rideau */
.phase h2 {
    font-size: 48px;
    color: #1B3A5C;
    margin-bottom: 20px;
    text-align: left;
    transition: color 0.5s cubic-bezier(.16,1,.3,1);
    font-family: 'Merriweather Sans', sans-serif;
    font-weight: 600;
    position: relative;
    z-index: 3;
}
.phase.active h2 {
    color: #ffffff;
}
.phase h3 {
    font-size: 1.8rem;
    color: #000000;
    margin: 0;
    text-align: center;
    transition: color 0.5s cubic-bezier(.16,1,.3,1);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    position: relative;
    z-index: 3;
}
.phase.active h3 {
    color: #d0dded;
}
.phase .phase-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s cubic-bezier(.16,1,.3,1) 0.2s;
    position: relative;
    z-index: 1;
}
.phase.active .phase-content {
    max-height: 1000px;
}
.phase.active ul li {
    color: #d0dded;
}
.phase ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.phase ul li {
    font-size: 1.3em;
    line-height: 1.4;
    color: #000000;
    padding-left: 25px;
    position: relative;
    margin-bottom: 12px;
}
.phase-toggle {
    background-color: #1B3A5C;
    color: #ffffff;
    padding: 20px;
    font-size: 2.2rem;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 6px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
}
.phase-toggle:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.phase.active {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    z-index: 1;
    align-items: stretch;
    justify-content: flex-start;
}
.gallery-container {
    height: 100%;
    background: white;
  } 
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px 20px;
}
.gallery-item {
  cursor: pointer;
  text-align: center;
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
  }
.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item h3 {
  margin-top: 10px;
  font-size: 1rem;
  color: #1B3A5C;
  font-weight: 600;
}

.gallery-item p {
  font-size: 0.9rem;
  font-weight: bold;
  color: #333;
}
.ourprojects {
    text-align: center;
    color: #000000;
    font-weight: bold;
  font-family: 'Roboto Flex', sans-serif;
  font-weight: 900;
  font-stretch: 75%;
    margin-bottom: 40px;
    font-size: 3.6rem;
  }
/*--------------------------------------------------CONTACT-----------------------------------------------*/
.contact-logo {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.contact-page {
    background-color: #1B3A5C9a;
    padding: 100px 20px;
}

.contact-main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-card {
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 60px 40px;
    margin-top: -150px;
    width: 90%;
    max-width: 800px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 6px solid #333;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.contact-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.contact-main h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-align: center;
}

.contact-info-left {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 20px;
}

.contact-info-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-card p {
    font-size: 1.1rem;
    margin: 15px 0;
    color: #444;
}

.contact-card a {
    color: #0077cc;
    text-decoration: none;
    word-break: break-word;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #005299;
    text-decoration: underline;
}
  /* ----------------------------------------- Responsivité -----------------------------------------------*/
/* -------------------MEDIA QUERIES POUR MOBILE ET TABLETTE-------------------- */




/* À partir de 1200px et moins */
@media (max-width: 1200px) {
    .service-card {
        padding: 50px 30px;
    }

    .content-wrapper {
        flex-direction: row;
    }

    .plan-image {
        max-width: 50%;
        display: block; /* Ajout de display:block pour gérer le centrage */
        margin: 0 auto; /* Centrage horizontal */
    }

    .text-content {
        max-width: 45%;
    }
    .engagements-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .engagements-image {
        margin-left: 0;
        max-width: 100%;
    }
    .engagements-text {
        max-width: 90%; 
        padding-left: 20px;
    }
    .engagements h2 {
        font-size: 1.8em;
    }
    .engagements h3 {
        font-size: 1.2em;
        text-align: center;
    }
    .engagements li {
        font-size: 1em;
    }
}

/* À partir de 992px et moins (tablettes & mobile) */
@media (max-width: 992px) {
    .mobile-only {
        display: inline-block;
    }
    .desktop-only {
        display: none;
    }

    /* ── Header compact ── */
    header { height: 60px; }
    body { padding-top: 60px; }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }

    /* Logo à gauche */
    .logo {
        position: static;
        transform: none;
    }
    .logo img {
        height: 50px;
        margin-top: 0;
    }

    /* Téléphone visible à côté du logo */
    .contact-phone {
        position: static;
        transform: none;
        font-size: 0.85em;
        padding: 5px 8px;
        background: transparent;
        order: 1;
    }

    /* ── Burger icon ── */
    .topnav {
        display: flex;
        align-items: center;
        gap: 0;
        margin-top: 0;
    }
    .topnav > a:not(.icon) {
        display: none;
    }
    .topnav a.icon {
        display: flex;
        align-items: center;
        justify-content: center;
        position: static;
        transform: none;
        font-size: 24px;
        color: white;
        cursor: pointer;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        transition: background 0.3s;
    }
    .topnav a.icon:hover {
        background: rgba(255,255,255,0.1);
    }

    /* ── Menu overlay plein écran ── */
    .topnav.responsive {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(20,48,80,0.98);
        backdrop-filter: blur(12px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        z-index: 9999;
        animation: menuSlideIn 0.4s cubic-bezier(.16,1,.3,1);
    }
    @keyframes menuSlideIn {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .topnav.responsive > a:not(.icon) {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 80%;
        max-width: 320px;
        padding: 18px 20px;
        margin: 4px 0;
        font-size: 18px;
        font-weight: 700;
        color: #F5F3EF;
        text-decoration: none;
        border-radius: 12px;
        border: none;
        border-top: none;
        transition: all 0.3s cubic-bezier(.16,1,.3,1);
        text-align: center;
        background: transparent;
    }
    .topnav.responsive > a:not(.icon):hover,
    .topnav.responsive > a:not(.icon).active {
        background: #2E6DA4;
        color: #ffffff;
        transform: scale(1.03);
    }

    /* Bouton fermer (le burger devient X) */
    .topnav.responsive a.icon {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 28px;
        width: 48px;
        height: 48px;
        z-index: 10000;
    }

    /* Lien téléphone dans le menu mobile */
    .mobile-phone-link {
        display: none;
    }
    .topnav.responsive .mobile-phone-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 80%;
        max-width: 320px;
        padding: 16px 20px;
        margin: 20px 0 4px;
        font-size: 18px;
        font-weight: 700;
        color: #ffffff;
        background: #2E6DA4;
        border-radius: 12px;
        text-decoration: none;
        order: 10;
    }
    .contact-btn {
        width: 180px;
        height: 35px;
        font-size: 1.2em;
        padding: 15px 0;
        right: -70px;
    }

    .mission {
        width: 90%;
        padding: 40px;
    }

    .engagements-box {
        padding: 30px 20px;
    }

    .engagements-box h3 {
        font-size: 1.5em;
        text-align: center;
    }

    .photo-projet {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .center-image {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }

    .center-image img {
        max-width: 80%;
        height: auto;
    }

    .contact-item {
        width: 45%;
    }

    .phase h2 {
        font-size: 1.5em;
    }

    .phase h3 {
        font-size: 1.1em;
    }

    .phase ul li {
        font-size: 1em;
    }

    .contact-main {
        padding: 30px 20px;
    }

    .contact-main h1 {
        font-size: 1.5rem;
    }

    .contact-card p {
        font-size: 1rem;
    }

    .engagements-content {
        padding: 20px;
    }

    .engagements-text {
        max-width: 100%;
        padding-left: 10px;
        margin-top: 30px;
    }

    .engagements-image img {
        max-width: 300px;
        margin-top: 50px;
    }

    .engagements h2 {
        font-size: 1.6em;
    }

    .engagements h3 {
        font-size: 1.1em;
    }

    .engagements ul li {
        font-size: 1.1em;
    }

    
    .service-card {
        padding: 40px 20px;
    }

    .content-wrapper {
        flex-direction: column; /* Passe en disposition verticale */
        align-items: center;
    }

    .plan-image {
        max-width: 80%;
        margin: 0 auto 20px; /* Centrage de l'image avec un espace sous l'image */
    }

    .text-content {
        max-width: 100%;
        padding-left: 0;
        text-align: center;
    }
    .contact-main {
        padding: 30px 20px;
    }
    
    .contact-main h1 {
        font-size: 1.5rem;
    }
    
    .contact-card {
        padding: 40px 20px;
        margin-top: -100px;
    }
    
    .contact-card p,
    .contact-info-left {
        font-size: 1rem;
    }
    
    .contact-info-right {
        align-items: center;
        text-align: center;
    }
    
}

/* À partir de 768px et moins (petites tablettes) */
@media (max-width: 768px) {
    .service-card {
        padding: 30px 15px;
    }

    .plan-image {
        max-width: 90%;
        margin: 0 auto; /* Centrage de l'image */
    }

    .text-content {
        font-size: 0.9em; /* Réduit légèrement la taille du texte */
    }
    .contact-card {
        padding: 30px 15px;
        margin-top: -80px;
    }
    
    .contact-main h1 {
        font-size: 1.8rem;
    }
    
    .contact-card p,
    .contact-info-left {
        font-size: 0.95rem;
    }
    
}

/* À partir de 480px et moins (mobiles) */
@media (max-width: 480px) {
    .contact-card {
        padding: 20px 10px;
        margin-top: -60px;
    }
    
    .contact-main h1 {
        font-size: 1.6rem;
    }
    
    .contact-card p,
    .contact-info-left {
        font-size: 0.9rem;
    }
    
    
    .service-card {
        padding: 20px 10px;
    }

    .plan-image {
        max-width: 100%; /* L'image occupe toute la largeur sur mobile */
        margin: 0 auto 15px; /* Centrage horizontal et espace sous l'image */
    }

    .text-content {
        font-size: 0.8em; /* Réduit davantage la taille du texte */
    }
    .engagements-content {
        flex-direction: column;
        gap: 10px;
    }

    .engagements-image {
        margin-left: 0;
        max-width: 100%;
    }

    .engagements-text {
        max-width: 100%;
        margin-top: 20px;
        padding-left: 5px;
    }

    .engagements h2 {
        font-size: 1.4em;
    }

    .engagements h3 {
        font-size: 1em;
        text-align: center;
    }

    .engagements ul li {
        font-size: 1em;
    }

    .check-icon {
        font-size: 1.2em;
    }

    .contact-btn {
        width: 150px;
        height: 30px;
        font-size: 1em;
        padding: 10px 0;
        right: -60px;
    }

    .contact-item {
        width: 100%;
    }

    .photo-projet {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* EFFETS MODERNES                                                        */
/* ═══════════════════════════════════════════════════════════════════════ */

/* ── Fade-in au scroll ── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Stagger delay pour les groupes ── */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ── Cards missions - hover glow + lift ── */
.mission {
    transition: transform 0.4s cubic-bezier(.16,1,.3,1), box-shadow 0.4s cubic-bezier(.16,1,.3,1), border-color 0.4s;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}
.mission::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(46,109,164,0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.mission:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 32px rgba(27,58,92,0.35);
    border-color: #2E6DA4;
}
.mission:hover::after {
    opacity: 1;
}

/* ── Testimonial cards - hover effet ── */
.testimonial {
    transition: transform 0.4s cubic-bezier(.16,1,.3,1), box-shadow 0.4s cubic-bezier(.16,1,.3,1), border-color 0.4s;
    position: relative;
    overflow: hidden;
}
.testimonial::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 80px;
    color: rgba(46,109,164,0.15);
    font-family: 'Lora', serif;
    pointer-events: none;
    transition: color 0.4s;
}
.testimonial:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
    border-color: #5a9fd4;
}
.testimonial:hover::before {
    color: rgba(46,109,164,0.3);
}

/* ── Service toggle cards - effets gérés dans la section Services ── */

/* ── Presentation box - subtile ── */
.presentation-box {
    transition: box-shadow 0.4s;
}
.presentation-box:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

/* ── Phase cards - effets gérés dans la section Projets ── */

/* ── Gallery items - zoom + shadow ── */
.gallery-item img,
.realisations-grid .item img {
    transition: transform 0.5s cubic-bezier(.16,1,.3,1), box-shadow 0.5s;
}
.gallery-item:hover img,
.realisations-grid .item:hover img {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

/* ── Panneau assurance - glow ── */
.panneau {
    transition: transform 0.4s cubic-bezier(.16,1,.3,1), box-shadow 0.4s, border-color 0.4s;
}
.panneau:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(46,109,164,0.2);
    border-color: #5a9fd4;
}

/* ── Boutons - effet attractif ── */

/* Keyframes */
@keyframes btn-shimmer {
    0% { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(200%) skewX(-15deg); }
}
@keyframes btn-pulse-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(46,109,164,0.3), 0 0 0 0 rgba(46,109,164,0.15); }
    50% { box-shadow: 0 0 16px rgba(46,109,164,0.5), 0 0 30px 4px rgba(46,109,164,0.1); }
}
@keyframes btn-pulse-ring {
    0% { transform: translateY(-50%) rotate(-90deg) scale(1); box-shadow: 0 4px 6px rgba(0,0,0,0.3), 0 0 0 0 rgba(46,109,164,0.4); }
    70% { box-shadow: 0 4px 6px rgba(0,0,0,0.3), 0 0 0 10px rgba(46,109,164,0); }
    100% { transform: translateY(-50%) rotate(-90deg) scale(1); box-shadow: 0 4px 6px rgba(0,0,0,0.3), 0 0 0 0 rgba(46,109,164,0); }
}

/* Btn Devis (CTA principal) */
.btn-devis {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(.16,1,.3,1);
    animation: btn-pulse-glow 2.5s ease-in-out infinite;
}
/* Shimmer lumineux continu */
.btn-devis::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: btn-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}
/* Flash au hover */
.btn-devis::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.btn-devis:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 28px rgba(46,109,164,0.5), 0 0 20px rgba(46,109,164,0.25);
    background-color: #3d8ad0;
    animation: none;
}
.btn-devis:hover::after {
    opacity: 1;
}
.btn-devis:active {
    transform: translateY(-1px) scale(0.98);
}

/* Contact btn fixe (côté droit) */
.contact-btn {
    transition: all 0.4s cubic-bezier(.16,1,.3,1);
    animation: btn-pulse-ring 2.5s ease-out infinite;
    overflow: hidden;
}
.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46,109,164,0.2), transparent);
    animation: btn-shimmer 3.5s ease-in-out infinite;
    pointer-events: none;
}
.contact-btn:hover {
    background-color: #2E6DA4;
    color: #ffffff;
    transform: translateY(-50%) rotate(-90deg) scale(1.08);
    box-shadow: 0 8px 32px rgba(46,109,164,0.5);
    animation: none;
}
.contact-btn:active {
    transform: translateY(-50%) rotate(-90deg) scale(1.02);
}

/* Bouton "Voir les avis" */
.see-all-reviews button {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(.16,1,.3,1);
}
.see-all-reviews button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: btn-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}
.see-all-reviews button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Form submit bouton (page contact) */
.form-submit-ap {
    position: relative;
    overflow: hidden;
    animation: btn-pulse-glow 2.5s ease-in-out infinite;
}
.form-submit-ap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: btn-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}
.form-submit-ap:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 28px rgba(46,109,164,0.5);
    animation: none;
}

/* ── Header - transition fluide au scroll ── */
header {
    transition: box-shadow 0.3s, background-color 0.3s;
}
header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background-color: #142d4a;
}

/* ── Who page cards ── */
.presentation-arnaud,
.presentation-pierre {
    transition: transform 0.4s cubic-bezier(.16,1,.3,1), box-shadow 0.4s, border-color 0.4s;
}
.presentation-arnaud:hover,
.presentation-pierre:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    border-color: #2E6DA4;
}

/* ── Who page box ── */
.who-page {
    transition: transform 0.4s cubic-bezier(.16,1,.3,1), box-shadow 0.4s;
}
.who-page:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

/* ── Stars animation ── */
.stars {
    transition: transform 0.3s;
}
.testimonial:hover .stars {
    transform: scale(1.15);
}

/* ── Smooth scroll global ── */
html {
    scroll-behavior: smooth;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* MOBILE OPTIMISATION COMPLÈTE                                           */
/* ═══════════════════════════════════════════════════════════════════════ */

/* ── Tablettes (768px) ── */
@media (max-width: 768px) {
    /* Header */
    header { height: 80px; }
    body { padding-top: 80px; }
    .logo img { height: 70px; margin-top: 5px; }
    .contact-phone { font-size: 0.9em; padding: 5px 8px; }

    /* Hero */
    .hero { height: 300px; }
    .hero-overlay h1 { font-size: 2.5rem; }
    .hero-overlay h2 { font-size: 1.5rem; }

    /* Presentation */
    .presentation-box { padding: 40px 20px; flex-direction: column; }
    .left-content, .right-content { flex: 1 1 100%; min-width: unset; }

    /* Missions */
    .ourmission { font-size: 2rem; }
    .mission { width: 100%; max-width: 300px; }

    /* Engagements */
    .engagements { padding: 20px; min-height: auto; }
    .engagements-image { margin-left: 0; }
    .engagements-text { max-width: 100%; margin-top: 30px; padding-left: 10px; }
    .engagements-text h2 { font-size: 1.6em; }
    .engagements-list li { font-size: 1.2rem; }
    .panneau { margin-top: 30px; max-width: 100%; }

    /* Testimonials */
    .testimonials { flex-wrap: wrap; justify-content: center; }
    .testimonial { width: 90%; max-width: 350px; flex-shrink: 1; }
    .testimonials-container { padding: 30px 10px; }

    /* Services */
    .ourservice { font-size: 1.8rem; }
    .service-toggle { font-size: 1.3rem; padding: 20px; min-height: 80px; }
    .container-service { grid-template-columns: 1fr; padding: 0 15px; }

    /* Projets */
    .container-projet h2 { font-size: 2rem; }
    .phase { min-height: 140px; }
    .phase h2 { font-size: 1.8rem; }
    .phase h3 { font-size: 1.2rem; }
    .ourprojects { font-size: 2.2rem; }

    /* Who */
    .who-page { padding: 25px 15px; }
    .presentation-arnaud, .presentation-pierre {
        min-width: unset;
        width: 100%;
        padding: 30px 20px;
    }

    /* Contact */
    .contact-logo { max-height: 300px; }

    /* Désactiver les animations lourdes */
    .btn-devis::before,
    .contact-btn::before,
    .form-submit-ap::before { animation: none; }
    .btn-devis, .form-submit-ap { animation: none; }
    .contact-btn { animation: none; }

    /* Curtain : simplifier sur tablette */
    .phase::before, .phase::after { display: none; }
    .phase-spotlight { display: none; }
}

/* ── Mobiles (480px) ── */
@media (max-width: 480px) {
    /* Header compact */
    header { height: 65px; }
    body { padding-top: 65px; }
    .logo img { height: 55px; margin-top: 3px; }
    .contact-phone { font-size: 0.8em; padding: 4px 6px; }

    /* Hero */
    .hero { height: 250px; }
    .hero-overlay h1 { font-size: 1.8rem; }
    .hero-overlay h2 { font-size: 1.1rem; }
    .hero-overlay { padding: 10px; }

    /* Presentation */
    .presentation-box { padding: 25px 15px; gap: 20px; }
    .left-content h3 { font-size: 1.2em; }
    .right-content h4 { font-size: 1.1em; }
    .right-content p { font-size: 1em; }

    /* Missions */
    .container-mission { padding: 30px 15px; }
    .ourmission { font-size: 1.6rem; margin-bottom: 20px; }
    .mission { width: 100%; padding: 20px; min-height: 100px; }
    .mission h2 { font-size: 1.2rem; }

    /* Engagements */
    .engagements { padding: 15px; }
    .engagements-text h2 { font-size: 1.3em; }
    .engagements h3 { font-size: 1em; }
    .engagements-list li { font-size: 1rem; }
    .panneau { padding: 20px; margin-top: 20px; }
    .panneau h1 { font-size: 22px; }
    .panneau h2 { font-size: 1.4em; }

    /* Testimonials */
    .testimonial { width: 100%; }
    .testimonial p { font-size: 0.9rem; }
    .see-all-reviews button { font-size: 1.2em; padding: 12px 24px; margin: 30px 0; }

    /* Services */
    .ourservice { font-size: 1.4rem; }
    .service-toggle { font-size: 1.1rem; padding: 18px; min-height: 70px; }
    .service p { font-size: 14px; }
    .service-card { padding: 20px 10px; }
    .plan-image { max-width: 100%; margin: 0 auto 15px; }

    /* Projets */
    .container-projet h2 { font-size: 1.6rem; }
    .phase { min-height: 100px; padding: 15px; }
    .phase h2 { font-size: 1.4rem; margin-bottom: 10px; }
    .phase h3 { font-size: 1rem; }
    .phase ul li { font-size: 1em; padding-left: 15px; }
    .ourprojects { font-size: 1.8rem; margin-bottom: 20px; }
    .realisations-grid { padding: 30px 10px; }
    .realisations-grid .grid { gap: 20px; }
    .realisations-grid .item::after { font-size: 11px; padding: 6px 12px; bottom: 60px; }

    /* Who */
    .who-page { padding: 20px 12px; }
    .who-page h1 { font-size: 20px; }
    .who-page p { font-size: 14px; }
    .presentation-arnaud, .presentation-pierre {
        padding: 25px 15px;
        max-width: 100%;
    }
    .presentation-arnaud h2, .presentation-pierre h2 { font-size: 20px; }
    .presentation-arnaud p, .presentation-pierre p { font-size: 14px; }

    /* Contact page */
    .contact-logo { max-height: 200px; }
    .contact-section-form { padding: 40px 10px; }
    .contact-section-form h2 { font-size: 1.6rem; }
    .contact-info-card-ap { padding: 25px 15px; }

    /* Form - 16px minimum pour éviter le zoom iOS */
    .form-group-ap input,
    .form-group-ap textarea,
    .form-group-ap select { font-size: 16px; padding: 12px; }
    .form-group-ap label { font-size: 11px; }
    .form-submit-ap { width: 100%; font-size: 15px; padding: 14px 20px; }

    /* Contact btn fixe : repositionner en bas */
    .contact-btn {
        position: fixed;
        bottom: 15px;
        right: 15px;
        top: auto;
        transform: none;
        width: auto;
        height: auto;
        padding: 12px 20px;
        font-size: 0.9em;
        border-radius: 25px;
        background-color: #2E6DA4;
        color: #ffffff;
        box-shadow: 0 4px 16px rgba(27,58,92,0.4);
    }
    .contact-btn:hover {
        transform: scale(1.05);
    }

    /* Footer */
    footer { padding: 15px 10px; }
    .footer-container { padding: 0 10px; }
    .legal-info p { font-size: 12px; }

    /* Contact info bar */
    .contact-info { padding: 15px 10px; flex-direction: column; align-items: center; text-align: center; gap: 10px; }

    /* Désactiver tilt 3D et effets souris */
    .realisations-grid .item { transform-style: flat; perspective: none; }

    /* Nav responsive */
    .topnav.responsive a { padding: 14px 20px; min-height: 44px; display: flex; align-items: center; font-size: 14px; }
}
