/* =======================
   CSS Variables & Reset
   ======================= */

:root {
    /* Colors - Palette Or & Noir (alignée sur le logo) */
    --color-primary: #1A1A1A;        /* Noir profond */
    --color-secondary: #D4B24C;      /* Or */
    --color-accent: #D4B24C;         /* Or clair */
    --color-text: #1A1A1A;           /* Gris foncé (moins noir) */
    --color-text-light: #555555;     /* Gris moyen */
    --color-bg: #FFFFFF;             /* Blanc pur */
    --color-bg-alt: #FAF8F3;         /* Beige très clair */
    --color-border: #E5E5E5;         /* Gris bordure */
    
    /* Typography */
    --font-body: 'Work Sans', -apple-system, system-ui, sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;
    
    /* Spacing - Réduits */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4.5rem;
    
    /* Layout */
    --container-width: 1200px;
    --container-narrow: 800px;
    --border-radius: 12px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(212, 175, 55, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* =======================
   Typography
   ======================= */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 {
    font-size: clamp(1.65rem, 3.2vw, 2.8rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
    margin-bottom: var(--spacing-sm);
}

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

a:hover {
    color: var(--color-secondary);
}

/* =======================
   Layout & Container
   ======================= */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-lg) 0;
    position: relative;
    z-index: 2;
}

.section-compact {
    padding: var(--spacing-md) 0;
}

.section-alt {
    background: var(--color-bg-alt);
    position: relative;
}

.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(135deg, transparent 48%, rgba(212, 175, 55, 0.02) 49%, rgba(212, 175, 55, 0.02) 51%, transparent 52%);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.section-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1A1A1A 100%);
    color: white;
}

.section-cta .btn-primary {
    background: var(--color-secondary);
    color: var(--color-primary);
    border-color: var(--color-secondary);
}

.section-cta .btn-primary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.section-cta h2,
.section-cta p {
    color: white;
}

/* =======================
   Navigation
   ======================= */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    border-bottom: 2px solid var(--color-secondary);
    padding: var(--spacing-sm) 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
}

.nav.hidden {
    transform: translateY(-100%);
}

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

.logo {
    height: 50px;
    width: auto;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-primary);
    margin: 3px 0;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-menu a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--color-accent);
}

.nav-cta {
    padding: 0.6rem 1.5rem;
    background: white;
    color: var(--color-text) !important;
    border: 2px solid var(--color-secondary);
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--color-secondary);
    color: var(--color-primary) !important;
    transform: translateY(-2px);
}

/* =======================
   Hero Section
   ======================= */

.hero {
    padding: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(120deg); }
    66% { transform: translate(-20px, 30px) rotate(240deg); }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =======================
   Buttons
   ======================= */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: var(--color-text);
    border: 2px solid var(--color-secondary);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
    border-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

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

.btn-secondary:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
    border-color: var(--color-secondary);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* =======================
   Section Headers
   ======================= */

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-title {
    margin-bottom: var(--spacing-sm);
}

.section-title-center {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.text-content {
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
}

.text-content p {
    text-align: left;
    line-height: 1.7;
}

.section-disclaimer {
    margin-top: var(--spacing-lg);
    text-align: center;
    color: var(--color-text-light);
    font-style: italic;
}

.hide-mobile {
    display: inline;
}

.show-mobile-only {
    display: none;
}

/* =======================
   Cards Grid
   ======================= */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.card {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.20);
    border-color: var(--color-secondary);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.card-icon-img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.card-title {
    margin-bottom: 0;
    color: var(--color-text);
    flex: 1;
}

.card-description {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* =======================
   Text Content
   ======================= */

.text-content {
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.125rem;
    line-height: 1.8;
}

.text-content p {
    margin-bottom: var(--spacing-sm);
}

.text-content strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* =======================
   Features List
   ======================= */

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.feature-item {
    padding: var(--spacing-md);
    border-left: 4px solid var(--color-secondary);
    background: white;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.feature-title {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.feature-description {
    color: var(--color-text-light);
}

/* =======================
   Use Cases
   ======================= */

.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.use-case-title {
    margin-bottom: 0;
    color: var(--color-text);
    flex: 1;
}

.use-case-list {
    list-style: none;
    padding-left: 0;
}

.use-case-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.use-case-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* =======================
   Process Steps
   ======================= */

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.process-step {
    position: relative;
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.process-step-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.process-number-img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.process-title {
    margin-bottom: 0;
    font-size: 1.15rem;
    flex: 1;
}

.process-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: var(--spacing-sm);
}

.process-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--color-text-light);
}

.process-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.process-note {
    font-style: italic;
    color: var(--color-secondary);
    font-size: 0.95rem;
    margin-top: var(--spacing-sm);
}

/* =======================
   CTA Section
   ======================= */

.cta-text {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.cta-button-wrapper {
    text-align: center;
}

/* =======================
   Footer
   ======================= */

.footer {
    background: white;
    border-top: 2px solid var(--color-secondary);
    padding: 20px 0 12px !important;
}

.footer-content-new {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    padding: 16px 0 !important;
    border-bottom: 1px solid #e5e5e5;
    align-items: start;
}

.footer-logo {
    height: 45px;
    margin-bottom: 4px;
}

.footer-tagline {
    color: var(--color-text-light);
    margin-bottom: 0;
}

.footer-title {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.footer-contact p,
.footer-links li {
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.footer-contact a,
.footer-links a {
    color: var(--color-text-light);
    transition: var(--transition);
}

.footer-contact a:hover,
.footer-links a:hover {
    color: var(--color-secondary);
}

.footer-links ul {
    list-style: none;
}

.footer-bottom {
    text-align: center;
    padding: 10px 0 0 !important;
    color: #6B7280;
    font-size: 0.9rem;
}

/* =======================
   Responsive Design
   ======================= */

@media (max-width: 1100px) {
    .nav-menu {
        gap: var(--spacing-sm);
    }
    
    .nav-cta {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: white;
        padding: var(--spacing-md);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        border-top: 2px solid var(--color-secondary);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .logo {
        height: 42px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        max-width: 400px;
        width: 100%;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .features-list,
    .use-cases,
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: var(--spacing-md) 0;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    body {
        font-size: 0.95rem;
    }
    
    h1 {
        font-size: clamp(1.4rem, 5.5vw, 2.2rem);
        line-height: 1.25;
    }
    
    h2 {
        font-size: clamp(1.4rem, 4vw, 2rem);
    }
    
    h3 {
        font-size: clamp(1.05rem, 3vw, 1.4rem);
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .hide-mobile {
        display: none;
    }
    
    .show-mobile-only {
        display: inline;
    }
    
    .logo {
        height: 38px;
    }
    
    .nav-cta {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .card-title {
        font-size: 1.05rem;
    }
    
    .hero-cta .btn,
    .cta-button-wrapper .btn {
        max-width: 100%;
        width: 100%;
    }
    
    .footer-content {
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .footer-logo {
        margin: 0 auto 0.25rem;
    }
    
    .footer-tagline {
        margin-bottom: var(--spacing-sm);
    }
    
    .footer-links ul {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .text-content p {
        font-size: 0.9rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .section-compact .text-content p {
        font-size: 1rem;
    }
    
    .section-title {
        line-height: 1.3;
    }
}

/* Cadres Comment ça marche - bordure dorée au survol */
.process-step {
    transition: all 0.3s ease;
    border: 2px solid #e5e5e5;
}

.process-step:hover {
    border: 2px solid var(--color-secondary);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
}

/* Nouveau Footer */
.footer-content-new {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
    align-items: start;
}

.footer-col h4 {
    color: #2D2D2D;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.footer-col p {
    color: #6B7280;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-col a {
    color: #6B7280;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--color-secondary);
}

.footer-logo {
    height: 50px;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 0.95rem;
    color: #6B7280;
}

.footer-links-inline a {
    display: block;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding: 12px 0;
    color: #6B7280;
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
    .footer-content-new {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    
    .footer-links-inline {
        white-space: normal;
    }
    
    .footer-links-inline a {
        display: block;
        margin: 8px 0;
    }
}
/* Nouvelle charte - Boutons */
.btn-primary {
    background: #D4B24C !important;
    color: #FFFFFF !important;
    border: 2px solid #D4B24C !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

.btn-primary:hover {
    background: #C9A841 !important;
    border-color: #C9A841 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16) !important;
}

.btn-secondary {
    background: transparent !important;
    color: #D4B24C !important;
    border: 2px solid #D4B24C !important;
}

.btn-secondary:hover {
    background: rgba(212, 178, 76, 0.08) !important;
    color: #D4B24C !important;
    border-color: #D4B24C !important;
}

/* Textes */
h1, h2, h3, h4, h5, h6 {
    color: #1A1A1A !important;
}

body, p, li {
    color: #555555;
}

/* NOUVEAU FOOTER */
.footer {
    background: white;
    border-top: 2px solid var(--color-secondary);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content-new {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    padding: 40px 0;
    border-bottom: 1px solid #e5e5e5;
    align-items: start;
}

.footer-col h4 {
    color: #1A1A1A;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col p {
    color: #6B7280;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-col a {
    color: #6B7280;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--color-secondary);
}

.footer-logo {
    height: 50px;
    margin-bottom: 8px;
    display: block;
}

.footer-tagline {
    font-size: 0.95rem;
    color: #6B7280;
    margin-top: 0;
}

.footer-bottom-new {
    text-align: center;
    padding: 12px 0 0;
    color: #6B7280;
    font-size: 0.9rem;
}

/* MOBILE */
@media (max-width: 768px) {
    .footer-content-new {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-col h4 {
        margin-top: 20px;
    }
}
