/* =====================================================
   VICTORIEN ROUDIL
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Jost:wght@300;400;500;600;700&display=swap');

:root {
    /* Couleurs */
    --primary: #00B0E9;
    --primary-rgb: 0, 176, 233;
    --dark: #111111;
    --dark-rgb: 17, 17, 17;
    --text: #1e1e1e;
    --text-light: #6b6b6b;
    --gray: #999999;
    --light: #f8f8f8;
    --white: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --font-heading: 'DM Sans', -apple-system, sans-serif;
    --font-body: 'Jost', -apple-system, sans-serif;
    
    /* Transitions */
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --header-height: 100px;
    --section-padding: 160px;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 600;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.875rem, 5vw, 3.5rem);
}

h4 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

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

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

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

/* HEADER - HAUT ET AÉRÉ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    height: var(--header-height);
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0;
}

.logo {
    height: 40px;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 50px;
    align-items: center;
    height: 100%;
}

.nav-links li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links li a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.02em;
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links li a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links li a:not(.btn):hover::after,
.nav-links li a:not(.btn).active::after {
    width: 100%;
}

.nav-links li a:not(.btn):hover {
    color: var(--primary);
}

/* Button dans nav */
.nav-links .btn {
    height: auto !important;
    padding: 14px 30px !important;
    margin: 0;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 10;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
    border-radius: 1px;
}

/* Buttons - Style Sophistiqué */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: var(--transition);
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    background: #0098ca;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(var(--primary-rgb), 0.4);
}

.btn-secondary {
    background: var(--dark);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--dark);
    color: var(--dark);
    padding: 14px 34px;
}

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

/* Hero - Fullscreen Sophistiqué */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: var(--header-height);
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
    animation: float 30s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%);
    animation: float 40s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-30px, 30px); }
}

.hero-content {
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.7;
}

/* Sections */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

section.small-padding {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    margin-bottom: 1.5rem;
}

.section-title p {
    font-size: 20px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Backgrounds */
.bg-light {
    background: var(--light);
}

.bg-dark {
    background: linear-gradient(135deg, var(--dark) 0%, #0a0a0a 100%);
    color: var(--white);
}

.bg-dark * {
    color: var(--white);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3 {
    color: var(--white);
}

.bg-dark p {
    color: rgba(255, 255, 255, 0.75);
}

/* Grid Moderne */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.expertise-card {
    background: var(--white);
    padding: 60px 50px;
    border-radius: 0;
    border: 1px solid var(--border);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, transparent 100%);
    transition: var(--transition-slow);
}

.expertise-card:hover {
    border-color: rgba(var(--primary-rgb), 0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.expertise-card:hover::before {
    width: 100%;
}

.expertise-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, #33c1ed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition);
}

.expertise-card:hover .expertise-icon {
    transform: scale(1.1);
}

.expertise-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.expertise-card p {
    font-size: 17px;
    line-height: 1.7;
}

/* Portfolio Masonry */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 4/3;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-item:hover img {
    transform: scale(1.05);
    opacity: 0.3;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transition: var(--transition);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.95) 0%, rgba(var(--primary-rgb), 0.98) 100%);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.portfolio-overlay h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    font-size: 16px;
}

/* Partners */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.partner-logo {
    background: var(--white);
    padding: 50px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    transition: var(--transition);
}

.partner-logo:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.partner-logo img {
    max-width: 130px;
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.4);
    transition: var(--transition);
}

.partner-logo:hover img {
    filter: grayscale(0%) opacity(1);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 10vw, 6rem);
    font-weight: 600;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* CTA */
.cta-section {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 120px 40px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.info-item {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.info-item p {
    font-size: 16px;
    margin: 0;
}

.info-item a {
    color: var(--primary);
    font-weight: 500;
}

.map-container {
    margin-top: 40px;
    overflow: hidden;
    height: 400px;
    border: 1px solid var(--border);
}

.contact-form {
    background: var(--light);
    padding: 60px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 15px;
}

.required {
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 15px;
    background: var(--white);
    transition: var(--transition);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 160px;
}

.captcha-container {
    background: var(--white);
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border);
}

.captcha-question {
    font-weight: 500;
    flex: 1;
}

.captcha-input {
    width: 100px !important;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.blog-card {
    background: var(--white);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.blog-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.blog-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-content {
    padding: 40px;
}

.blog-date {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.blog-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.read-more:hover {
    gap: 14px;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 100px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-content h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.7;
}

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

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease backwards;
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --header-height: 80px;
        --section-padding: 120px;
    }
    
    .expertise-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --section-padding: 80px;
    }
    
    .container, .container-wide, .container-narrow {
        padding: 0 20px;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        border-top: 1px solid var(--border);
    }
    
    .nav-links li {
        height: auto;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .contact-content,
    .portfolio-grid,
    .partners-grid,
    .stats-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.expertise-card.highlighted {
  border: 3px solid #00B0E9;
  border-radius: 12px;
  padding: 1.5rem;
}

/* Google Reviews Section */
.google-reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.google-review-card {
    background: var(--white);
    padding: 40px;
    border: 1px solid var(--border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease backwards;
}

.google-review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 176, 233, 0.08), transparent);
    transition: left 0.6s ease;
}

.google-review-card:hover::before {
    left: 100%;
}

.google-review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 176, 233, 0.15);
    border-color: rgba(0, 176, 233, 0.3);
}

.google-review-card:nth-child(1) {
    animation-delay: 0.1s;
}

.google-review-card:nth-child(2) {
    animation-delay: 0.2s;
}

.google-review-card:nth-child(3) {
    animation-delay: 0.3s;
}

.google-review-card:nth-child(4) {
    animation-delay: 0.4s;
}

.review-stars {
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: 2px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.review-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

@media (max-width: 768px) {
    .google-reviews-container {
        grid-template-columns: 1fr;
    }
    
    .google-review-card {
        padding: 30px;
    }
}