/* Obtao — feuille de style unique. Sobre, sans framework. */

:root {
    --blue: #0095cf;
    --blue-text: #00709c;
    --blue-dark: #005a7e;
    --ink: #17202b;
    --muted: #4f5b67;
    --line: #e2e6ea;
    --bg: #ffffff;
    --bg-alt: #f5f7f9;
    --error: #b42318;
    --success: #1b6e3a;
    --radius: 6px;
    --container: 1120px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
}

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

a { color: var(--blue-text); text-underline-offset: .15em; }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

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

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Boutons */
.button {
    display: inline-block;
    background: var(--blue-text);
    color: #fff;
    border: 2px solid var(--blue-text);
    border-radius: var(--radius);
    padding: .7rem 1.3rem;
    font: inherit; font-weight: 600; font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
}
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.button--ghost { background: transparent; color: var(--blue-text); }
.button--ghost:hover { background: var(--bg-alt); color: var(--blue-dark); }

/* En-tête */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: .5rem 1.5rem;
    padding-top: .8rem; padding-bottom: .8rem;
}
.brand img { height: 32px; width: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.site-nav a:hover { color: var(--blue-text); text-decoration: underline; }
.site-nav .lang {
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: .15rem .5rem; font-size: .85rem; font-weight: 600; color: var(--muted);
}

/* Accroche */
.hero { padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.eyebrow { color: var(--blue-text); font-weight: 600; font-size: .95rem; letter-spacing: .02em; margin-bottom: .75rem; }
.hero h1 { max-width: 20ch; }
.hero__lead { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--muted); max-width: 46rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Chiffres clés */
.figures { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figures__list {
    display: grid; grid-template-columns: repeat(4, 1fr);
    margin: 0; padding: 1.75rem 0; gap: 1.5rem;
}
.figure { display: flex; flex-direction: column; }
.figure dd { order: -1; }
.figure dt { color: var(--muted); font-size: .95rem; }
.figure dd { margin: 0; font-size: 1.6rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }

/* Sections */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__intro { color: var(--muted); max-width: 46rem; margin-bottom: 2.25rem; }

/* Offre */
.cards { display: grid; gap: 1.25rem; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.5rem; background: #fff;
    border-top: 3px solid var(--blue);
}
.card h3 { color: var(--ink); }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Pourquoi Obtao */
.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; }
.points p { color: var(--muted); margin: 0; }

/* Références */
.references { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.reference {
    display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; align-items: start;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
}
.reference:first-child { grid-column: 1 / -1; }
.reference__logo { display: flex; align-items: center; min-height: 3rem; }
.reference__logo img { max-height: 2.6rem; width: auto; filter: grayscale(1) brightness(.75) contrast(1.15); }
.reference h3 { margin-bottom: .35rem; }
.reference__period { display: block; font-size: .9rem; font-weight: 500; color: var(--muted); margin-top: .2rem; }
.reference p { margin: 0; color: var(--muted); font-size: 1rem; }

.logos__title { margin-top: 3rem; font-size: 1rem; color: var(--muted); font-weight: 600; }
.logos {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 1.5rem 2.75rem; margin-top: 1rem;
}
.logos img { max-height: 2.4rem; max-width: 8.5rem; width: auto; filter: grayscale(1); opacity: .7; }

/* Équipe */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.member img { border-radius: var(--radius); margin-bottom: 1rem; aspect-ratio: 1; object-fit: cover; width: 100%; max-width: 18rem; }
.member h3 { margin-bottom: .15rem; }
.member__role { color: var(--blue-text); font-weight: 600; margin-bottom: .5rem; }
.member p:last-child { color: var(--muted); font-size: 1rem; margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; }
.contact__intro p { color: var(--muted); }
.contact__details { margin: 1.5rem 0 0; }
.contact__details dt { font-weight: 600; font-size: .95rem; margin-top: 1rem; }
.contact__details dd { margin: .15rem 0 0; color: var(--muted); }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field input, .field textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
    border: 1px solid #b8c1ca; border-radius: var(--radius);
    padding: .65rem .75rem; background: #fff;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field--error input, .field--error textarea { border-color: var(--error); }
.field__error p { color: var(--error); font-size: .92rem; margin: .35rem 0 0; }

.notice { border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: 1.5rem; border: 1px solid; }
.notice--success { color: var(--success); border-color: #a6d4b6; background: #f0f8f3; }
.notice--error { color: var(--error); border-color: #f0b5af; background: #fdf3f2; }

/* Pied de page */
.site-footer { background: var(--ink); color: #c9d1d9; padding: 3rem 0 2rem; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.site-footer__top img { height: 24px; width: auto; filter: brightness(0) invert(1); }
.site-footer__langs { margin: 0; }
.site-footer__langs a[aria-current] { text-decoration: none; font-weight: 600; }
.legal h2 { font-size: 1rem; color: #fff; margin-bottom: .75rem; }
.legal p { max-width: 60rem; margin-bottom: .5rem; }
.site-footer__copy { margin: 1.5rem 0 0; color: #9aa5b1; }

/* Responsive */
@media (max-width: 960px) {
    .cards--4 { grid-template-columns: repeat(2, 1fr); }
    .figures__list { grid-template-columns: repeat(2, 1fr); }
    .references { grid-template-columns: 1fr; }
    .contact { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
    .site-header { position: static; }
    .site-nav ul { gap: .25rem 1rem; }
    .points { grid-template-columns: 1fr; gap: 1.5rem; }
    .team { grid-template-columns: 1fr; }
    .member { display: grid; grid-template-columns: 7rem 1fr; gap: 0 1.25rem; align-items: start; }
    .member img { grid-row: span 3; margin: 0; }
    .reference { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 520px) {
    .cards--4, .figures__list { grid-template-columns: 1fr; }
    .figures__list { gap: 1rem; }
    .member { grid-template-columns: 4.5rem 1fr; gap: 0 1rem; }
    .logos { gap: 1.25rem 2rem; }
}
