:root {
    --primary: #4f46e5;
    --accent: #7c3aed;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
}

header {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 24px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.logo {
    height: 68px;
}

.lang-switch {
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.05em;
}

.lang-switch span {
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.lang-switch span.active {
    background: var(--primary);
    color: white;
}

nav ul {
    display: flex;
    gap: 48px;
    list-style: none;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.3s;
}

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

/* Dropdown desktop */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    min-width: 320px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 16px 0;
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropdown-content a {
    display: block;
    padding: 14px 32px;
    color: var(--text-primary);
    font-weight: 500;
}

.dropdown-content a:hover {
    background: #eef2ff;
    color: var(--primary);
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 60px;
    margin: 0 auto 120px auto;
    max-width: 1400px;
    padding: 0 48px;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-text h1,
.hero-text p {
    text-align: center;
}

.hero-image {
    position: relative;
    max-width: 600px;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    border-radius: 20px;
    pointer-events: none;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 0;
}

/* Cartes */
.cards,
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    margin: 80px auto;
    max-width: 1400px;
}

.card,
.contact-method {
    background: var(--white);
    padding: 48px 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover,
.contact-method:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card i,
.contact-method i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 32px;
}

.hover-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(79, 70, 229, 0.95);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.3rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.card:hover .hover-info {
    opacity: 1;
}

/* Formulaire contact */
form {
    max-width: 800px;
    margin: 80px auto 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 0 24px;
}

form input,
form textarea {
    width: 100%;
    padding: 20px 24px;
    border: 2px solid var(--border);
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    background-color: var(--white);
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

form input::placeholder,
form textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    transform: translateY(-2px);
}

form textarea {
    min-height: 220px;
    resize: vertical;
}

form button {
    align-self: center;
    background: var(--primary);
    color: white;
    padding: 20px 48px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

form button:hover {
    background: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Boutons */
.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 20px 40px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn:hover {
    background: var(--accent);
    transform: translateY(-4px);
}

.contact-btn {
    display: block;
    width: fit-content;
    margin: 120px auto;
}

/* Footer */
footer {
    text-align: center;
    padding: 80px 48px;
    background: var(--white);
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Team photo */
.team-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.team-photo img {
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 50%;
    border: 12px solid var(--primary); /* Le cadre bleu revient */
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
    display: block;
}

/* Mobile : cadre plus fin mais toujours présent */
@media (max-width: 768px) {
    .team-photo img {
        width: 280px;
        height: 280px;
        border-width: 8px; /* Garde un cadre visible mais plus discret */
    }
}

@media (max-width: 480px) {
    .team-photo img {
        width: 220px;
        height: 220px;
        border-width: 6px;
    }
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-primary);
    color: white;
    padding: 24px 48px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-banner.show {
    display: flex;
}

.cookie-banner p {
    color: white;
    max-width: none;
    margin: 0;
    font-size: 1rem;
}

.cookie-banner a {
    color: #a5b4fc;
    text-decoration: underline;
}

.cookie-banner button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Sections générales */
section {
    padding: 140px 48px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 32px;
    color: var(--text-primary);
}

h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 60px;
    color: var(--primary);
}

h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 24px;
}

p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto 48px;
}

/* Desktop hero côte à côte */
@media (min-width: 1024px) {
    .hero {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 80px;
    }

    .hero-text {
        flex: 1;
        max-width: 620px;
        margin: 0;
    }

    .hero-text h1,
    .hero-text p {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-image {
        flex: 1;
    }
}

/* MOBILE OPTIMISÉ */
@media (max-width: 768px) {
    header {
        padding: 16px 24px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        height: 52px;
    }

    .lang-switch {
        display: block;
        margin-left: auto;
        margin-right: 20px;
        font-size: 1em;
    }

    .lang-switch span {
        padding: 6px 12px;
    }

    .hamburger {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 24px;
        background: var(--white);
        padding: 32px;
        border-radius: 12px;
        box-shadow: var(--shadow-lg);
        position: absolute;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        text-align: center;
    }

    nav ul.active {
        display: flex;
    }

    nav a {
        font-size: 1.4rem;
        font-weight: 600;
    }

    /* Dropdown Services – fix final pour repliement */
    .dropdown-content {
        display: none !important; /* Forcé caché par défaut */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        margin-top: 20px;
        padding: 0;
        background: transparent;
        box-shadow: none;
        position: static;
        transform: none;
    }

    .dropdown.active .dropdown-content {
        display: block !important; /* Visible seulement quand .active */
        opacity: 1;
        visibility: visible;
    }

    .dropdown-content a {
        font-size: 1.2rem;
        padding: 12px 0;
    }

    .dropdown > a::after {
        content: " ▼";
        font-size: 0.8em;
        margin-left: 4px;
    }

    .dropdown.active > a::after {
        content: " ▲";
    }

    section {
        padding: 80px 24px;
    }

    .hero {
        margin-top: 100px;
        gap: 50px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    p {
        font-size: 1.15rem;
    }

    .cards,
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 32px;
        margin: 60px 0;
    }

    .card,
    .contact-method {
        padding: 40px 24px;
    }

    .card i,
    .contact-method i {
        font-size: 3rem;
    }

    .btn,
    form button {
        padding: 18px 36px;
        font-size: 1.2rem;
    }

    .contact-btn {
        margin: 80px auto;
    }

    form {
        gap: 28px;
        margin: 60px auto 0;
    }

    form input,
    form textarea {
        padding: 18px 20px;
        font-size: 1rem;
    }

    footer {
        padding: 60px 24px;
    }

    .team-photo img {
        width: 280px;
        height: 280px;
        border-width: 8px;
    }

    .cookie-banner {
        padding: 20px;
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.6rem;
    }

    h2 {
        font-size: 2.1rem;
    }

    .team-photo img {
        width: 220px;
        height: 220px;
    }

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

/* Restoration Paiement flexible comme au début */
.cards:last-of-type .card {
    background: var(--white);
    padding: 48px 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.cards:last-of-type ul {
    list-style: none;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.cards:last-of-type li {
    padding: 12px 0;
    position: relative;
    padding-left: 32px;
    font-size: 1.2rem;
}

.cards:last-of-type li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Corrections espaces photo fondateur */
.team-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.team-photo img {
    margin: 0 auto;
    display: block;
}

.team-photo p {
    margin-top: 40px;
}

.team-photo + .hero {
    margin-top: 60px;
}

@media (max-width: 768px) {
    .team-photo p {
        margin-top: 30px;
    }

    .team-photo + .hero {
        margin-top: 40px;
    }
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* Placeholder disparaît complètement au focus – version renforcée */
form input::placeholder,
form textarea::placeholder {
    color: #aaa; /* Gris clair normal */
    opacity: 1;
    transition: opacity 0.2s ease;
}

form input:focus::placeholder,
form textarea:focus::placeholder {
    opacity: 0; /* Disparaît au focus */
}

/* Pour les vieux browsers ou Safari récalcitrant */
form input:focus::-webkit-input-placeholder,
form textarea:focus::-webkit-input-placeholder {
    opacity: 0;
}

form input:focus::-moz-placeholder,
form textarea:focus::-moz-placeholder {
    opacity: 0;
}

form input:focus:-ms-input-placeholder,
form textarea:focus:-ms-input-placeholder {
    opacity: 0;
}
.legal-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 30px;
    }

    .legal-links span {
        display: none; /* Enlève les | sur mobile pour plus de place */
    }
}

/* Cadre bleu SEULEMENT sur la 3e carte de la section "Pourquoi choisir NKS Marketing" */
section:has(h2[data-lang-key="whyChooseUsTitle"]) .cards .card:nth-child(3) {
    border: 3px solid var(--primary);
}

section:has(h2[data-lang-key="whyChooseUsTitle"]) .cards .card:nth-child(3) h3 {
    color: var(--primary);
}
.btn.secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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