/* =========================================================
   iDSim — Site web
   Palette inspirée du logo : bleu marine, rouge, blanc
   ========================================================= */

:root {
    --navy-900: #0a1628;
    --navy-800: #102339;
    --navy-700: #1a3358;
    --navy-600: #254978;
    --navy-500: #3a6aa3;
    --red-600: #c8102e;
    --red-500: #e0233f;
    --red-400: #ee4862;
    --white: #ffffff;
    --gray-50: #f7f8fa;
    --gray-100: #eef1f5;
    --gray-200: #d9dee6;
    --gray-400: #8b95a5;
    --gray-600: #4a5568;
    --gray-800: #1f2937;

    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

    --container: 1180px;
    --radius: 14px;
    --radius-sm: 8px;

    --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.06), 0 1px 3px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.08), 0 2px 4px rgba(10, 22, 40, 0.04);
    --shadow-lg: 0 20px 40px -12px rgba(10, 22, 40, 0.18);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--navy-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
    white-space: nowrap;
    border: 1.5px solid transparent;
}

.btn--primary {
    background: var(--red-600);
    color: var(--white);
    box-shadow: 0 8px 20px -8px rgba(200, 16, 46, 0.5);
}
.btn--primary:hover {
    background: var(--red-500);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(200, 16, 46, 0.6);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}
.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}
.btn--outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--white);
}

.btn--full { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
    padding: 18px 0;
}
.nav.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
    padding: 12px 0;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav__brand {
    display: flex;
    align-items: center;
    position: relative;
    height: 36px;
}

.nav__logo {
    height: 36px;
    width: auto;
    transition: opacity 0.3s var(--ease);
}
.nav__logo--light-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
}
.nav.is-scrolled .nav__logo--dark-bg { opacity: 0; }
.nav.is-scrolled .nav__logo--light-bg { opacity: 1; }
.nav.is-scrolled { padding-top: 10px; padding-bottom: 10px; }
.nav.is-scrolled .nav__logo { height: 32px; }

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav__links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s var(--ease);
    position: relative;
}
.nav__links a:not(.nav__cta):hover { color: var(--white); }
.nav__links a:not(.nav__cta)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--red-500);
    transition: width 0.25s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }

.nav.is-scrolled .nav__links a { color: var(--navy-700); }
.nav.is-scrolled .nav__links a:not(.nav__cta):hover { color: var(--navy-900); }

.nav__cta {
    background: var(--red-600);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav__cta:hover {
    background: var(--red-500);
    transform: translateY(-1px);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: background 0.3s var(--ease);
}
.nav.is-scrolled .nav__toggle span { background: var(--navy-900); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--navy-600) 100%);
    color: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
}
.hero__glow--blue {
    width: 500px;
    height: 500px;
    background: var(--navy-500);
    top: -150px;
    left: -100px;
}
.hero__glow--red {
    width: 400px;
    height: 400px;
    background: var(--red-600);
    bottom: -100px;
    right: -50px;
    opacity: 0.3;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}
.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--red-500);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(224, 35, 63, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(224, 35, 63, 0); }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.hero__title-accent {
    color: var(--red-500);
    position: relative;
    display: inline-block;
}
.hero__title-accent::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 8px;
    background: linear-gradient(90deg, transparent, var(--red-600) 30%, var(--red-600) 70%, transparent);
    opacity: 0.3;
    border-radius: 2px;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero__stats {
    display: flex;
    gap: 48px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hero__stat strong {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
}
.hero__stat span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 440px;
}

.hero__logo-frame {
    position: relative;
    width: 360px;
    height: 220px;
    padding: 36px 48px;
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}
.hero__logo {
    width: 100%;
    height: auto;
}

.hero__orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.15);
}
.hero__orbit--1 {
    width: 380px;
    height: 380px;
    animation: spin 30s linear infinite;
}
.hero__orbit--2 {
    width: 460px;
    height: 460px;
    animation: spin 50s linear infinite reverse;
    border-color: rgba(224, 35, 63, 0.18);
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    z-index: 2;
}
.hero__scroll span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 3px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}
@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 24px; }
}

/* ---------- Section base ---------- */
.section {
    padding: 110px 0;
    position: relative;
}

.section__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section__eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--red-600);
    margin-bottom: 14px;
}
.section__eyebrow--light { color: var(--red-400); }

.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--navy-900);
}
.section__title--light { color: var(--white); }

.section__lead {
    margin-top: 18px;
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ---------- About ---------- */
.about {
    background: var(--white);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 70px;
    align-items: start;
}

.about__photo-wrap {
    position: sticky;
    top: 110px;
}

.about__photo-frame {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
    box-shadow: var(--shadow-lg);
}
.about__photo-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--navy-700), var(--red-600));
    border-radius: calc(var(--radius) + 2px);
    z-index: -1;
}
.about__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about__photo-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
    color: var(--white);
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.about__photo-frame.no-photo .about__photo { display: none; }
.about__photo-frame.no-photo .about__photo-fallback { display: flex; }

.about__photo-card {
    position: relative;
    margin-top: -30px;
    margin-left: 24px;
    margin-right: 24px;
    background: var(--white);
    padding: 18px 22px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--red-600);
}
.about__photo-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--navy-900);
    margin-bottom: 2px;
}
.about__photo-card span {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.about__lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--navy-800);
    font-weight: 500;
    margin-bottom: 24px;
}
.about__content p {
    color: var(--gray-600);
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.75;
}

/* Timeline parcours */
.about__timeline-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--navy-900);
    margin-top: 36px;
    margin-bottom: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.timeline {
    list-style: none;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--gray-200);
}
.timeline__item {
    position: relative;
    padding: 0 0 22px 18px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
    position: absolute;
    left: -27px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--navy-700);
    box-shadow: 0 0 0 3px var(--white);
}
.timeline__item--current .timeline__dot {
    background: var(--red-600);
    border-color: var(--red-600);
    box-shadow: 0 0 0 3px var(--white), 0 0 0 6px rgba(200, 16, 46, 0.18);
}
.timeline__item--edu .timeline__dot {
    border-color: var(--gray-400);
}
.timeline__period {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.timeline__logo {
    height: 26px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}
.timeline__logo img {
    height: 100%;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    opacity: 0.92;
}
.timeline__logo--square img {
    max-width: 64px;
}
.timeline__role {
    font-size: 0.98rem;
    color: var(--navy-900);
    margin-bottom: 4px;
}
.timeline__role strong { font-weight: 600; }
.timeline__detail {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.55;
    margin-top: 2px;
}

.about__values {
    list-style: none;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}
.about__values li {
    padding: 10px 0;
    color: var(--gray-600);
    line-height: 1.6;
}
.about__values strong {
    color: var(--navy-900);
    font-weight: 600;
    margin-right: 6px;
}

/* ---------- Expertise ---------- */
.expertise {
    background: var(--gray-50);
}

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

.card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-200);
}

.card__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: background 0.3s var(--ease);
}
.card__icon svg { width: 26px; height: 26px; }
.card:nth-child(2) .card__icon,
.card:nth-child(4) .card__icon,
.card:nth-child(6) .card__icon {
    background: linear-gradient(135deg, var(--red-600), var(--red-500));
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--navy-900);
    margin-bottom: 12px;
    font-weight: 600;
}

.card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ---------- References ---------- */
.references {
    background: var(--white);
}

.references__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.reference {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 36px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.reference::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--navy-700), var(--red-600));
}
.reference:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.reference__head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}
.reference__logo {
    width: 88px;
    height: 64px;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--navy-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
    padding: 8px 12px;
}
.reference__logo--img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.reference__logo--alt {
    background: linear-gradient(135deg, var(--red-600), var(--red-500));
    color: var(--white);
}

.reference h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--navy-900);
    margin-bottom: 4px;
    font-weight: 700;
}

.reference__tag {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
}

.reference > p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 22px;
}

.reference__points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.reference__points li {
    position: relative;
    padding-left: 24px;
    font-size: 0.95rem;
    color: var(--navy-800);
}
.reference__points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 14px;
    height: 2px;
    background: var(--red-600);
}

.references__strip {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 24px 32px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
}
.references__strip > span {
    font-weight: 600;
    color: var(--navy-900);
    font-size: 0.9rem;
}
.references__strip ul {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    list-style: none;
}
.references__strip li {
    padding: 6px 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* ---------- Product ---------- */
.product {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.product::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.25), transparent 70%);
    filter: blur(60px);
}

.product__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.product__title-sub {
    display: block;
    margin-top: 8px;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0;
    text-transform: none;
}

.product__lead {
    margin: 24px 0 36px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.product__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 40px;
}
.product__features li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.product__feature-icon {
    color: var(--red-500);
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 6px;
    flex-shrink: 0;
}
.product__features strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 4px;
    font-weight: 600;
}
.product__features p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.95rem;
    line-height: 1.6;
}

.product__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Mock window */
.mock-window {
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
    transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
    transition: transform 0.5s var(--ease);
}
.mock-window:hover {
    transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.mock-window__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mock-window__bar > span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}
.mock-window__bar > span:first-child { background: #ff5f57; }
.mock-window__bar > span:nth-child(2) { background: #ffbd2e; }
.mock-window__bar > span:nth-child(3) { background: #28ca42; }
.mock-window__bar em {
    margin-left: auto;
    font-style: normal;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-display);
}

.mock-window__body {
    display: grid;
    grid-template-columns: 180px 1fr;
    min-height: 320px;
}

.mock-window__sidebar {
    background: rgba(0, 0, 0, 0.2);
    padding: 16px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mock-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    transition: background 0.2s var(--ease);
}
.mock-row.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
}
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot--blue { background: var(--navy-500); }
.dot--red { background: var(--red-500); }

.mock-window__main {
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-content: start;
}

.mock-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    color: var(--white);
}
.mock-card--wide { grid-column: 1 / -1; color: var(--red-500); }
.mock-card__label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}
.mock-card strong {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--white);
}
.mock-chart {
    width: 100%;
    height: 60px;
    margin-top: 8px;
    color: var(--red-500);
}

/* ---------- Contact ---------- */
.contact {
    background: var(--gray-50);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: start;
}

.contact__lead {
    margin: 24px 0 36px;
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 1.05rem;
}

.contact__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact__list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
}
.contact__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    font-weight: 600;
}
.contact__list a {
    color: var(--navy-900);
    font-weight: 500;
    transition: color 0.2s var(--ease);
}
.contact__list a:hover { color: var(--red-600); }

.contact__form {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-900);
}
.field input,
.field textarea,
.field select {
    padding: 12px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--navy-900);
    background: var(--white);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    resize: vertical;
}
.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%231a3358' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--red-600);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

/* Honeypot anti-spam : caché aux humains, visible aux bots */
.field--hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact__feedback {
    margin-top: 4px;
    font-size: 0.92rem;
    line-height: 1.5;
    min-height: 1.4em;
}
.contact__feedback--ok {
    color: #0a7d3a;
    background: #ecfaf0;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border-left: 3px solid #0a7d3a;
}
.contact__feedback--err {
    color: var(--red-600);
    background: #fdeef0;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--red-600);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--navy-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.footer__brand {
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer__logo { height: 48px; width: auto; }

.footer__tag {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.footer__bottom {
    width: 100%;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
    gap: 12px;
}
.footer__bottom a:hover { color: var(--white); }
.footer__links {
    display: flex;
    gap: 20px;
}

/* ---------- Legal page ---------- */
.legal {
    padding: 60px 0 80px;
    background: var(--white);
    min-height: 60vh;
}
.legal__container { max-width: 820px; }

.legal__header {
    margin-bottom: 48px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--gray-200);
}

.legal__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: var(--navy-900);
    margin-top: 12px;
    margin-bottom: 14px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.legal__updated {
    font-size: 0.9rem;
    color: var(--gray-400);
}

.legal__section {
    margin-bottom: 40px;
}
.legal__section h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--navy-900);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--red-600);
    display: inline-block;
}
.legal__section h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--navy-800);
    margin: 24px 0 10px;
    font-weight: 600;
}
.legal__section p {
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 14px;
}
.legal__section ul {
    margin: 0 0 14px 22px;
    color: var(--gray-600);
    line-height: 1.7;
}
.legal__section a {
    color: var(--red-600);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal__section a:hover { color: var(--red-500); }

.legal__dl {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 10px 24px;
    background: var(--gray-50);
    padding: 24px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
}
.legal__dl dt {
    font-weight: 600;
    color: var(--navy-900);
    font-size: 0.9rem;
}
.legal__dl dd {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0;
}

.legal__note {
    font-size: 0.85rem;
    color: var(--gray-400);
    font-style: italic;
    margin-top: 8px;
}

.legal__back {
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--gray-200);
}
.legal__back a {
    color: var(--navy-700);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}
.legal__back a:hover { color: var(--red-600); }

@media (max-width: 720px) {
    .legal__dl { grid-template-columns: 1fr; gap: 4px; padding: 18px 20px; }
    .legal__dl dd { margin-bottom: 12px; }
}

/* ---------- Reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .hero__visual { height: 360px; }
    .hero__subtitle { margin-left: auto; margin-right: auto; }
    .hero__actions { justify-content: center; }
    .hero__stats { justify-content: center; }

    .about__grid { grid-template-columns: 1fr; gap: 50px; }
    .about__photo-wrap { position: static; max-width: 360px; margin: 0 auto; }

    .expertise__grid { grid-template-columns: repeat(2, 1fr); }

    .product__inner { grid-template-columns: 1fr; gap: 60px; }
    .mock-window { transform: none; }

    .contact__grid { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 720px) {
    .section { padding: 80px 0; }

    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 40px;
        gap: 24px;
        box-shadow: var(--shadow-lg);
        transition: right 0.35s var(--ease);
    }
    .nav__links.is-open { right: 0; }
    .nav__links a { color: var(--navy-900) !important; font-size: 1.1rem; }
    .nav__toggle { display: flex; }

    .hero { padding: 120px 0 80px; min-height: auto; }
    .hero__stats { flex-direction: column; gap: 20px; align-items: center; }
    .hero__visual { height: 280px; }
    .hero__logo-frame { width: 280px; height: 170px; padding: 24px 32px; }
    .hero__orbit--1 { width: 280px; height: 280px; }
    .hero__orbit--2 { width: 340px; height: 340px; }

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

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

    .reference { padding: 28px; }
    .contact__form { padding: 24px; }

    .footer__bottom { flex-direction: column; text-align: center; }
}
