/* ============================================================
   Ollin Media — one-page
   Design tokens (handoff « oll·in », 2026)
   ============================================================ */

:root {
    --bg:            #0a1128;
    --bg-top:        #0d1a3f;
    --blue:          #3d7bff;   /* accent logo / stats */
    --blue-solid:    #2b62e8;   /* bouton */
    --blue-hover:    #7daaff;
    --text:          #ffffff;
    --text-body:     #dbe4f5;
    --text-soft:     #b8c6e4;
    --text-muted:    #8fa3c8;
    --text-dim:      #64799f;
    --surface:       rgba(61, 123, 255, 0.05);
    --surface-tile:  rgba(61, 123, 255, 0.06);
    --border:        rgba(61, 123, 255, 0.22);
    --border-soft:   rgba(61, 123, 255, 0.18);
    --border-faint:  rgba(61, 123, 255, 0.15);
    --shadow-hero:   0 24px 64px rgba(0, 0, 0, 0.45);
    --content:       680px;

    --font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
    --font-body:    'Sora', system-ui, -apple-system, sans-serif;
}

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

html { background: var(--bg); }

body {
    margin: 0;
    background: var(--bg);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }

.page {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 24px 80px;
}

/* ---------- Logo ---------- */

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logo-wordmark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 96px;
    letter-spacing: -0.045em;
    line-height: 0.9;
    white-space: nowrap;
}

.logo-oll { color: var(--text); }
.logo-in  { color: var(--blue); }

/* MEDIA garde son ratio d'environ 19 % du wordmark */
.logo-media {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.7em;
    text-indent: 0.7em;   /* recentrage optique */
    color: var(--text-dim);
    white-space: nowrap;
}

/* ---------- Tagline ---------- */

.tagline {
    margin: 26px 0 0;
    font-size: 15.5px;
    color: var(--text-muted);
    text-align: center;
    text-wrap: pretty;
}

/* ---------- Hero ---------- */

.hero {
    width: 100%;
    max-width: var(--content);
    height: 300px;
    margin-top: 48px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-hero);
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Stats ---------- */

.stats {
    display: flex;
    gap: 84px;
    margin-top: 64px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 40px;
    line-height: 1;
    color: var(--blue);
}

.stat-label {
    font-size: 14px;
    color: var(--text-soft);
}

/* ---------- Description ---------- */

.description {
    width: 100%;
    max-width: var(--content);
    margin-top: 64px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 34px 38px;
}

.description p {
    margin: 0;
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-body);
    text-wrap: pretty;
}

/* ---------- Titres de section ---------- */

.section-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 23px;
    color: var(--text);
}

/* ---------- Partenaires ---------- */

.partners {
    width: 100%;
    max-width: var(--content);
    margin-top: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.partners-viewport {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.partners-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: partners-scroll 30s linear infinite;
}

.partners-viewport:hover .partners-track { animation-play-state: paused; }

/* la piste est dupliquée : un décalage d'un jeu complet (50% + la moitié
   du gap central) reboucle sans saut visible */
@keyframes partners-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-50% - 10px)); }
}

.partner {
    width: 150px;
    height: 80px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.partner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* ---------- Contact ---------- */

.contact {
    width: 100%;
    max-width: var(--content);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 88px;
}

.contact-sub {
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    text-wrap: pretty;
}

.contact-btn {
    display: inline-block;
    padding: 14px 32px;
    border: 0;
    background: var(--blue-solid);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.contact-btn:hover {
    background: var(--blue);
    color: var(--text);
}

.contact-btn[disabled] {
    opacity: 0.55;
    cursor: default;
}

/* ---------- Formulaire ---------- */

.contact-form {
    width: 100%;
    max-width: 560px;
    margin-top: 8px;
    padding: 30px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: flex;
    gap: 18px;
}

.field {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label {
    font-size: 13px;
    color: var(--text-muted);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.5;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form textarea {
    resize: vertical;
    min-height: 96px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: rgba(255, 255, 255, 0.06);
}

.contact-form ::placeholder { color: var(--text-dim); }

.form-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.field-captcha {
    flex: 0 1 220px;
}

.field-captcha input {
    max-width: 110px;
}

/* honeypot : hors écran, invisible pour l'humain, tentant pour le bot */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
}

.form-status:empty { display: none; }
.form-status.is-ok    { color: #7ee3a8; }
.form-status.is-error { color: #ff9a9a; }

/* ---------- Footer ---------- */

.footer {
    width: 100%;
    max-width: var(--content);
    margin-top: 96px;
    padding-top: 28px;
    border-top: 1px solid var(--border-faint);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.copyright {
    font-size: 13px;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.lang-switch a {
    color: var(--text-dim);
    transition: color 0.2s ease;
}

.lang-switch a:hover { color: var(--blue-hover); }

.lang-current {
    color: var(--text-soft);
    font-weight: 600;
}

/* séparateur entre les langues */
.lang-switch > * + *::before {
    content: '·';
    margin-right: 8px;
    color: var(--text-dim);
    font-weight: 400;
}

.legal-link {
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.legal-link:hover { color: var(--blue-hover); }

/* ---------- Modale mentions légales ---------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 9, 22, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: modal-in 0.18s ease;
}

.modal[hidden] { display: none; }

@keyframes modal-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(160deg, #142145, #0c1531);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 38px 38px 32px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.modal-card h2 {
    margin: 0 0 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 23px;
    color: var(--text);
}

.modal-card p {
    margin: 0 0 12px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-soft);
}

.modal-card p:last-child { margin-bottom: 0; }
.modal-card strong { color: var(--text); font-weight: 600; }

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 28px;
    line-height: 1;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover { color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
    .page { padding: 44px 20px 64px; }

    .logo-wordmark { font-size: 68px; }
    .logo-media    { font-size: 13px; }

    .tagline { font-size: 14.5px; }

    .hero { height: 210px; margin-top: 36px; }

    .stats { gap: 40px 48px; margin-top: 48px; }
    .stat-value { font-size: 34px; }

    .description { margin-top: 48px; padding: 26px 24px; }
    .description p { font-size: 15.5px; }

    .partners { margin-top: 64px; gap: 26px; }
    .contact  { margin-top: 64px; }
    .footer   { margin-top: 72px; justify-content: center; text-align: center; }

    .contact-form { padding: 24px 20px; gap: 16px; }
    .form-row     { flex-direction: column; gap: 16px; }
    .form-bottom  { flex-direction: column; align-items: stretch; }
    .field-captcha { flex: 1 1 auto; }
    .contact-btn  { width: 100%; }

    .section-title { font-size: 20px; }
    .modal-card { padding: 32px 26px 26px; }
}

@media (prefers-reduced-motion: reduce) {
    .partners-track { animation: none; }
    .modal { animation: none; }
    * { transition-duration: 0.01ms !important; }
}
