/* ==========================================================================
   PAIE360 - STYLES PRINCIPAUX (CSS)
   Design System Premium - Cabinet de Conseil Haut de Gamme
   ========================================================================== */

/* IMPORT GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* --------------------------------------------------------------------------
   1. VARIABLES & SYSTEME DE DESIGN
   -------------------------------------------------------------------------- */
:root {
    /* Couleurs obligatoires */
    --color-navy: #00162E;
    --color-gold: #B88935;
    --color-gold-light: #CBA55B;
    --color-white: #FFFFFF;
    --color-bg-light: #F8F7F3;
    --color-text-dark: #2B2B2B;
    
    /* Couleurs secondaires & neutres */
    --color-navy-light: #002244;
    --color-text-muted: #666666;
    --color-border: rgba(184, 137, 53, 0.15);
    --color-border-dark: rgba(255, 255, 255, 0.1);
    --color-shadow: rgba(0, 22, 46, 0.05);
    
    /* Typographie */
    --font-title: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Structure & Animations */
    --max-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. REINITIALISATION & STYLES GENERAUX
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    background: none;
    outline: none;
}

/* Utilitaires de conteneur */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

/* Titres & Textes */
h1, h2, h3, h4 {
    font-family: var(--font-title);
    color: var(--color-navy);
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    position: relative;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 650px;
    margin-bottom: 60px;
}

.text-gold {
    color: var(--color-gold) !important;
}

/* Boutons premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(184, 137, 53, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 137, 53, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-navy);
    color: var(--color-navy);
}

.btn-secondary:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   3. HEADER & BARRE DE NAVIGATION
   -------------------------------------------------------------------------- */
.header {
    height: 90px;
    background-color: var(--color-navy);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border-dark);
    transition: var(--transition-smooth);
}

.header.scrolled {
    height: 80px;
    background-color: rgba(0, 22, 46, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo PAIE360 */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.header.scrolled .logo-img {
    height: 48px;
}

.logo:hover .logo-img {
    transform: scale(1.03);
}

/* Fallback Logo Texte Premium */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-text-fallback {
    display: flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1.5px;
    transition: var(--transition-smooth);
}

.logo-text-paie {
    color: var(--color-white);
}

.logo-text-360 {
    color: var(--color-gold);
    border: 1.5px solid var(--color-gold);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    position: relative;
    box-sizing: border-box;
    transition: var(--transition-smooth);
}

.logo:hover .logo-text-fallback {
    transform: scale(1.03);
}

.logo:hover .logo-text-360 {
    border-color: var(--color-gold-light);
    color: var(--color-gold-light);
    box-shadow: 0 0 10px rgba(184, 137, 53, 0.4);
}

/* Menu central */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item a {
    color: var(--color-white);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    opacity: 0.9;
}

.nav-item a:hover {
    color: var(--color-gold);
    opacity: 1;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition-smooth);
}

.nav-item.active a {
    color: var(--color-gold);
    opacity: 1;
}

.nav-item.active a::after,
.nav-item a:hover::after {
    width: 100%;
    left: 0;
}

/* Actions Header */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-actions .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* Hamburger mobile menu button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--color-gold);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   4. SECTION HERO
   -------------------------------------------------------------------------- */
.hero {
    background-color: var(--color-bg-light);
    padding: 180px 0 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-right {
    flex: 1.3;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero h1 {
    font-size: 3.3rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-line {
    width: 80px;
    height: 3px;
    background-color: var(--color-gold);
    margin-bottom: 24px;
}

.hero-text {
    font-size: 1.15rem;
    color: var(--color-text-dark);
    opacity: 0.85;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    width: 100%;
}

/* Image Hero Droite */
.hero-image-wrapper {
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 22, 46, 0.12);
    overflow: visible; /* Permet aux badges de flotter sans être coupés */
}

.hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.hero-img:hover {
    transform: scale(1.02);
}

/* Badges Flottants (Environnement Digital) */
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 137, 53, 0.25);
    box-shadow: 0 10px 30px rgba(0, 22, 46, 0.08);
    padding: 10px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    transition: var(--transition-smooth);
    animation: floatAnimation 5s ease-in-out infinite;
}

.floating-badge:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--color-white);
    border-color: var(--color-gold);
    box-shadow: 0 15px 35px rgba(0, 22, 46, 0.15);
}

.floating-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(40, 167, 69, 0.08);
    color: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.floating-icon.icon-gold {
    background: rgba(184, 137, 53, 0.08);
    color: var(--color-gold);
}

.floating-icon.icon-navy {
    background: rgba(0, 22, 46, 0.08);
    color: var(--color-navy);
}

.floating-text {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.2;
}

.badge-desc {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-weight: 500;
    line-height: 1.2;
}

/* Emplacement des badges et décalage d'animation */
.badge-top-left {
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.badge-bottom-right {
    bottom: 15%;
    right: -5%;
    animation-delay: 2s;
}

.badge-center-left {
    bottom: 42%;
    left: -10%;
    animation-delay: 1s;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* --------------------------------------------------------------------------
   5. BANDE CONFIANCE
   -------------------------------------------------------------------------- */
.trust-band {
    padding: 0 0 80px 0;
    position: relative;
    z-index: 10;
}

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

.trust-card {
    background: var(--color-white);
    padding: 35px 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px var(--color-shadow);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 22, 46, 0.08);
    border-color: var(--color-gold);
}

.trust-icon-wrapper {
    color: var(--color-gold);
    background-color: rgba(184, 137, 53, 0.08);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.trust-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   6. SECTION PROBLEMATIQUE CLIENT
   -------------------------------------------------------------------------- */
.problematic {
    background-color: var(--color-white);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

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

.problem-card {
    background-color: var(--color-bg-light);
    padding: 40px 35px;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-navy);
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.problem-card:hover {
    border-left-color: var(--color-gold);
    transform: translateX(5px);
    box-shadow: 0 10px 25px var(--color-shadow);
}

.problem-num {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.problem-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   7. SECTION SERVICES
   -------------------------------------------------------------------------- */
.services {
    background-color: var(--color-bg-light);
}

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

.service-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    box-shadow: 0 15px 35px var(--color-shadow);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 22, 46, 0.08);
    border-color: var(--color-gold);
}

.service-badge {
    background-color: rgba(0, 22, 46, 0.05);
    color: var(--color-navy);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    line-height: 1.3;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: auto;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--color-text-dark);
}

.service-check {
    color: var(--color-gold);
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   8. SECTION METHODE (SIMPLE & EFFICACE)
   -------------------------------------------------------------------------- */
.method {
    background-color: var(--color-navy);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

/* Cercles décoratifs premium en arrière-plan */
.method::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(184, 137, 53, 0.08);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.method h2 {
    color: var(--color-white);
    margin-bottom: 10px;
}

.method .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

/* Ligne de connexion sur desktop */
.method-grid::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 1px;
    background-color: rgba(184, 137, 53, 0.2);
    z-index: 1;
}

.method-step {
    position: relative;
    z-index: 2;
    background-color: var(--color-navy);
    padding-right: 15px;
}

.method-num {
    font-family: var(--font-title);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-gold);
    display: block;
    margin-bottom: 20px;
    line-height: 1;
    transition: var(--transition-smooth);
}

.method-step:hover .method-num {
    transform: translateY(-5px);
    color: var(--color-gold-light);
}

.method-step h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 12px;
}

.method-step p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   9. SECTION A PROPOS
   -------------------------------------------------------------------------- */
.about {
    background-color: var(--color-white);
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.about-left {
    width: 50%;
}

.about-right {
    width: 50%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.about-left p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-dark);
    margin-bottom: 30px;
}

.about-highlight-card {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 30px 25px;
    text-align: center;
    transition: var(--transition-smooth);
}

.about-highlight-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    background-color: var(--color-white);
    box-shadow: 0 10px 25px var(--color-shadow);
}

.about-highlight-icon {
    color: var(--color-gold);
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.about-highlight-card h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-navy);
}

/* --------------------------------------------------------------------------
   10. SECTION CONTACT
   -------------------------------------------------------------------------- */
.contact {
    background-color: var(--color-bg-light);
}

.contact-layout {
    display: flex;
    gap: 60px;
}

/* Info Contact Droite */
.contact-info {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-top h2 {
    margin-bottom: 20px;
}

.contact-info-top p {
    color: var(--color-text-muted);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-detail-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 22, 46, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy);
}

.contact-detail-text span {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-detail-text a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-navy);
}

.contact-detail-text a:hover {
    color: var(--color-gold);
}

/* Formulaire Contact Gauche */
.contact-form-container {
    width: 60%;
    background-color: var(--color-white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 45px var(--color-shadow);
    border: 1px solid var(--color-border);
}

.form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 22, 46, 0.1);
    background-color: var(--color-bg-light);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--color-gold);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(184, 137, 53, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

.contact-form-container .btn {
    width: 100%;
    margin-top: 10px;
}

/* Messages de validation formulaire */
.form-response {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    text-align: center;
    display: none;
}

.form-response.success {
    display: block;
    background-color: rgba(40, 167, 69, 0.1);
    color: #1e7e34;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.form-response.error {
    display: block;
    background-color: rgba(220, 53, 69, 0.1);
    color: #bd2130;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 80px 0 40px 0;
    border-top: 1px solid var(--color-border-dark);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand .logo {
    font-size: 1.6rem;
}

.footer-tagline {
    font-size: 0.95rem;
    opacity: 0.7;
    max-width: 250px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    font-size: 0.95rem;
    opacity: 0.7;
}

.footer-links a:hover {
    color: var(--color-gold);
    opacity: 1;
    transform: translateX(4px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 0.95rem;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid var(--color-border-dark);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* --------------------------------------------------------------------------
   12. ANIMATIONS & SCROLL REVEAL
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Délais pour les cascades d'apparition */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   13. RESPONSIVE DESIGN (MEDIA QUERIES)
   -------------------------------------------------------------------------- */

/* Desktop Moyen */
@media (max-width: 1200px) {
    h1 {
        font-size: 2.8rem;
    }
    .hero-container {
        gap: 40px;
    }
}

/* Tablette Paysage / Petit Écran */
@media (max-width: 992px) {
    .section-padding {
        padding: 80px 0;
    }
    
    /* Header mobile */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-navy);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-smooth);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav-menu .nav-item a {
        color: var(--color-white);
    }
    
    .nav-menu .nav-item.active a {
        color: var(--color-gold);
    }
    
    .nav-actions {
        display: none; /* Le bouton est reporté ou caché pour simplifier */
    }
    
    /* Hide floating badges on tablets and mobile to avoid viewport overflow */
    .floating-badge {
        display: none !important;
    }
    
    /* Hero section */
    .hero {
        padding: 140px 0 60px 0;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
    
    .hero-left {
        flex: none;
        width: 100%;
        align-items: center;
    }
    
    .hero-line {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-right {
        flex: none;
        width: 100%;
        justify-content: center;
    }
    
    .hero-image-wrapper {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Bande Confiance */
    .trust-band {
        padding-bottom: 60px;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Problématique Client */
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Méthode */
    .method-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
    
    .method-grid::after {
        display: none;
    }
    
    /* À propos */
    .about-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-left, .about-right {
        width: 100%;
    }
    
    /* Contact */
    .contact-layout {
        flex-direction: column-reverse;
        gap: 50px;
    }
    
    .contact-info, .contact-form-container {
        width: 100%;
    }
    
    .contact-info-top p {
        margin-bottom: 25px;
    }
    
    /* Footer */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    html {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .method-grid {
        grid-template-columns: 1fr;
    }
    
    .about-right {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   14. MODALS (MENTIONS LÉGALES & CGU)
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 22, 46, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background-color: var(--color-white);
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: 0 30px 60px rgba(0, 22, 46, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(184, 137, 53, 0.1);
    background-color: var(--color-bg-light);
}

.modal-header h2 {
    font-size: 1.8rem;
    color: var(--color-navy);
    margin: 0;
}

.modal-close {
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-gold);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
    padding: 4px 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--color-navy);
    background-color: rgba(184, 137, 53, 0.1);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    font-size: 0.95rem;
    color: var(--color-text-dark);
    line-height: 1.6;
}

.modal-meta {
    font-size: 0.85rem;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body h3 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 32px 0 16px 0;
}

.modal-body h3:first-of-type {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 16px;
}

.modal-body ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-body li {
    font-size: 0.95rem;
    color: var(--color-text-dark);
}

.modal-body strong {
    color: var(--color-navy);
}

.modal-body a {
    color: var(--color-gold);
    font-weight: 600;
    border-bottom: 1px dashed var(--color-gold);
}

.modal-body a:hover {
    color: var(--color-gold-light);
    border-bottom-style: solid;
}

/* Scrollbar Customization for Premium feel */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--color-bg-light);
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(184, 137, 53, 0.3);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(184, 137, 53, 0.5);
}

@media (max-width: 600px) {
    .modal-overlay {
        padding: 12px;
    }
    .modal-box {
        max-height: 90vh;
    }
    .modal-header {
        padding: 16px 20px;
    }
    .modal-header h2 {
        font-size: 1.4rem;
    }
    .modal-body {
        padding: 20px;
    }
}

