/* Variables de couleurs bleu écologique */
:root {
    --primary-blue: #137C8B;
    --light-blue: #709CA7;
    --pale-blue: #B8CBD0;
    --medium-blue: #7A90A4;
    --dark-blue: #344D59;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --text-dark: #2C3E50;
    --text-light: #5D6D7E;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: var(--dark-blue);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    margin-bottom: 50px;
}

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

p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(to right, var(--primary-blue), var(--medium-blue));
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(19, 124, 139, 0.2);
    margin-top: 10px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(19, 124, 139, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: whitesmoke;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Navigation */
nav {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.logo span {
    color: var(--dark-blue);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Menu burger */
.menu-toggle {
display: none;
font-size: 1.5rem;
cursor: pointer;
color: #2C3E50;
z-index: 1001;
}

body.no-scroll {
  overflow: hidden;
}

@media (max-width: 768px) {
/* Navigation mobile */
.menu-toggle {
display: block;
}
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(52, 77, 89, 0.7), rgba(19, 124, 139, 0.7)), url('./Images/hero.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--white);
}


/* Avis Clients */
/* Variables de couleurs */
    :root {
        --primary-green: #27AE60;
        --primary-green-dark: #219653;
        --primary-blue: #3498DB;
        --text-dark: #2C3E50;
        --text-light: #7F8C8D;
        --white: #FFFFFF;
        --light-bg: #F9FBFD;
        --border-light: #E8F0FE;
        --gold: #FFC107;
        --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
        --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    /* Section Avis Clients */
    .testimonials {
        background: linear-gradient(135deg, var(--light-bg) 0%, #f0f8ff 100%);
        padding: 100px 0;
        position: relative;
        overflow: hidden;
    }
    
    .testimonials::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233498db' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }
    
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        position: relative;
        z-index: 1;
    }
    
    /* Section Header */
    .section-header {
        text-align: center;
        margin-bottom: 60px;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
        color: var(--text-dark);
        margin-bottom: 15px;
        font-weight: 700;
        position: relative;
        display: inline-block;
    }
    
    .section-header h2::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: linear-gradient(to right, var(--primary-green), var(--primary-blue));
        border-radius: 2px;
    }
    
    .section-header p {
        font-size: 1.1rem;
        color: var(--text-light);
        max-width: 600px;
        margin: 20px auto 0;
        line-height: 1.6;
    }
    
    /* Testimonial Slider */
    .testimonial-slider {
        max-width: 900px;
        margin: 0 auto 40px;
        position: relative;
        overflow: hidden;
        border-radius: 20px;
    }
    
    .testimonial-slide {
        display: none;
        animation: fadeIn 0.8s ease both;
    }
    
    .testimonial-slide.active {
        display: block;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* Testimonial Card */
    .testimonial-card {
        background: var(--white);
        border-radius: 20px;
        padding: 40px;
        box-shadow: var(--shadow-medium);
        border: 1px solid var(--border-light);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .testimonial-card::before {
        content: '"';
        position: absolute;
        top: 20px;
        right: 30px;
        font-size: 120px;
        color: rgba(52, 152, 219, 0.1);
        font-family: Georgia, serif;
        line-height: 1;
        z-index: 0;
    }
    
    .testimonial-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-medium);
    }
    
    /* Testimonial Header */
    .testimonial-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 25px;
        position: relative;
        z-index: 1;
    }
    
    .client-info {
        display: flex;
        align-items: flex-start;
        gap: 15px;
    }
    
    .client-img {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid var(--border-light);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    
    .client-details {
        display: flex;
        flex-direction: column;
    }
    
    .client-name {
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 5px;
        font-size: 1.2rem;
    }
    
    .client-role {
        color: var(--text-light);
        font-size: 0.95rem;
    }
    
    .rating {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
        margin-right: 50px;
    }
    
    .stars {
        display: flex;
        gap: 2px;
    }
    
    .stars i {
        color: var(--gold);
        font-size: 1.1rem;
    }
    
    .score {
        font-weight: 700;
        color: var(--text-dark);
        font-size: 1.1rem;
    }
    
    /* Testimonial Content */
    .testimonial-content {
        position: relative;
        z-index: 1;
        margin-bottom: 25px;
    }
    
    .testimonial-content p {
        font-size: 1.1rem;
        line-height: 1.7;
        color: var(--text-dark);
        font-style: italic;
        margin: 0;
    }
    
    /* Testimonial Footer */
    .testimonial-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        z-index: 1;
        padding-top: 20px;
        border-top: 1px solid var(--border-light);
    }
    
    .company-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--text-light);
        font-weight: 600;
    }
    
    .company-logo i {
        color: var(--primary-green);
        font-size: 1.2rem;
    }
    
    /* Slider Controls */
    .slider-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .slider-nav-btn {
        background: var(--white);
        border: 1px solid var(--border-light);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        color: var(--text-dark);
        font-size: 1.2rem;
        box-shadow: var(--shadow-light);
    }
    
    .slider-nav-btn:hover {
        background: var(--primary-blue);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: var(--shadow-medium);
    }
    
    .slider-dots {
        display: flex;
        gap: 10px;
    }
    
    .slider-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #D1D9E6;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .slider-dot.active {
        background: var(--primary-blue);
        width: 30px;
        border-radius: 6px;
    }
    
    /* CTA Section */
    .testimonials-cta {
        text-align: center;
        padding: 30px;
        background: var(--white);
        border-radius: 15px;
        box-shadow: var(--shadow-light);
        max-width: 500px;
        margin: 0 auto;
    }
    
    .testimonials-cta p {
        color: var(--text-dark);
        margin-bottom: 20px;
        font-size: 1.1rem;
    }
    
    .testimonial-btn {
        background: linear-gradient(to right, var(--primary-green), var(--primary-blue));
        color: var(--white);
        border: none;
        padding: 12px 30px;
        border-radius: 50px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    }
    
    .testimonial-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    }
    
/* À propos de nous */
.about {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Contact */
/* Variables de couleurs */
   /* ===== Section Contact ===== */
.contact {
  background: linear-gradient(135deg, #f9fafb, #eef6ff);
  padding: 100px 0;
}

.contact .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 12px;
  position: relative;
}
.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #27ae60, #2f6fed);
  border-radius: 3px;
}
.section-header p {
  color: #7f8c8d;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 20px auto 0;
  line-height: 1.6;
}

/* Grille principale */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* === Carte infos === */
.contact-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.contact-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #2c3e50;
}
.contact-card p {
  color: #7f8c8d;
  margin-bottom: 24px;
  line-height: 1.6;
}

.contact-items {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #27ae60, #2f6fed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-details h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #2c3e50;
}
.contact-details p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}
.contact-note {
  display: block;
  font-size: 0.85rem;
  color: #27ae60;
  margin-top: 3px;
}

/* Réseaux sociaux */
.social-links p {
  margin-bottom: 12px;
  font-weight: 600;
  color: #2c3e50;
}
.social-icons {
  display: flex;
  gap: 12px;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(39, 174, 96, 0.08);
  color: #27ae60;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.social-icon:hover {
  background: linear-gradient(135deg, #27ae60, #2f6fed);
  color: #fff;
  transform: translateY(-2px);
}

/* === Formulaire === */
.contact-form {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.form-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.form-header p {
  color: #7f8c8d;
  margin-bottom: 28px;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}
label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #2c3e50;
}
.required {
  color: #e63946;
}
.input-container {
  position: relative;
}
.input-container i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #7f8c8d;
}
.form-control {
  width: 100%;
  padding: 14px 14px 14px 42px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.form-control:focus {
  border-color: #27ae60;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
  outline: none;
}
.textarea-container i {
  top: 18px;
  transform: none;
}
textarea.form-control {
  padding-left: 42px;
  resize: vertical;
}

/* Bouton envoyer */
.form-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #27ae60, #2f6fed);
  cursor: pointer;
  transition: all 0.3s ease;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(47, 111, 237, 0.3);
}
.form-note {
  font-size: 0.85rem;
  color: #7f8c8d;
  text-align: center;
}

/* Bloc réseaux sociaux */
.contact-socials {
  margin-top: 30px;
  text-align: center;
}

.socials-label {
  font-weight: 600;
  font-size: 1rem;
  color: #2c3e50;
  margin-bottom: 14px;
}

.socials-list {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.socials-item {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* Couleurs spécifiques par réseau */
.socials-item.linkedin { background: #0A66C2; }
.socials-item.twitter { background: #1DA1F2; }
.socials-item.facebook { background: #1877F2; }
.socials-item.instagram { 
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
}

.socials-item:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}


/* Footer */
/* ===== Footer Pro & Élégant ===== */
footer{
  background: radial-gradient(180% 120% at 50% 0%, #0f172a 0%, #0b1220 60%, #0a0f1a 100%);
  color: #E5E7EB;
  position: relative;
  padding: 72px 0 24px;
  overflow: hidden;
}
footer::before{
  content:""; position:absolute; inset:0 0 auto 0; height:4px;
  background: linear-gradient(90deg, #27AE60, #2F6FED); /* vert → bleu eco */
  opacity:.95;
}

footer .container{ max-width: 1200px; margin:0 auto; padding:0 24px; }

.footer-content{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 36px;
}

/* Titres colonnes */
.footer-column h3{
  font-size: 1.05rem;
  letter-spacing:.4px;
  text-transform: uppercase;
  color:#F3F4F6;
  margin: 4px 0 16px;
}

/* Intro */
.footer-column p{
  color:#A7B0BE; line-height:1.7;
}

/* Icônes sociales */
.social-links{
  display:flex; gap:12px; margin-top:16px;
}
.social-links a{
  width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:50%;
  background: rgba(255,255,255,.06);
  color:#E5E7EB; transition: all .25s ease; border:1px solid rgba(255,255,255,.08);
}
.social-links a:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.12);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

/* Liens */
.footer-links{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.footer-links a{
  color:#C9D3E1; text-decoration:none; position:relative; display:inline-block; padding:2px 0;
}
.footer-links a::after{
  content:""; position:absolute; left:0; bottom:-2px; height:2px; width:0;
  background: linear-gradient(90deg, #2F6FED, #27AE60);
  transition: width .25s ease;
}
.footer-links a:hover{ color:#FFFFFF; }
.footer-links a:hover::after{ width:100%; }

/* Newsletter */
#newsletterForm .form-group{ margin-bottom:12px; }
#newsletterForm .form-control{
  width:100%; padding:14px 16px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:#F9FAFB; border-radius:999px; outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
#newsletterForm .form-control::placeholder{ color:#9AA6B2; }
#newsletterForm .form-control:focus{
  border-color: #3BAA86;
  box-shadow: 0 0 0 4px rgba(39,174,96,.18);
}

/* Bouton */
footer .btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 18px; border:0; border-radius:999px; cursor:pointer;
  color:#0b1220; font-weight:800; letter-spacing:.3px;
  background: linear-gradient(90deg, #27AE60, #36c18a);
  box-shadow: 0 10px 24px rgba(39,174,96,.25);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  width:100%;
}
footer .btn:hover{ transform: translateY(-2px); box-shadow: 0 14px 30px rgba(39,174,96,.35); }
footer .btn:active{ transform: translateY(0); filter: brightness(.96); }

/* Bas de page */
.copyright{
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 36px; padding-top: 18px;
  display:flex; align-items:center; justify-content:center;
}
.copyright p{ color:#93A3B8; font-size:.95rem; margin:0; }

/* Petits détails d’accessibilité */
footer a:focus-visible, #newsletterForm .form-control:focus-visible, footer .btn:focus-visible{
  outline: 3px solid rgba(47,111,237,.45);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Défilement fluide natif */
html{ scroll-behavior:smooth; }

/* Offset pour ancres (nav fixe) */
:root{ --nav-h: 72px; }
section, header, footer{ scroll-margin-top: calc(var(--nav-h) + 12px); }

/* Navbar shrink + fond */
#navbar{
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
#navbar.scrolled{
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* Lien actif */
.nav-links a.active{
  color:#2776d1; font-weight:700; position:relative;
}
.nav-links a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background:#2776d1; border-radius:2px;
}

/* Révélation au scroll */
[data-reveal]{
  opacity:0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
[data-reveal].is-visible{
  opacity:1; transform:none;
}

/* ===== Pricing-like cards ===== */
:root{
  --c-bg: #F9FAFB;          /* (optionnel) non utilisé ici */
  --c-card: #ffffff;
  --c-text: #2C3E50;
  --c-muted:#7F8C8D;

  --g-green:#27AE60;
  --g-blue:#2F6FED;
  --g-gold:#FFB703;
  --g-gold-dark:#E09A00;

  --shadow-1: 0 6px 20px rgba(0,0,0,.08);
  --shadow-2: 0 16px 40px rgba(0,0,0,.14);
}

.services{
  /* ⚠️ nécessite --cream défini qqpart ; sinon remplace par #f7f7f2 */
  background: linear-gradient(180deg, var(--cream, #F7F7F2), #eef6ff 90%); /* ✅ fallback */
}

/* Container */
.services .container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Grille: 3 → 2 → 1 */
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 28px;
  width: 100%;
  margin: 0;
  align-items: start;
}
@media (max-width:1100px){
  .services-grid{ grid-template-columns: repeat(2, minmax(260px, 1fr)); }
}
@media (max-width:720px){
  .services-grid{ grid-template-columns: 1fr; }
}

/* Base card */
.tier{
  background: var(--c-card);
  border-radius: 22px;
  box-shadow: var(--shadow-1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #eef0f3;
  transition: transform .3s ease, box-shadow .3s ease;
}
.tier:hover{ transform: translateY(-8px); box-shadow: var(--shadow-2); }

/* Header avec rails colorés */
.tier__head{
  text-align:center;
  padding: 28px 22px 18px;
  position: relative;
}
.tier__head::before,
.tier__head::after{
  content: "";
  position: absolute; left: 0; right: 0; height: 8px;
}
.tier__head::before{ top: 0; opacity: .9; }
.tier__head::after{ bottom: 0; opacity: .6; }

/* Corps + pied */
.tier__body{ padding: 22px 26px; }           /* ✅ gardé une seule fois */
.tier__foot{ padding: 0 26px 26px; margin-top: auto; background: transparent; } /* ✅ une seule fois */

/* Titre & pill */
.tier__pill{
  display:inline-block;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .4px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #ecf1ff;
  color: #2b3a67;
}
.tier__title{
  margin: 12px 0 0;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--c-text);
}

/* Texte & features */
.tier__desc{
  color: var(--c-muted);
  margin: 4px 0 18px;
  line-height: 1.55;
}
.tier__features{
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.tier__features li{
  display: flex; align-items: center; gap: 10px;
  color: var(--c-text); font-weight: 500;
}
.tier__features .ok i{ color: #22c55e; }
.tier__features .no i{ color: #ef4444; }

/* CTA */
.tier__btn{
  width: 100%;
  border: 0; border-radius: 14px;
  padding: 14px 18px;
  font-weight: 800; letter-spacing: .3px;
  color: #fff;
  background: linear-gradient(90deg, var(--g-green), #36c18a);
  box-shadow: 0 10px 24px rgba(39,174,96,.25);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  margin-top: 50px;
}
.tier__btn:hover{ transform: translateY(-2px); box-shadow: 0 14px 30px rgba(39,174,96,.35); }

/* Variantes */
.tier--green .tier__head::before,
.tier--green .tier__head::after{ background: linear-gradient(90deg, var(--g-green), #36c18a); }
.tier--green .tier__pill{ background: rgba(39,174,96,.12); color: var(--g-green); }

.tier--blue .tier__head::before,
.tier--blue .tier__head::after{ background: linear-gradient(90deg, var(--g-blue), #6EA8FF); }
.tier--blue .tier__pill{ background: rgba(47,111,237,.12); color: var(--g-blue); }
.tier--blue .tier__btn{
  background: linear-gradient(90deg, var(--g-blue), #6EA8FF);
  box-shadow: 0 10px 24px rgba(47,111,237,.28);
}

.tier--gold{
  border: 1px solid rgba(255,183,3,.35);
  background: radial-gradient(120% 90% at 50% -10%, rgba(255,255,255,.35), transparent 60%), #121212;
  color: #f3f3f3;
}
.tier--gold .tier__head::before,
.tier--gold .tier__head::after{ background: linear-gradient(90deg, var(--g-gold), #FFD166); }
.tier--gold .tier__title{ color: #FFE082; }
.tier--gold .tier__pill{ background: rgba(255,183,3,.18); color: #FFE082; }
.tier--gold .tier__desc,
.tier--gold .tier__features li{ color: #E8E8E8; }
.tier__btn--gold{
  background: linear-gradient(90deg, var(--g-gold), #FFD166);
  color: #1a1a1a;
  box-shadow: 0 14px 34px rgba(255,183,3,.35);
}
.tier--gold .ok i{ color: var(--g-gold); }

/* Badge */
.tier__badge{
  position: absolute; top: 18px; right: -50px;
  transform: rotate(45deg);
  background: linear-gradient(90deg, var(--g-gold-dark), var(--g-gold));
  color: #1a1a1a;
  font-weight: 900; font-size: .85rem;
  padding: 8px 48px; z-index: 3;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}


/* Mise en avant de la carte centrale */
.tier--featured{
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.tier--featured:hover{
  transform: translateY(-10px) scale(1.02);
}


/* Overlay pour le fond quand le menu est ouvert */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

@media (max-width: 768px) {
    .nav-overlay.active {
        display: block;
    }
}

/* ================================
   BREAKPOINTS
   - ≥1200 : desktop XL
   - ≤1200 : desktop → tablette paysage
   - ≤1024 : tablette
   - ≤992  : tablette compacte
   - ≤900  : entre tablette & mobile large
   - ≤768  : mobile large
   - ≤560  : mobile standard
   - ≤480  : mobile petit
   - ≤380  : très petits écrans
=================================== */

/* -------- ≥1200px (XL desktop) -------- */
@media (min-width: 1200px) {
  .container { max-width: 1200px; }
  .services-grid { grid-template-columns: repeat(3, minmax(280px, 1fr)); }
  .footer-content { grid-template-columns: 1.2fr 1fr 1fr 1.2fr; }
}

/* -------- ≤1200px (desktop → tablette paysage) -------- */
@media (max-width: 1200px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  section { padding: 72px 0; }

  /* Hero */
  .hero h1 { font-size: 3.4rem; }

  /* Testimonials */
  .section-header h2 { font-size: 2.2rem; }
  .testimonial-card { padding: 34px; }

  /* About */
  .about-content { gap: 40px; }

  /* Services */
  .services-grid { gap: 24px; }
  .tier__body, .tier__foot { padding-left: 22px; padding-right: 22px; }

  /* Footer */
  .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* -------- ≤1024px (tablette) -------- */
@media (max-width: 1024px) {
  .container { width: 92%; padding: 0 20px; }
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }

  /* Nav */
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: -110%;
    width: min(78%, 320px); height: 100vh;
    background: #fff; flex-direction: column; gap: 12px;
    padding: calc(var(--nav-h,72px) + 16px) 22px 24px;
    box-shadow: -6px 0 18px rgba(0,0,0,.12);
    transition: right .28s ease; z-index: 1001;
  }
  .nav-links.active { right: 0; }
  body.no-scroll { overflow: hidden; }   /* à garder si tu ajoutes la classe côté JS */
  .nav-overlay.active { display: block; }

  /* Hero */
  .hero { text-align: center; padding-top: var(--nav-h,72px); }
  .hero-content { max-width: 860px; margin: 0 auto; }
  .hero h1 { font-size: 3rem; }
  .hero p  { font-size: 1.1rem; }

  /* Grilles */
  .about-content { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }

  /* Contact */
  .contact-container { grid-template-columns: 1fr; gap: 28px; }

  /* Services */
  .services-grid { grid-template-columns: repeat(2, minmax(260px, 1fr)); }

  /* Footer */
  .footer-content { grid-template-columns: 1fr 1fr; }
}

/* -------- ≤992px (tablette compacte) -------- */
@media (max-width: 992px) {
  .container { width: 94%; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
  section { padding: 64px 0; }

  /* Testimonials */
  .testimonial-card { padding: 30px; }
  .client-img { width: 64px; height: 64px; }
  .rating { margin-right: 0; }

  /* About */
  .stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* -------- ≤900px -------- */
@media (max-width: 900px) {
  /* About 2 colonnes → 1 colonne */
  .about-content { grid-template-columns: 1fr; text-align: center; }
  .about-img { max-width: 680px; margin: 0 auto; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}

/* -------- ≤768px (mobile large) -------- */
@media (max-width: 768px) {
  .container { width: 100%; padding: 0 16px; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
  section { padding: 56px 0; }

  /* Nav liens pleine largeur */
  .nav-links a { display: block; padding: 10px 0; font-size: 1.05rem; }

  /* Hero */
  .hero { height: auto; padding: calc(var(--nav-h,72px) + 24px) 0 48px; }
  .hero h1 { font-size: 2.4rem; }
  .hero p  { font-size: 1.05rem; }

  /* Testimonials */
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 1.9rem; }
  .testimonial-card { padding: 24px; }
  .testimonial-content p { font-size: 1rem; }
  .slider-controls { gap: 18px; }
  .slider-nav-btn { width: 44px; height: 44px; }
  .slider-dot { width: 10px; height: 10px; }

  /* About */
  .stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat-number { font-size: 2rem; }
  .stat-item { padding: 16px; }

  /* Contact */
  .form-row { gap: 14px; }
  .contact-card, .contact-form { padding: 24px; border-radius: 16px; }
  .form-control { padding: 12px 12px 12px 40px; }
  textarea.form-control { padding-left: 40px; }
  .submit-btn { padding: 12px 18px; }

  /* Services */
  .services .container { padding: 0 16px; }
  .services-grid { grid-template-columns: 1fr; gap: 22px; }
  .tier { border-radius: 18px; }
  .tier__head { padding: 22px 18px 14px; }
  .tier__title { font-size: 1.6rem; }
  .tier__btn { margin-top: 32px; }

  /* Table responsive (si présente dans la page) */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table { min-width: 520px; }
  th, td { padding: 10px 12px; }

  /* Footer */
  .footer-content { grid-template-columns: 1fr; gap: 24px; }
}

/* -------- ≤560px (mobile standard) -------- */
@media (max-width: 560px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.55rem; }
  p  { font-size: 0.98rem; }
  section { padding: 48px 0; }

  /* Hero */
  .hero h1 { font-size: 2.1rem; }

  /* Testimonials */
  .client-img { width: 56px; height: 56px; }
  .client-name { font-size: 1.05rem; }
  .client-role { font-size: 0.9rem; }

  /* Table: autoriser la largeur 100% */
  table { min-width: 0; width: 100%; }

  /* Cards générales */
  .testimonial-card, .contact-card, .contact-form { padding: 20px; }
}

/* -------- ≤480px (mobile petit) -------- */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.45rem; }
  .btn { padding: 11px 20px; border-radius: 24px; }

  /* Contact */
  .contact-icon { width: 40px; height: 40px; font-size: 1rem; }
  .social-icon { width: 38px; height: 38px; }
  .socials-item { width: 42px; height: 42px; }

  /* Services */
  .tier__pill { font-size: .82rem; padding: 6px 12px; }
  .tier__title { font-size: 1.45rem; }
  .tier__features { gap: 8px; }
}

/* -------- ≤380px (très petits écrans) -------- */
@media (max-width: 380px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .section-header h2 { font-size: 1.35rem; }
  .testimonial-card { padding: 16px; }
  .footer-links { gap: 8px; }
}

/* -------- Sécurités anti-overflow globales -------- */
@media (max-width: 1024px) {
  .container, section, .services-grid, .about-content, .contact-container,
  .footer-content, .testimonial-slider, .testimonial-card,
  .contact-card, .contact-form { width: 100%; min-width: 0; }
}


/* -------- Logo image + texte responsive -------- */
.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px; /* espace entre image et texte */
}

.logo-img {
  height: 48px;   /* taille par défaut */
  width: auto;
}

/* Tablette */
@media (max-width: 1024px) {
  .logo {
    font-size: 1.6rem;
  }
  .logo-img {
    height: 42px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .logo {
    font-size: 1.4rem;
  }
  .logo-img {
    height: 36px;
  }
}

/* Petit mobile */
@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
  }
  .logo-img {
    height: 30px;
  }
}

/* Très petit écran */
@media (max-width: 360px) {
  .logo {
    font-size: 1rem;
  }
  .logo-img {
    height: 26px;
  }
}

