/* -----------------------------------------------------
   RESET
----------------------------------------------------- */
.gradient-background,
.main-header .main-menu ul ul.submenu {
    background-image: linear-gradient(to left, #0BC6FF, #0d80f3, #0BC6FF);
    background-position: right;
    background-size: 200%;
}

/* ================================
   LOCAL FONTS – SAFE (NO CLS)
================================ */

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Work Sans";
  src: url("/fonts/work-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: optional;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins","Inter", Arial, sans-serif;
}

body {
    background: #ffffff;
    color: #222;
    line-height: 1.6;
    font-size-adjust: 0.52;
}

/* Section spacing */
.section {
    padding: 70px 20px;
}

/* Title */
.section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    font-family: "Work Sans", sans-serif;
    color: #555;
}

.section-subtitle {
    text-align: center;
    color: #444;
    margin-bottom: 40px;
    min-height: 1.4em;
}


/* -----------------------------------------------------
   HEADER
----------------------------------------------------- */
header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}


.logo a {
    display: inline-block;
}
.logo img {
    height: 43px;
    display: block;
}

.mobile-menu-btn {
    font-size: 28px;
    cursor: pointer;
}

/* MENU MOBILE ANIMÉ */
nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #eee;
    z-index: 999;
    pointer-events: none;   /* 🔴 empêche les clics */

    /* animation */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition:
        max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease,
        transform 0.35s ease;
}

/* MENU OUVERT */
nav.open {
    max-height: 100vh;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (min-width: 800px) {
    nav {
        position: static;
        display: flex;
        justify-content: flex-end;
        gap: 25px;
        background: none;
        border: none;
        padding: 0;
        margin-left: auto;

        max-height: none;
        opacity: 1;
        transform: none;
        overflow: visible;
        transition: none;

        pointer-events: auto; /* ✅ FIX CRITIQUE */
    }

    .mobile-menu-btn {
        display: none;
    }
}



/* -----------------------------------------------------
   HERO
----------------------------------------------------- */
.hero {
    position: relative;
    padding: 130px 20px;
    text-align: center;
    color: white;
    aspect-ratio: 16 / 9;
    min-height: 420px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(24, 187, 216, 0.5);
    z-index: 1;
}

.hero picture {
    position: absolute;
    inset: 0;
    z-index: 0;
}


/* 1️⃣ le picture est le calque image */
.hero picture {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* 2️⃣ l’image remplit le hero */
.hero picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 3️⃣ le texte AU-DESSUS */
.hero > h1,
.hero > h2,
.hero > .hero-buttons {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-family: "Poppins", sans-serif;
    text-shadow: 
        -1px 0 #000,
         1px 0 #000,
         0 -1px #000,
         0  1px #000;
}

.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-family: "Poppins", sans-serif;
    text-shadow: 
        -1px 0 #000,
         1px 0 #000,
         0 -1px #000,
         0  1px #000;
}

.hero p {
    max-width: 900px;
    margin: 0.5rem auto 0;
    line-height: 1.50;
    font-family: "Poppins", sans-serif;
}

.hero-buttons {
    margin-top: 30px;
}

.cta {
    display: inline-block;
    background: #ffca28;
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: bold;
    color: #222;
    text-decoration: none;
    text-transform: uppercase;
    margin: 6px;
}

.cta.secondary {
    background: rgb(230, 6, 81);
    color: #ffffff;
}



/* -----------------------------------------------------
   PRÉSENTATION (NOUVELLE SECTION)
----------------------------------------------------- */

.presentation {
    padding: 80px 20px;
    background: #ffffff;
}

.presentation-container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

/* Image 1/3 */
.presentation-image {
    flex: 1;
}

.presentation-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 368 / 510;
    border-radius: 12px;
    object-fit: cover;
}


/* Texte 2/3 */
.presentation-text {
    flex: 2;
}

.presentation-text p {
    font-size: 1.1rem;
    line-height: 1.65;
    margin-bottom: 18px;
    color: #444;
}

/* -----------------------------------------------------
   PRÉSENTATION – TITRE DE SECTION
----------------------------------------------------- */
#presentation h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    font-family: "Work Sans", sans-serif;
    color: #555;
    min-height: unset;
}

#presentation .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #444;
}

.presentation-text strong {
    font-weight: 700;
    color: #000;
}

/* Responsive */
@media (max-width: 900px) {
    .presentation-container {
        flex-direction: column;
        text-align: center;
    }

    .presentation-text {
        text-align: left;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
}



/* -----------------------------------------------------
   FORMULES – CARTES DE PRIX
----------------------------------------------------- */
.pricing-card-area h2 {
    color: #555;
    text-align: center;
    text-transform: uppercase;
    font-family: "Work Sans", sans-serif;
}


.pricing-card-area {
    padding-top: 50px;
    padding-bottom: 50px;
    background: #ffffff;
}

.pricing-grid {
    display: grid;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 0 16px;
}

.single-card {
    background: #ffffff;
    padding: 36px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform .28s ease, box-shadow .28s ease;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.single-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.card-top {
    text-align: center;
    margin-bottom: 6px;
}

.card-top img {
    width: 60px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto 14px;
    display: block;
}

.card-top h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-top p {
    color: #444;
    font-size: 0.95rem;
    margin-top: 6px;
}

.card-mid {
    text-align: center;
    margin: 16px 0;
}

.card-mid h4 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.card-bottom {
    margin-top: auto;
}

.card-bottom ul {
    list-style: none;
    margin-bottom: 18px;
    padding-left: 0;
}

.card-bottom ul li {
    margin-bottom: 10px;
    font-size: 0.97rem;
    color: #444;
}

.borders-btn {
    display: inline-block;
    border: 2px solid #1e88e5;
    color: #1e88e5;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.borders-btn:hover {
    background: #1e88e5;
    color: #fff;
    transform: translateY(-2px);
}



/* -----------------------------------------------------
   RATING ÉTOILES
----------------------------------------------------- */
.rate-result {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 10px 0 12px;
    padding: 0;
    list-style: none;
}

.rate-result i {
    font-size: 1rem;
    color: #ffcc00;
}

.rate-result i.inactive {
    color: #dcdcdc;
}

/* -----------------------------------------------------
   ATOUTS
----------------------------------------------------- */
#atouts {
    background: #f6f7f9;
}

.advantages {
    display: grid;
    gap: 25px;
    max-width: 100%;
    margin: auto;
    padding: 0 16px;
}

@media(min-width: 900px) {
    .advantages {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero {
        display: flex;
        flex-direction: column;
        justify-content: center; /* CENTRAGE VERTICAL */
        align-items: center;     /* CENTRAGE HORIZONTAL */
        padding: 0 20px;         /* on enlève le padding vertical */
    }
}

.advantage {
    padding: 10px;
}

.advantage h3 {
    margin-bottom: 6px;
}


/* -----------------------------------------------------
   AVIS
----------------------------------------------------- */
.reviews {
    display: grid;
    gap: 35px;
    max-width: 1400px;
    margin: auto;
    padding: 0 16px;
}

@media(min-width: 800px) {
    .reviews {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review {
    text-align: left;
    padding: 10px;
}

.stars {
    color: #ffa726;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

/* -----------------------------------------------------
   NEWSLETTER – FIX CTA + ALIGNEMENT
----------------------------------------------------- */

.newsletter-section {
    background: #f6f7f9;
}

.newsletter-form {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-form form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.newsletter-form input[type="email"] {
    width: 100%;
    max-width: 420px;
    padding: 14px 20px;
    border-radius: 30px;
    border: 1px solid #ccc;
    font-size: 1rem;
    margin-bottom: 15px;
    outline: none;
}

.newsletter-form input[type="email"]:focus {
    border-color: #0d80f3;
}

/* 🔥 surcharge CTA UNIQUEMENT ici */
.newsletter-form .cta {
    display: block;
    width: 100%;
    max-width: 420px;
    border: none;
    outline: none;
    margin: 0;
    cursor: pointer;
}



/* -----------------------------------------------------
   FOOTER
----------------------------------------------------- */
.footer {
  background-color: #222;
  color: #fff;
  padding: 30px 20px;
  font-family: "Poppins", sans-serif;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.footer-column h3,
.footer-column h4 {
  margin-bottom: 15px;
  font-family: "Poppins", sans-serif;
}

.footer-column p {
  font-size: 15px;
  line-height: 1.6;
}

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

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column a {
  color: #fff;
  text-decoration: none;
}

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

.footer-social a {
  display: inline-block;
  margin-right: 10px;
  font-size: 20px;
  color: #fff;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #00aced;
}

.footer-bottom {
  margin-top: 30px;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid #444;
  padding-top: 15px;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-column {
    flex: 0 1 calc(33.333% - 20px);
  }
}



/* -----------------------------------------------------
   FLOATING BUTTON
----------------------------------------------------- */
.floating-estimation {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: #ffca28;
    padding: 14px 20px;
    border-radius: 34px;
    color: #222;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0,0,0,0.2);
    z-index: 2000;
}

/* ================================
   HOVERS MENU + BOUTONS
================================ */

/* Menu */
nav a {
    padding: 12px 0;
    text-decoration: none;
    color: #222;
    font-weight: bold;
    position: relative;
    transition: color .2s ease;
    font-family: "Work Sans", sans-serif;
}

nav a:hover {
  color: #0d80f3;
}

/* petit soulignement animé */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: #0d80f3;
  transition: width .2s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Boutons CTA (tous) */
.cta {
  transition: transform .15s ease, filter .15s ease, background .15s ease, color .15s ease;
}

.cta:hover {
  transform: translateY(-2px);
  filter: brightness(0.95);
}

/* CTA secondaire */
.cta.secondary:hover {
  filter: brightness(0.92);
}

/* Floating button */
.floating-estimation {
  transition: transform .15s ease, filter .15s ease;
}

.floating-estimation:hover {
  transform: translateY(-2px);
  filter: brightness(0.95);
}

/* ================================
   SECTION CONTACT – CENTRÉE
================================ */

#contact {
    text-align: center;
    background: #ffffff;
}

#contact p {
    font-size: 1.15rem;
    margin-bottom: 25px;
    color: #444;
}

/* Bouton appel */
#contact .call-btn {
    font-size: 1.05rem;
    padding: 14px 32px;
}

/* MEDIAS QUERIES 900px */
@media (min-width: 900px) {
    #contact {
        padding: 90px 20px;
    }

    #contact p {
        font-size: 1.25rem;
    }
}

/* ================================
   FOOTER – LIENS LÉGAUX
================================ */

.footer-bottom p {
    line-height: 1.8;
}

.footer-bottom a {
    color: #ddd;
    text-decoration: none;
    font-weight: 500;
    margin: 0 4px;
    transition: color .15s ease;
}

.footer-bottom a:hover {
    color: #ffca28;
    text-decoration: underline;
}

.footer-separator {
    margin: 0 6px;
    color: #777;
}

/* MEDIA QUERIES 600px */
@media (max-width: 600px) {
    .footer-bottom p {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .footer-separator {
        display: none;
    }

        .presentation-image img {
        aspect-ratio: 372 / 516;
        height: auto;
    }

    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .hero h2 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .section h2 {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .hero {
        aspect-ratio: auto;
        min-height: 360px;
        padding: 90px 16px;
        background-position: center center;
    }
        #presentation h2 {
        font-size: 1.25rem;
        line-height: 1.3;
        min-height: 2.6em;
    }

    .mobile-menu-btn {
        align-self: flex-end;
    }

    #presentation .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
         min-height: 2.6em;
    }

    .section h2 {
    font-size: 1.2rem;
    }

    .card-mid h4 {
        font-size: 1.6rem;
    }
    .single-card {
        padding: 22px;
    }

    header {
        padding: 10px 10px;
    }


    .presentation-text h2 {
        font-size: 1.6rem;
    }

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

    body {
        font-family: system-ui, -apple-system, BlinkMacSystemFont,
                     "Segoe UI", Roboto, Arial, sans-serif;
    }

    .presentation-text p {
        text-wrap: pretty;
    }

}

/* ================================
   BADGE FORMULE POPULAIRE
================================ */

.single-card {
    position: relative;
}

/* Badge */
.badge-popular {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #e60051;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* Carte mise en avant */
.single-card.popular {
    border: 2px solid #e60051;
    transform: scale(1.02);
}

.single-card.popular:hover {
    transform: scale(1.04) translateY(-6px);
}

/* HERO IMAGE LCP */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}


/* ================================
   HEADER MOBILE & TABLETTE
   0 → 799px
================================ */
@media (max-width: 799px) {

    header {
        flex-direction: column;
        align-items: stretch;
    }

    .logo {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 8px;
    }

    .mobile-menu-btn {
        align-self: center;
        margin-bottom: 8px;
    }

    nav {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    nav a {
        padding: 12px 0;
        font-size: 1.05rem;
    }
}
