/**
 * Novalo — Custom styles
 * Détails qui dépassent ce que Tailwind donne par défaut :
 * micro-typo, transitions élégantes, accents éditoriaux.
 */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Optical sizing pour Fraunces — donne un vrai caractère typo */
.font-display {
    font-optical-sizing: auto;
    font-variation-settings: "opsz" 120, "SOFT" 50;
}
h1.font-display {
    font-variation-settings: "opsz" 144, "SOFT" 30;
}

/* Nav links — élégant underline animé */
.nav-link {
    position: relative;
    color: #3D4756;
    transition: color 200ms ease;
    padding-bottom: 2px;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #D55D3E;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 280ms cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-link:hover,
.nav-link.is-active {
    color: #0F1419;
}
.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Footer links */
.footer-link {
    color: #3D4756;
    transition: color 180ms ease;
}
.footer-link:hover {
    color: #D55D3E;
}

/* Bouton principal — sobre, contraste fort */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: #0F1419;
    color: #FBF9F4;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 220ms cubic-bezier(0.65, 0, 0.35, 1);
    border: 1px solid #0F1419;
}
.btn-primary:hover {
    background: #D55D3E;
    border-color: #D55D3E;
    transform: translateY(-1px);
}
.btn-primary svg {
    transition: transform 220ms ease;
}
.btn-primary:hover svg {
    transform: translateX(3px);
}

/* Bouton secondaire */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    color: #0F1419;
    font-weight: 500;
    border-radius: 9999px;
    border: 1px solid rgba(15, 20, 25, 0.2);
    transition: all 220ms ease;
}
.btn-secondary:hover {
    border-color: #0F1419;
    background: rgba(15, 20, 25, 0.04);
}

/* Card module — composition éditoriale */
.module-card {
    position: relative;
    background: #FBF9F4;
    border: 1px solid rgba(15, 20, 25, 0.1);
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 260ms cubic-bezier(0.65, 0, 0.35, 1);
    overflow: hidden;
}
.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D55D3E 0%, #1E5F74 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 360ms ease;
}
.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(15, 20, 25, 0.15);
    border-color: rgba(15, 20, 25, 0.18);
}
.module-card:hover::before {
    transform: scaleX(1);
}

/* Status pills */
.status-available {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(125, 132, 113, 0.12);
    color: #5C6354;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.status-coming {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(213, 93, 62, 0.12);
    color: #A8442B;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Editorial pull-quote */
.pull-quote {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    line-height: 1.3;
    color: #1E5F74;
    position: relative;
    padding-left: 2rem;
    border-left: 3px solid #D55D3E;
}

/* Stagger animation pour les éléments du hero */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fade-up-delay-1 { animation-delay: 0.12s; }
.fade-up-delay-2 { animation-delay: 0.24s; }
.fade-up-delay-3 { animation-delay: 0.36s; }
.fade-up-delay-4 { animation-delay: 0.48s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Decorative numeral chapter mark */
.chapter-mark {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 400;
    color: #D55D3E;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* Selection */
::selection {
    background: #D55D3E;
    color: #FBF9F4;
}

/* Typographic detail — hanging punctuation */
.prose-novalo {
    hanging-punctuation: first last;
    text-wrap: pretty;
}

/* Tile pattern for accent — referencing Marseille terrazzo */
.tile-accent {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(213, 93, 62, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(30, 95, 116, 0.08) 2px, transparent 2px);
    background-size: 24px 24px;
}

/* ============================================================
   Cookie Consent — Bannière + Modale
   ============================================================ */

/* Bannière en bas de page */
.nv-cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9990;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    background: #FBF9F4;
    border: 1px solid rgba(15, 20, 25, 0.12);
    border-radius: 16px;
    box-shadow: 0 24px 60px -20px rgba(15, 20, 25, 0.25);
    padding: 28px 32px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.nv-cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.nv-cookie-banner__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 12px;
}
.nv-cookie-banner__title {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #0F1419;
    line-height: 1.2;
}
.nv-cookie-banner__refuse {
    font-size: 0.875rem;
    color: #3D4756;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
    transition: color 0.2s ease;
}
.nv-cookie-banner__refuse:hover { color: #D55D3E; }
.nv-cookie-banner__text {
    color: #3D4756;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 6px;
}
.nv-cookie-banner__text a {
    color: #D55D3E;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.nv-cookie-banner__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.nv-cookie-btn {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid;
}
.nv-cookie-btn--secondary {
    background: transparent;
    color: #0F1419;
    border-color: rgba(15, 20, 25, 0.2);
}
.nv-cookie-btn--secondary:hover {
    border-color: #0F1419;
    background: rgba(15, 20, 25, 0.04);
}
.nv-cookie-btn--primary {
    background: #D55D3E;
    color: #FBF9F4;
    border-color: #D55D3E;
}
.nv-cookie-btn--primary:hover {
    background: #A8442B;
    border-color: #A8442B;
}

@media (max-width: 640px) {
    .nv-cookie-banner { padding: 20px 22px; left: 8px; right: 8px; bottom: 8px; border-radius: 12px; }
    .nv-cookie-banner__title { font-size: 1.25rem; }
    .nv-cookie-banner__actions { flex-direction: column-reverse; }
    .nv-cookie-btn { width: 100%; }
}

/* Modale de paramétrage */
.nv-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 9995;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.nv-cookie-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.nv-cookie-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 25, 0.55);
    backdrop-filter: blur(2px);
}
.nv-cookie-modal__inner {
    position: relative;
    background: #FBF9F4;
    border: 1px solid rgba(15, 20, 25, 0.1);
    border-radius: 16px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 32px 80px -30px rgba(15, 20, 25, 0.4);
    display: flex;
    flex-direction: column;
}
.nv-cookie-modal__body {
    overflow-y: auto;
    padding: 36px 32px 28px;
    /* Firefox custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 20, 25, 0.2) transparent;
    /* Garde l'espace de la scrollbar même quand elle n'est pas visible */
    scrollbar-gutter: stable;
}
/* WebKit custom scrollbar */
.nv-cookie-modal__body::-webkit-scrollbar {
    width: 6px;
}
.nv-cookie-modal__body::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}
.nv-cookie-modal__body::-webkit-scrollbar-thumb {
    background: rgba(15, 20, 25, 0.18);
    border-radius: 999px;
}
.nv-cookie-modal__body::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 20, 25, 0.35);
}
.nv-cookie-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(251, 249, 244, 0.92);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(15, 20, 25, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3D4756;
    transition: all 0.2s ease;
}
.nv-cookie-modal__close:hover {
    background: rgba(15, 20, 25, 0.06);
    color: #0F1419;
}
.nv-cookie-modal__chapter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: #D55D3E;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.nv-cookie-modal__title {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-weight: 500;
    color: #0F1419;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.nv-cookie-modal__intro {
    color: #3D4756;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}
.nv-cookie-category {
    border-top: 1px solid rgba(15, 20, 25, 0.1);
    padding: 18px 0;
}
.nv-cookie-category:last-of-type {
    border-bottom: 1px solid rgba(15, 20, 25, 0.1);
}
.nv-cookie-category__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.nv-cookie-category__name {
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: #0F1419;
}
.nv-cookie-category__desc {
    color: #3D4756;
    font-size: 0.875rem;
    line-height: 1.55;
    margin-top: 6px;
}
.nv-cookie-category__locked {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: #3D4756;
    background: rgba(15, 20, 25, 0.06);
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Toggle switch */
.nv-toggle {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}
.nv-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.nv-toggle__slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(15, 20, 25, 0.2);
    border-radius: 999px;
    transition: 0.25s ease;
}
.nv-toggle__slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #FBF9F4;
    border-radius: 50%;
    transition: 0.25s ease;
    box-shadow: 0 2px 4px rgba(15, 20, 25, 0.2);
}
.nv-toggle input:checked + .nv-toggle__slider {
    background-color: #D55D3E;
}
.nv-toggle input:checked + .nv-toggle__slider::before {
    transform: translateX(20px);
}

.nv-cookie-modal__actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.nv-cookie-modal__actions-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .nv-cookie-modal__body { padding: 28px 22px 22px; }
    .nv-cookie-modal__title { font-size: 1.5rem; }
    .nv-cookie-modal__actions { flex-direction: column; }
    .nv-cookie-modal__actions-group { width: 100%; flex-direction: column; }
    .nv-cookie-modal__actions .nv-cookie-btn { width: 100%; }
}

/* Lien "Gestion des cookies" dans le footer */
.nv-cookie-trigger {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}
.nv-cookie-trigger:hover {
    color: #D55D3E;
}

/* ============================================================
   Back to top button
   ============================================================ */
.nv-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9985;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FBF9F4;
    border: 1px solid rgba(15, 20, 25, 0.15);
    color: #0F1419;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px -10px rgba(15, 20, 25, 0.3);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.nv-back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.nv-back-to-top:hover {
    background: #0F1419;
    border-color: #0F1419;
    color: #FBF9F4;
    transform: translateY(-4px);
}
.nv-back-to-top:focus-visible {
    outline: 2px solid #D55D3E;
    outline-offset: 3px;
}
.nv-back-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .nv-back-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

/* ============================================================
   Contact form
   ============================================================ */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 640px) {
    .contact-form__row { grid-template-columns: 1fr; }
}

.contact-field {
    display: flex;
    flex-direction: column;
}
.contact-field label {
    font-family: 'Geist', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0F1419;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.contact-field .required {
    color: #D55D3E;
    font-size: 0.875rem;
}
.contact-field .optional {
    color: #3D4756;
    font-weight: 400;
    font-size: 0.8125rem;
    font-style: italic;
}
.contact-field input,
.contact-field textarea,
.contact-field select {
    font-family: 'Geist', system-ui, sans-serif;
    font-size: 1rem;
    color: #0F1419;
    background: #FBF9F4;
    border: 1.5px solid rgba(15, 20, 25, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    line-height: 1.5;
}
.contact-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230F1419' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}
.contact-field textarea {
    resize: vertical;
    min-height: 160px;
    font-family: inherit;
}
.contact-field input:hover,
.contact-field textarea:hover,
.contact-field select:hover {
    border-color: rgba(15, 20, 25, 0.3);
}
.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
    outline: none;
    border-color: #D55D3E;
    box-shadow: 0 0 0 4px rgba(213, 93, 62, 0.12);
}
.contact-field.has-error input,
.contact-field.has-error textarea,
.contact-field.has-error select {
    border-color: #D55D3E;
    background: rgba(213, 93, 62, 0.04);
}
.contact-field__error {
    color: #A8442B;
    font-size: 0.875rem;
    margin-top: 6px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.contact-field__error::before {
    content: "⚠";
    flex-shrink: 0;
}
.contact-field__hint {
    color: #3D4756;
    font-size: 0.8125rem;
    margin-top: 6px;
    font-style: italic;
}

.contact-form__actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    margin-top: 16px;
}
.contact-form__note {
    color: #3D4756;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Alerts (success / error) */
.contact-alert {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 28px;
    border-radius: 16px;
    margin-bottom: 32px;
    border: 1.5px solid;
}
.contact-alert--success {
    background: rgba(125, 132, 113, 0.08);
    border-color: rgba(125, 132, 113, 0.3);
    color: #4a523e;
}
.contact-alert--success svg {
    color: #7D8471;
    flex-shrink: 0;
    margin-top: 2px;
}
.contact-alert--error {
    background: rgba(213, 93, 62, 0.06);
    border-color: rgba(213, 93, 62, 0.3);
    color: #A8442B;
}
.contact-alert--error svg {
    color: #D55D3E;
    flex-shrink: 0;
    margin-top: 2px;
}
.contact-alert__title {
    font-family: 'Fraunces', serif;
    font-size: 1.375rem;
    font-weight: 500;
    color: #0F1419;
    margin-bottom: 6px;
    line-height: 1.2;
}
.contact-alert__text {
    color: #3D4756;
    line-height: 1.6;
}
.contact-alert__link {
    display: inline-block;
    margin-top: 12px;
    color: #D55D3E;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}
.contact-alert__link:hover {
    color: #A8442B;
}

/* ============================================================
   Contact form — Consent checkbox
   ============================================================ */
.contact-consent {
    margin-top: 8px;
}
.contact-consent__label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 16px 20px;
    border-radius: 12px;
    background: #FBF9F4;
    border: 1.5px solid rgba(15, 20, 25, 0.12);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-consent__label:hover {
    border-color: rgba(15, 20, 25, 0.25);
}
.contact-consent.has-error .contact-consent__label {
    border-color: #D55D3E;
    background: rgba(213, 93, 62, 0.04);
}

/* Hide native checkbox but keep accessibility */
.contact-consent input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Custom checkbox visual */
.contact-consent__check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(15, 20, 25, 0.3);
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 1px;
    color: transparent;
}
.contact-consent input[type="checkbox"]:checked + .contact-consent__check {
    background: #D55D3E;
    border-color: #D55D3E;
    color: #FBF9F4;
}
.contact-consent input[type="checkbox"]:focus-visible + .contact-consent__check {
    outline: 2px solid #D55D3E;
    outline-offset: 2px;
}

.contact-consent__text {
    font-family: 'Geist', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #3D4756;
    line-height: 1.55;
    flex: 1;
}
.contact-consent__text .required {
    color: #D55D3E;
    font-weight: 600;
}


/* ============================================================
   Diagram gallery (fiche produit)
   ============================================================ */
.diagram-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.diagram-card {
    margin: 0;
    background: transparent;
    cursor: zoom-in;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    flex: 1 1 320px;
    max-width: 880px; /* taille naturelle des SVG horizontaux */
    width: 100%;
}

.diagram-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px -8px rgba(15, 20, 25, 0.08);
}

.diagram-card:hover img {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 24px 60px -24px rgba(15, 20, 25, 0.25);
}

/* Lightbox modal */
.diagram-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 25, 0.92);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: zoom-out;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.diagram-lightbox.is-open {
    display: flex;
}
.diagram-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 32px 80px -16px rgba(0, 0, 0, 0.5);
}
.diagram-lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(251, 249, 244, 0.1);
    border: 1.5px solid rgba(251, 249, 244, 0.3);
    color: #FBF9F4;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.diagram-lightbox__close:hover {
    background: rgba(251, 249, 244, 0.2);
    transform: rotate(90deg);
}

@media (max-width: 640px) {
    .diagram-gallery {
        gap: 24px;
    }
    .diagram-card:hover img {
        transform: none; /* pas de hover sur mobile */
    }
}

/* ============================================================
   Mobile UX — hint visuel pour le diagramme zoomable
   ============================================================ */
.diagram-card__hint {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(15, 20, 25, 0.5);
}

/* ============================================================
   Mobile UX — textarea contact + iOS zoom fix
   ============================================================ */
@media (max-width: 640px) {
    /* Textarea moins envahissant sur petit écran */
    .contact-field textarea {
        min-height: 140px;
    }
    /* iOS zoome automatiquement sur les inputs < 16px : on force 16px en mobile */
    .contact-field input,
    .contact-field textarea,
    .contact-field select {
        font-size: 16px;
    }
    /* Pull-quote moins agressif en mobile */
    .pull-quote {
        padding-left: 1.25rem;
    }
}
