/* ===========================================
   ForgeCode - Direction Artistique
   Couleurs: Bleu profond, turquoise, gris chaud, blanc cassé, violet accent
   Style: Chaleureux, moderne, rassurant, formes arrondies
   =========================================== */

:root {
    --primary-dark: #1a365d;
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --turquoise: #0891b2;
    --turquoise-light: #22d3ee;
    --accent-violet: #7c3aed;
    --gray-warm: #57534e;
    --gray-light: #78716c;
    --off-white: #faf9f7;
    --cream: #f5f3f0;
    --white: #ffffff;
    --text-dark: #292524;
    --text-body: #44403c;
    --shadow-soft: 0 4px 20px rgba(26, 54, 93, 0.08);
    --shadow-medium: 0 8px 30px rgba(26, 54, 93, 0.12);
    --shadow-strong: 0 12px 40px rgba(26, 54, 93, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --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: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--off-white);
    color: var(--text-body);
    line-height: 1.7;
    font-size: 16px;
}

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

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-body);
    max-width: 65ch;
}

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

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

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

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo-text span {
    color: var(--turquoise);
}

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

nav a {
    color: var(--gray-warm);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--turquoise));
    border-radius: 2px;
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary-dark);
}

nav a:hover::after {
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--turquoise) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    color: white;
}

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

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

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 40px 80px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(8, 145, 178, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(8, 145, 178, 0.1) 100%);
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--turquoise);
    border-radius: 50%;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--turquoise) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-warm);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--gray-light);
    font-size: 0.9rem;
}

.hero-trust-icons {
    display: flex;
    gap: 8px;
}

.hero-trust-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-large {
    width: 400px;
    height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(26, 54, 93, 0.15));
    animation: float 6s ease-in-out infinite;
}

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

/* ===========================================
   Sections communes
   =========================================== */

section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    margin: 0 auto;
    color: var(--gray-warm);
}

/* ===========================================
   Section Metiers cibles
   =========================================== */

.metiers {
    background: var(--white);
    padding: 100px 40px;
}

.metiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.metier-card {
    background: var(--off-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.metier-card:hover {
    transform: translateY(-4px);
    border-color: var(--turquoise-light);
    box-shadow: var(--shadow-medium);
}

.metier-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--turquoise) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.metier-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.metier-card p {
    font-size: 0.95rem;
    color: var(--gray-warm);
    margin: 0 auto;
}

/* ===========================================
   Section Processus
   =========================================== */

.processus {
    background: linear-gradient(180deg, var(--cream) 0%, var(--off-white) 100%);
}

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

.step {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--turquoise) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.step h3 {
    margin-bottom: 12px;
}

.step p {
    font-size: 0.95rem;
    color: var(--gray-warm);
}

/* ===========================================
   Section Services
   =========================================== */

.services {
    background: var(--white);
    padding: 100px 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--off-white);
    padding: 40px;
    border-radius: var(--radius-xl);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--turquoise));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(8, 145, 178, 0.1) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--gray-warm);
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    padding: 8px 0;
    color: var(--gray-warm);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card li::before {
    content: '✓';
    color: var(--turquoise);
    font-weight: 700;
}

/* ===========================================
   Section Valeurs
   =========================================== */

.valeurs {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 100px 40px;
    margin: 0;
    max-width: 100%;
}

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

.valeurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.valeur-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.valeur-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.valeur-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.valeur-item h4 {
    color: white;
    margin-bottom: 8px;
}

.valeur-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ===========================================
   Section Contact
   =========================================== */

.contact {
    background: var(--off-white);
    padding: 100px 40px;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-card {
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-medium);
}

.contact-card h2 {
    margin-bottom: 16px;
}

.contact-card > p {
    margin: 0 auto 40px;
    color: var(--gray-warm);
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--off-white);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-method:hover {
    background: var(--cream);
    transform: translateY(-2px);
}

.contact-method-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--turquoise) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-method-info {
    text-align: left;
}

.contact-method-label {
    font-size: 0.8rem;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-method-value {
    color: var(--text-dark);
    font-weight: 500;
}

/* ===========================================
   Formulaire de contact
   =========================================== */

.contact-container {
    max-width: 860px;
}

.contact-form {
    text-align: left;
    width: 100%;
    margin-bottom: 8px;
}

/* Honeypot : visuellement absent, mais les bots le voient */
.form-honeypot {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.required {
    color: var(--primary);
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 11px 14px;
    border: 1.5px solid #e2ddd8;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--primary-dark);
    background: var(--off-white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b5b0ab;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--turquoise);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
    background: var(--white);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
}

.form-note {
    font-size: 0.8rem;
    color: var(--gray-light);
}

.form-feedback {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-top: 16px;
    text-align: left;
}

.form-feedback.success {
    background: rgba(8, 145, 178, 0.08);
    border: 1.5px solid var(--turquoise);
    color: #0e7490;
}

.form-feedback.error {
    background: rgba(220, 38, 38, 0.07);
    border: 1.5px solid #dc2626;
    color: #dc2626;
}

.contact-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0 24px;
    color: var(--gray-light);
    font-size: 0.85rem;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ece9e4;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

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

footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 40px 30px;
}

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

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.footer-logo span {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-tagline {
    font-size: 0.95rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 0;
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: var(--turquoise-light);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}

/* ===========================================
   Chat Widget - Bot FAQ
   =========================================== */

.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.chat-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--turquoise));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37, 99, 235, 0.5);
}

.chat-toggle .chat-icon-open,
.chat-toggle .chat-icon-close {
    position: absolute;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-toggle .chat-icon-close {
    opacity: 0;
    transform: rotate(-90deg);
}

.chat-widget.is-open .chat-toggle .chat-icon-open {
    opacity: 0;
    transform: rotate(90deg);
}

.chat-widget.is-open .chat-toggle .chat-icon-close {
    opacity: 1;
    transform: rotate(0deg);
}

.chat-toggle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--turquoise));
    animation: chatPing 1.2s ease-out 4;
    animation-delay: 1s;
    z-index: -1;
}

@keyframes chatPing {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.7); opacity: 0; }
}

.chat-panel {
    width: 320px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(26, 54, 93, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0.85) translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
    max-height: 480px;
}

.chat-widget.is-open .chat-panel {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--turquoise));
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    flex-shrink: 0;
}

.chat-header-avatar {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.chat-header-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    object-fit: cover;
}

.chat-status-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--primary-dark);
}

.chat-header-info {
    display: flex;
    flex-direction: column;
}

.chat-header-info strong {
    font-size: 0.95rem;
    font-weight: 600;
}

.chat-header-info span {
    font-size: 0.78rem;
    opacity: 0.8;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-track { background: transparent; }
.chat-body::-webkit-scrollbar-thumb { background: var(--cream); border-radius: 2px; }

.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 86%;
}

.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }

.chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.5;
    word-break: break-word;
}

.chat-msg.bot .chat-bubble {
    background: var(--cream);
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
}

.chat-msg.user .chat-bubble {
    background: linear-gradient(135deg, var(--primary), var(--turquoise));
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-typing .chat-bubble {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
}

.chat-typing .chat-bubble span {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--gray-light);
    border-radius: 50%;
    animation: chatDot 1.2s ease-in-out infinite;
}

.chat-typing .chat-bubble span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing .chat-bubble span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-5px); opacity: 1; }
}

.chat-choices {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-self: stretch;
}

.chat-choice {
    background: white;
    border: 1.5px solid var(--primary-light);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.83rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}

.chat-choice:hover {
    background: var(--primary);
    color: white;
}

.chat-choice:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

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

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-logo-large {
        width: 280px;
        height: 280px;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    header {
        padding: 12px 20px;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-logo-large {
        width: 180px;
        height: 180px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .metiers,
    .processus,
    .services,
    .valeurs,
    .portfolio,
    .contact {
        padding: 60px 20px;
    }

    .contact-card {
        padding: 32px 20px;
    }

    .contact-methods {
        flex-direction: column;
        align-items: center;
    }

    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

    .valeurs-grid {
        grid-template-columns: 1fr;
    }

    .metiers-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .processus-steps {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   Animations - Showcase du savoir-faire
   =========================================== */

/* Keyframes de base */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes floatRotate {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-2deg); }
}

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

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes borderGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(8, 145, 178, 0.3), 0 0 10px rgba(8, 145, 178, 0.2); }
    50% { box-shadow: 0 0 20px rgba(8, 145, 178, 0.5), 0 0 30px rgba(8, 145, 178, 0.3); }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-color: var(--turquoise); }
    51%, 100% { border-color: transparent; }
}

@keyframes ripple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

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

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-8px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-4px); }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes drawLine {
    from { width: 0; }
    to { width: 100%; }
}

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

/* Classes d'animation au scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.from-left {
    transform: translateX(-60px);
}

.animate-on-scroll.from-left.animated {
    transform: translateX(0);
}

.animate-on-scroll.from-right {
    transform: translateX(60px);
}

.animate-on-scroll.from-right.animated {
    transform: translateX(0);
}

.animate-on-scroll.scale {
    transform: scale(0.8);
}

.animate-on-scroll.scale.animated {
    transform: scale(1);
}

/* Delays pour animations en cascade */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }
.delay-6 { transition-delay: 0.6s !important; }

/* ===========================================
   Header animations
   =========================================== */

header {
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    position: relative;
    overflow: hidden;
}

.logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.logo:hover::after {
    left: 100%;
}

.logo img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover img {
    transform: rotate(10deg) scale(1.1);
}

nav a {
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--turquoise));
    transition: all 0.3s ease-out;
    transform: translateX(-50%);
}

nav a:hover::before {
    width: 100%;
}

/* ===========================================
   Hero animations avancees
   =========================================== */

.hero-content {
    animation: fadeInLeft 1s ease-out;
}

.hero-visual {
    animation: fadeInRight 1s ease-out 0.3s backwards;
}

.hero-badge {
    animation: fadeInUp 0.8s ease-out 0.2s backwards, pulse 3s ease-in-out infinite 1s;
    position: relative;
}

.hero-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

.hero h1 {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    background-size: 200% auto;
    animation: fadeInUp 0.8s ease-out 0.4s backwards, gradientShift 5s ease infinite;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.hero-trust {
    animation: fadeInUp 0.8s ease-out 1s backwards;
}

.hero-logo-large {
    animation: floatRotate 8s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(26, 54, 93, 0.15));
}

.hero-trust-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-trust-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-medium);
}

/* Particules animees dans le hero */
.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

/* ===========================================
   Boutons animations
   =========================================== */

.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

.btn-primary:hover {
    animation: gradientShift 2s ease infinite;
}

.btn-primary:active {
    transform: scale(0.95);
}

/* ===========================================
   Cards animations (metiers, services, etc.)
   =========================================== */

.metier-card,
.service-card,
.step,
.valeur-item,
.portfolio-card {
    position: relative;
    overflow: hidden;
}

.metier-card::before,
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(8, 145, 178, 0.05), transparent);
    transition: 0.6s;
}

.metier-card:hover::before,
.service-card:hover::before {
    left: 100%;
}

.metier-icon,
.service-icon {
    transition: transform 0.5s ease-in-out, filter 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.metier-card:hover .metier-icon {
    transform: scale(1.1) translateY(-2px);
    filter: drop-shadow(0 8px 20px rgba(37, 99, 235, 0.35));
}

.service-card:hover .service-icon {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

/* Step numbers animation */
.step-number {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--turquoise);
    border-radius: 50%;
    opacity: 0;
    transform: scale(1.2);
    transition: all 0.4s;
}

.step:hover .step-number::after {
    opacity: 1;
    transform: scale(1);
    animation: pulse 1.5s ease-in-out infinite;
}

/* ===========================================
   Valeurs section animations speciales
   =========================================== */

.valeur-icon {
    transition: transform 0.5s ease-in-out, filter 0.5s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.valeur-item:hover .valeur-icon {
    transform: scale(1.12) translateY(-3px);
    filter: drop-shadow(0 4px 14px rgba(255, 255, 255, 0.3));
}

/* SVG icon sizing and colors */
.metier-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.valeur-icon svg {
    width: 36px;
    height: 36px;
    color: white;
}

.contact-method-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.hero-trust-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.valeurs {
    position: relative;
    overflow: hidden;
}

.valeurs::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.03) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

/* ===========================================
   Portfolio animations
   =========================================== */

.portfolio-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.portfolio-header {
    position: relative;
    overflow: hidden;
}

.portfolio-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.8s;
}

.portfolio-card:hover .portfolio-header::before {
    left: 150%;
}

.portfolio-tech span {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-tech span {
    animation: slideInStagger 0.5s ease backwards;
}

.portfolio-card:hover .portfolio-tech span:nth-child(1) { animation-delay: 0.05s; }
.portfolio-card:hover .portfolio-tech span:nth-child(2) { animation-delay: 0.1s; }
.portfolio-card:hover .portfolio-tech span:nth-child(3) { animation-delay: 0.15s; }
.portfolio-card:hover .portfolio-tech span:nth-child(4) { animation-delay: 0.2s; }

.portfolio-link {
    position: relative;
    overflow: hidden;
}

.portfolio-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.portfolio-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ===========================================
   Contact animations
   =========================================== */

.contact-card {
    animation: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover {
    box-shadow: var(--shadow-strong), 0 0 40px rgba(8, 145, 178, 0.1);
}

.contact-method {
    position: relative;
    overflow: hidden;
}

.contact-method::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(8, 145, 178, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s;
}

.contact-method:hover::before {
    width: 300px;
    height: 300px;
}

.contact-method-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-method:hover .contact-method-icon {
    transform: scale(1.1) rotate(5deg);
}

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

.footer-logo img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-logo:hover img {
    transform: rotate(360deg);
}

.footer-column a {
    position: relative;
    display: inline-block;
}

.footer-column a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--turquoise-light);
    transition: width 0.3s ease;
}

.footer-column a:hover::before {
    width: 100%;
}

/* ===========================================
   Easter egg animation
   =========================================== */

.cat-easter-egg {
    animation: float 4s ease-in-out infinite;
}

.cat-easter-egg:hover {
    animation: iconBounce 0.5s ease, float 4s ease-in-out infinite;
}

/* ===========================================
   Section headers animations
   =========================================== */

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--turquoise));
    border-radius: 2px;
    transition: width 0.4s ease;
}

.section-header:hover h2::after {
    width: 120px;
}

/* ===========================================
   Scroll indicator animation
   =========================================== */

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-light);
    font-size: 0.85rem;
    animation: fadeInUp 1s ease-out 1.5s backwards;
}

.scroll-indicator-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--turquoise);
    border-radius: 2px;
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 24px; }
}

/* ===========================================
   Loading animation pour les images
   =========================================== */

img {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

img.loaded,
header img,
.hero-logo-large,
.cat-easter-egg,
.footer-logo img {
    opacity: 1;
}

/* ===========================================
   Text selection style
   =========================================== */

::selection {
    background: var(--turquoise);
    color: white;
}

/* ===========================================
   Smooth scroll behavior
   =========================================== */

html {
    scroll-behavior: smooth;
}

/* ===========================================
   Focus animations (accessibilite)
   =========================================== */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--turquoise);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ===========================================
   Reduced motion (accessibilite)
   =========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================================
   Curseur personnalise
   =========================================== */

.custom-cursor {
    pointer-events: none;
    z-index: 9999;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--turquoise);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    z-index: 10001;
    pointer-events: none;
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(8, 145, 178, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    z-index: 10000;
    pointer-events: none;
}

.cursor-hover .cursor-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
}

.cursor-hover .cursor-ring {
    width: 60px;
    height: 60px;
    border-color: rgba(37, 99, 235, 0.5);
}

/* Cacher le curseur sur mobile */
@media (max-width: 1024px) {
    .custom-cursor {
        display: none;
    }
}

/* ===========================================
   Header scrolled state
   =========================================== */

header {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    padding: 8px 40px;
    box-shadow: var(--shadow-medium);
    background: rgba(255, 255, 255, 0.98);
}

header.scrolled .logo img {
    width: 40px;
    height: 40px;
}

header.scrolled .logo-text {
    font-size: 1.3rem;
}

/* ===========================================
   Menu mobile
   =========================================== */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    nav {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px 40px;
        gap: 24px;
        box-shadow: var(--shadow-strong);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
    }

    nav.mobile-open {
        right: 0;
    }

    nav a {
        font-size: 1.1rem;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--cream);
    }

    nav .btn {
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }

    .lang-switch {
        width: 100%;
        justify-content: center;
        margin-top: auto;
        padding-top: 20px;
        border-top: 1px solid var(--cream);
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }

    /* Overlay pour fermer le menu */
    nav.mobile-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
    }
}

/* ===========================================
   Scroll indicator
   =========================================== */

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray-light);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out 1.5s backwards;
    cursor: pointer;
    transition: color 0.3s;
}

.scroll-indicator:hover {
    color: var(--primary);
}

.scroll-indicator-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid currentColor;
    border-radius: 14px;
    position: relative;
    transition: border-color 0.3s;
}

.scroll-indicator-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--turquoise);
    border-radius: 3px;
    animation: scrollDown 1.5s ease-in-out infinite;
}

@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 20px;
    }
}

/* ===========================================
   Preloader
   =========================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s, visibility 0.5s;
}

body.loaded .preloader {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 80px;
    height: 80px;
    animation: pulse 1s ease-in-out infinite, float 2s ease-in-out infinite;
}

/* ===========================================
   Glowing border effect
   =========================================== */

.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary), var(--turquoise), var(--primary), var(--turquoise));
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: gradientShift 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.glow-border:hover::before {
    opacity: 1;
}

/* ===========================================
   Text gradient animation
   =========================================== */

.text-gradient-animated {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--turquoise), var(--primary));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

/* ===========================================
   Floating elements decoration
   =========================================== */

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
}

.floating-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 10%;
    right: 5%;
    animation: float 8s ease-in-out infinite;
}

.floating-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    background: var(--turquoise);
    bottom: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite reverse;
}

.floating-shape:nth-child(3) {
    width: 150px;
    height: 150px;
    background: var(--accent-violet);
    top: 50%;
    right: 20%;
    animation: float 10s ease-in-out infinite;
}

/* ===========================================
   Number counter animation
   =========================================== */

.counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1;
}

.counter-label {
    font-size: 0.9rem;
    color: var(--gray-warm);
    margin-top: 8px;
}

/* ===========================================
   Ripple animation keyframe
   =========================================== */

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===========================================
   Background Parallax Mouse Effects
   Formes geometriques qui reagissent a la souris
   =========================================== */

.bg-mouse-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Formes de base */
.parallax-shape {
    position: absolute;
    pointer-events: none;
    transition: top 0.3s ease-out;
    will-change: transform;
}

/* Cercles */
.shape-circle {
    border-radius: 50%;
}

/* Carres / Losanges */
.shape-square {
    border-radius: 15%;
}

/* Hexagones */
.shape-hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Anneaux */
.shape-ring {
    border-radius: 50%;
    background: transparent !important;
}

/* Couleurs */
.shape-primary {
    background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.03) 50%, transparent 70%);
}

.shape-turquoise {
    background: radial-gradient(circle at 30% 30%, rgba(8, 145, 178, 0.08) 0%, rgba(8, 145, 178, 0.03) 50%, transparent 70%);
}

.shape-violet {
    background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.06) 0%, rgba(124, 58, 237, 0.02) 50%, transparent 70%);
}

/* Anneaux avec bordure */
.shape-ring.shape-primary {
    border: 2px solid rgba(37, 99, 235, 0.08);
}

.shape-ring.shape-turquoise {
    border: 2px solid rgba(8, 145, 178, 0.1);
}

/* Effet de brillance subtile sur les formes */
.parallax-shape::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* Animation de flottement subtile */
.parallax-shape {
    animation: gentleFloat 20s ease-in-out infinite;
}

.parallax-shape:nth-child(odd) {
    animation-direction: reverse;
    animation-duration: 25s;
}

.parallax-shape:nth-child(3n) {
    animation-duration: 30s;
}

@keyframes gentleFloat {
    0%, 100% {
        filter: blur(0px);
    }
    50% {
        filter: blur(1px);
    }
}

/* Desactiver sur mobile pour performance */
@media (max-width: 768px) {
    .bg-mouse-effects {
        display: none;
    }
}

/* Version simplifiee pour tablettes */
@media (max-width: 1024px) and (min-width: 769px) {
    .parallax-shape:nth-child(n+10) {
        display: none;
    }
}

/* Reduire les effets si prefere */
@media (prefers-reduced-motion: reduce) {
    .bg-mouse-effects {
        display: none;
    }
}

/* ===========================================
   Language Switcher
   =========================================== */

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid var(--cream);
}

.lang-switch a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-warm);
    background: transparent;
    transition: var(--transition);
    text-transform: uppercase;
}

.lang-switch a:hover {
    background: var(--cream);
    color: var(--primary-dark);
}

.lang-switch a.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--turquoise) 100%);
    color: white;
}

/* ===========================================
   Section Portfolio / Realisations
   =========================================== */

.portfolio {
    background: var(--cream);
    padding: 100px 40px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.portfolio-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 24px 28px;
    position: relative;
}

.portfolio-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--turquoise), var(--turquoise-light));
}

.portfolio-card h3 {
    color: white;
    margin: 0;
    font-size: 1.35rem;
}

.portfolio-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 8px;
}

.portfolio-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-content p {
    font-size: 0.95rem;
    color: var(--gray-warm);
    margin-bottom: 20px;
    flex: 1;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.portfolio-tech span {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(8, 145, 178, 0.08) 100%);
    color: var(--primary-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.portfolio-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.portfolio-link.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--turquoise) 100%);
    color: white;
}

.portfolio-link.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: white;
}

.portfolio-link.secondary {
    background: var(--off-white);
    color: var(--primary-dark);
}

.portfolio-link.secondary:hover {
    background: var(--cream);
}

/* Responsive portfolio */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .lang-switch {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }
}
