/* Variables & Base */
html {
    scroll-behavior: smooth;
}

:root {
    --primary: #356646;
    --primary-dark: #295037;
    --bg-gradient: linear-gradient(135deg, #e6ece8, #ffffff);
    --white: rgba(255, 255, 255, 0.95);
    --shadow: 0 20px 50px rgba(53, 102, 70, 0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-gradient);
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
    color: #333;
}

.legal-page h1.legal-title {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    text-align: left;
    margin-bottom: 20px;
}

.legal-page h2 {
    margin-top: 30px;
    color: #1a1a1a;
    font-size: 1.2rem;
    text-align: left;
}

.legal-page p {
    margin-bottom: 15px;
    text-align: left;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}

.container {
    max-width: 1000px;
    padding: 40px;
    position: relative;
}

.header {
    text-align: center;
    margin-bottom: 50px;
}

.header-nav {
    display: flex;
    justify-content: flex-start;
}

.card {
    width: 100%;
    max-width: 380px;
    background: var(--white);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 35px 25px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin: auto 0;
    position: relative;
}

@media (max-width: 360px) {
    .card {
        padding: 25px 15px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 10px 0;
    }

    .pricing-card {
        padding: 20px;
    }

    .plan-price {
        font-size: 26px;
    }

    .features li {
        font-size: 13px;
    }

    .main-cta, .cta-btn.solid {
        font-size: 13px;
        padding: 12px;
    }
}

.back-btn {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    background: #f0f4f1;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
}

.back-btn:hover {
    background: var(--primary);
    color: #fff;
}

h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: -1px;
    text-align: center;
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
        /* Ajuste la taille des titres H1 pour les très petits écrans */
    }
}

/* Pages Légales (Regroupées) */
.legal-page {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #f9fbf9;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.legal-page .back-btn {
    margin-bottom: 25px;
}

.legal-page ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.legal-page ul li {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}

.legal-title {
    font-size: 28px;
}

@media (max-width: 480px) {
    .legal-title {
        font-size: 22px;
    }
}

/* Buttons */
.cta-btn,
.main-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.cta-btn.solid,
.main-cta {
    background: #25D366;
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

.cta-btn.solid:hover,
.main-cta:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.35);
}

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

.cta-btn.outline:hover {
    background: #f0f4f1;
}

/* Form Styles */
.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #f0f4f1;
    max-width: 600px;
    margin: 30px auto 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.contact-section {
    padding: 60px 0;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Input with Icon Support */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    opacity: 0.4;
    pointer-events: none;
    transition: var(--transition);
    font-size: 14px;
}

.input-with-icon textarea~i {
    top: 18px;
    transform: none;
}

.input-with-icon input,
.input-with-icon textarea {
    padding-left: 40px !important;
}

.form-group input:focus~i,
.form-group textarea:focus~i {
    opacity: 1;
    color: var(--primary);
}

/* Pricing & Services Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
    padding: 15px 0;
    /* Espace pour le scale(1.03) de la carte populaire */
}

.pricing-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #f0f4f1;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
    height: 100%;
}

.pricing-card .cta-btn {
    width: 100%;
    margin-top: auto;
    /* Pousse le bouton vers le bas de la carte */
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(53, 102, 70, 0.15);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.03);
    /* Ombre externe accentuée et ombre interne (inset) pour un effet de profondeur */
    box-shadow: 0 20px 40px rgba(53, 102, 70, 0.2), inset 0 0 25px rgba(53, 102, 70, 0.05);
}

/* Index UI Components (Avatar, Socials, Tabs) */
.avatar {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    box-shadow: 0 10px 25px rgba(53, 102, 70, 0.25);
    border: 4px solid #fff;
    position: relative;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f4f1;
}

.status-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: #22c55e;
    border: 3px solid #fff;
    border-radius: 50%;
}

.role {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-proof {
    text-align: center;
    font-size: 13px;
    color: #f59e0b;
    margin-bottom: 12px;
    font-weight: 500;
}

.social-proof a {
    text-decoration: none;
}

.social-proof span {
    color: #666;
    font-size: 12px;
    margin-left: 5px;
    transition: 0.3s;
}

.social-proof a:hover span {
    color: var(--primary);
    text-decoration: underline;
}

.desc {
    text-align: center;
    font-size: 14px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.5;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.social {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0f4f1;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: var(--transition);
}

.social:hover {
    transform: translateY(-3px);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 15px rgba(53, 102, 70, 0.2);
}

/* VIP Banner */
.vip-banner {
    margin: 20px 0 25px;
    padding: 18px 20px;
    background: #f5f8f6;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 15px rgba(53, 102, 70, 0.06);
}

.vip-label {
    font-size: 11px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vip-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 6px 18px rgba(53, 102, 70, 0.2);
}

.vip-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(53, 102, 70, 0.3);
}

.tabs {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f4f1;
    margin-bottom: 20px;
    padding: 4px;
}

.tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
}

.tab.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About & Skills */
.about {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid #f9f9f9;
}

.about h3 {
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about h3 i {
    color: var(--primary);
}

.about p {
    font-size: 13.5px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 18px;
}

.cert-card {
    background: #f9fbf9;
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid #e8eee9;
    text-align: center;
    position: relative;
}

.cert-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    z-index: 1;
}

.cert-img {
    width: 100%;
    max-width: 280px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    margin: 0 auto;
}

.cert-img:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.cert-label {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-badge {
    background: #f0f4f1;
    color: var(--primary);
    font-size: 11.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    transition: var(--transition);
    cursor: default;
}

.skill-badge:hover {
    background: var(--primary);
    color: #fff;
}

/* Service Items */
.service {
    display: flex;
    align-items: center;
    padding: 18px 16px;
    border-radius: 16px;
    background: #fff;
    margin-bottom: 12px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f4f1;
    transition: var(--transition);
    position: relative;
}

.service:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(53, 102, 70, 0.1);
    border-color: rgba(53, 102, 70, 0.2);
}

.service-icon {
    width: 42px;
    height: 42px;
    background: #f0f4f1;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
    transition: var(--transition);
}

.service:hover .service-icon {
    background: var(--primary);
    color: #fff;
}

.service-content {
    flex: 1;
}

.service-content h4 {
    font-size: 14.5px;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.service-content p {
    font-size: 12.5px;
    color: #777;
    line-height: 1.4;
}

.service-arrow {
    color: var(--primary);
    font-size: 14px;
    opacity: 0.3;
    transition: var(--transition);
}

.service:hover .service-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.badge-offert {
    background: #22c55e;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 5px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

/* Testimonials */
.testimonial {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
}

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

.testimonial-text {
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial-author {
    font-weight: 600;
    font-size: 0.9rem;
}

.testimonial-author span {
    font-weight: 400;
    color: #666;
    font-size: 0.85rem;
}

/* Carousel Components */
.carousel-wrapper {
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.carousel-track {
    display: flex;
    gap: 15px;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    padding-left: 20px;
    will-change: transform;
}

.project-card {
    min-width: 240px;
    height: 150px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: 0.3s ease;
    transform: scale(0.9);
    opacity: 0.6;
    display: flex;
    align-items: flex-end;
    padding: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

@media (max-width: 400px) {
    .project-card {
        min-width: 200px;
        /* Réduit la largeur minimale des cartes du carousel sur petit mobile */
        height: 130px;
    }
}

.project-card.active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 15px 30px rgba(53, 102, 70, 0.2);
}

.project-card h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.carousel-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #f0f4f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.carousel-btn:hover {
    background: var(--primary);
    color: #fff;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    /* Gris clair */
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Modal Visionneuse */
#certModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#certModal span {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

#imgModal {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    cursor: default;
}

/* Sections Process & Steps */
.process-section {
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.process-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 22px;
    color: #1a1a1a;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.step {
    text-align: center;
    padding: 15px;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: 700;
    font-size: 14px;
}

.step h4 {
    margin-bottom: 8px;
    font-size: 15px;
    color: #1a1a1a;
}

.step p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Error & Confirmation Pages */
.error-code {
    font-size: 80px;
    margin: 0;
    color: var(--primary);
}

.error-message {
    font-size: 20px;
    margin-bottom: 30px;
    color: #666;
}

.thank-you-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.merci-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 15px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.plan-desc {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
    min-height: 40px;
}

.plan-price {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 25px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.plan-price span {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.features {
    list-style: none;
    margin-bottom: 30px;
    flex: 1;
    /* Permet à la liste de prendre tout l'espace disponible */
}

.features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 15px;
}

.features li i {
    color: var(--primary);
    margin-top: 3px;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #eee;
    padding: 18px 24px;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

#cookie-banner p {
    margin: 0;
    max-width: 700px;
}

#cookie-banner a {
    color: #8bc34a;
    text-decoration: underline;
}

#cookie-banner .cookie-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

#cookie-banner .cookie-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
}

#cookie-banner .cookie-btn.accept {
    background: var(--primary);
    color: #fff;
}

#cookie-banner .cookie-btn.accept:hover {
    background: var(--primary-dark);
}

#cookie-banner .cookie-btn.decline {
    background: transparent;
    color: #aaa;
    border: 1px solid #444;
}

#cookie-banner .cookie-btn.decline:hover {
    background: #333;
    color: #fff;
}

@media (max-width: 600px) {
    #cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
}

/* Language Toggle */
.lang-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f0f4f1;
  border: 1px solid #d0dcd2;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--primary);
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  z-index: 10;
}

.lang-toggle:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Footer */
footer {
    text-align: center;
    margin-top: auto;
    padding: 30px 0 20px;
    font-size: 11px;
    color: #999;
}

footer a {
    color: #666;
    text-decoration: none;
    margin: 0 8px;
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .legal-page {
        padding: 20px 15px;
    }

    h1 {
        font-size: 26px;
    }

    .pricing-card.popular {
        transform: none;
    }

    /* Ajustements spécifiques pour les pages 404 et Merci sur mobile */
    .error-code {
        font-size: 60px;
        /* Réduit la taille du code d'erreur 404 */
    }

    .error-message {
        font-size: 18px;
        /* Réduit la taille du message d'erreur */
    }

    .thank-you-title {
        font-size: 24px;
        /* Réduit la taille du titre de remerciement */
    }

    .merci-message {
        font-size: 14px;
        /* Réduit la taille du message de remerciement */
    }
}