/* ══════════════════════════════════════════════════════════════
   RUMBOÉ — Coming Soon  (fond blanc)
   Palette : navy #07101e · gold #c19b50 · white #faf9f7
   Fonts   : Cormorant Garamond (display) · DM Sans (UI)
   ══════════════════════════════════════════════════════════════ */

:root {
    --navy:         #07101e;
    --gold:         #feba08;
    --gold-dim:     rgba(145, 111, 46, 0.82);
    --gold-faint:   rgba(193, 155, 80, 0.10);
    --bg:           #faf9f7;

    --text-primary: #07101e;
    --text-mid:     rgba(7, 16, 30, 0.62);
    --text-muted:   rgba(7, 16, 30, 0.38);

    --border:       rgba(7, 16, 30, 0.10);
    --border-hover: rgba(7, 16, 30, 0.22);

    --error:        #c0392b;

    --f-display:    'Cormorant Garamond', Georgia, serif;
    --f-ui:         'DM Sans', system-ui, sans-serif;

    --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --t-fast:       0.18s;
    --t-normal:     0.32s;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Base ──────────────────────────────────────────────────── */
body {
    font-family: var(--f-ui);
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
    font-weight: 300;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--t-fast);
}
a:hover { color: var(--gold); }

/* ── Grain subtil ──────────────────────────────────────────── */
.grain {
    position: fixed;
    inset: -50%;
    width: 200%; height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.018;
    pointer-events: none;
    z-index: 100;
    animation: grain-shift 8s steps(10) infinite;
}
@keyframes grain-shift {
    0%   { transform: translate(0,0); }
    10%  { transform: translate(-2%,-3%); }
    20%  { transform: translate(3%,1%); }
    30%  { transform: translate(-1%,3%); }
    40%  { transform: translate(2%,-2%); }
    50%  { transform: translate(-3%,2%); }
    60%  { transform: translate(1%,-1%); }
    70%  { transform: translate(-2%,2%); }
    80%  { transform: translate(3%,-3%); }
    90%  { transform: translate(-1%,1%); }
    100% { transform: translate(0,0); }
}

/* ── Langue ────────────────────────────────────────────────── */
.lang-switcher {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 50;
}

.lang-btn {
    font-family: var(--f-ui);
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem 0.05rem;
    transition: color var(--t-fast);
    line-height: 1;
}
.lang-btn:hover,
.lang-btn.active { color: var(--gold); }

.lang-sep {
    font-size: 0.5rem;
    color: var(--border);
    line-height: 1;
}

/* ── Animations d'entrée ───────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.anim { opacity: 0; animation: fadeUp 0.75s var(--ease) both; }
.anim-1  { animation-delay: 0.05s; }
.anim-2  { animation-delay: 0.15s; }
.anim-3  { animation-delay: 0.25s; }
.anim-4  { animation-delay: 0.37s; }
.anim-5  { animation-delay: 0.48s; }
.anim-6  { animation-delay: 0.58s; }
.anim-7  { animation-delay: 0.68s; }
.anim-8  { animation-delay: 0.78s; }
.anim-9  { animation-delay: 0.88s; }
.anim-10 { animation-delay: 0.98s; }
.anim-11 { animation-delay: 1.08s; }
.anim-12 { animation-delay: 1.18s; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem 3rem;
    max-width: 860px;
    margin: 0 auto;
}

/* ── Logo ──────────────────────────────────────────────────── */
.header {
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
}

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

/* ── Ornement ──────────────────────────────────────────────── */
.ornament {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
    margin: 1.75rem 0;
}

.orn-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-dim));
}
.ornament .orn-line:last-child {
    background: linear-gradient(to left, transparent, var(--gold-dim));
}
.orn-diamond {
    color: var(--gold);
    font-size: 0.38rem;
    opacity: 0.65;
    flex-shrink: 0;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    text-align: center;
    width: 100%;
}

.hero-title {
    font-family: var(--f-display);
    font-size: clamp(2.1rem, 5.5vw, 4rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: var(--navy);
    display: flex;
    flex-direction: column;
    gap: 0.1em;
    margin-bottom: 1.75rem;
}

.title-line    { display: block; }
.title-italic  { font-style: italic; color: var(--gold); }

.hero-subtitle {
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.hero-description {
    font-size: clamp(0.88rem, 1.8vw, 0.97rem);
    color: var(--text-mid);
    line-height: 1.9;
    font-weight: 300;
}

/* ── Features ──────────────────────────────────────────────── */
.travel-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 2.75rem;
    margin-top: 2.25rem;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.feature-dash {
    color: var(--gold);
    font-family: var(--f-display);
    font-size: 0.95rem;
    opacity: 0.6;
    line-height: 1;
}
.feature-text {
    font-size: 0.68rem;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: rgb(27, 56, 92);
    font-weight: 400;
}

/* ── Countdown ─────────────────────────────────────────────── */
.countdown-section { text-align: center; width: 100%; }

.countdown-title {
    font-size: 0.67rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.6rem;
    font-weight: 300;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 clamp(1rem, 3vw, 2.25rem);
}

.countdown-value {
    font-family: var(--f-display);
    font-size: clamp(3.2rem, 9vw, 6rem);
    font-weight: 300;
    font-style: italic;
    color: var(--navy);
    line-height: 0.9;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    transition: color var(--t-normal) var(--ease);
}
.countdown-item:hover .countdown-value { color: var(--gold); }

.countdown-label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-top: 1.7rem;
    font-weight: 400;
}

.countdown-sep {
    font-family: var(--f-display);
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    color: var(--gold-dim);
    line-height: 0.9;
    font-weight: 300;
    font-style: italic;
    align-self: flex-start;
    padding-top: 0.6em;
}

/* ── Formulaire ────────────────────────────────────────────── */
.form-section {
    width: 100%;
    max-width: 460px;
}

.form-container {
    padding: 2.75rem 2.75rem;
    border: 1px solid var(--border);
    position: relative;
    background: #ffffff;
    transition: border-color var(--t-normal) var(--ease);
}
.form-container:hover { border-color: var(--border-hover); }

/* Coins ornementaux */
.form-container::before,
.form-container::after {
    content: '';
    position: absolute;
    width: 14px; height: 14px;
    border-style: solid;
    border-color: var(--gold-dim);
    transition: border-color var(--t-normal) var(--ease);
}
.form-container::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.form-container::after  { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.form-container:hover::before,
.form-container:hover::after { border-color: var(--gold); }

.form-title {
    font-family: var(--f-display);
    font-size: clamp(1.2rem, 2.8vw, 1.5rem);
    font-weight: 300;
    font-style: italic;
    color: var(--navy);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.form-description {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2.25rem;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

.subscription-form {
    display: flex;
    flex-direction: column;
}

/* ── Inputs underline ──────────────────────────────────────── */
.form-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--navy);
    font-size: 0.9rem;
    font-family: var(--f-ui);
    font-weight: 300;
    letter-spacing: 0.03em;
    outline: none;
    transition: border-color var(--t-normal) var(--ease);
    -webkit-appearance: none;
    -moz-appearance: textfield;
    border-radius: 0;
}
.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }

.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus         { border-bottom-color: var(--gold); }
.form-group input:valid:not(:placeholder-shown) { border-bottom-color: rgba(193,155,80,0.45); }
.form-group input.error         { border-bottom-color: var(--error); animation: shake 0.4s var(--ease); }

@keyframes shake {
    0%,100% { transform: translateX(0); }
    20%     { transform: translateX(-7px); }
    60%     { transform: translateX(7px); }
}

.error-message {
    display: block;
    color: var(--error);
    font-size: 0.76rem;
    margin-top: 0.35rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity var(--t-fast), transform var(--t-fast);
}
.error-message.show { opacity: 1; transform: translateY(0); }

/* ── Captcha ───────────────────────────────────────────────── */
.hp-field {
    position: absolute;
    left: -9999px; width: 1px; height: 1px;
    overflow: hidden; opacity: 0; pointer-events: none;
}

.captcha-group {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: border-color var(--t-normal) var(--ease);
}
.captcha-group:focus-within { border-bottom-color: var(--gold); }

.captcha-question {
    flex: 1;
    font-size: 0.86rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-family: var(--f-ui);
    font-weight: 300;
    letter-spacing: 0.02em;
    padding: 0.8rem 0;
}
.captcha-question strong {
    color: var(--gold);
    font-style: italic;
    font-family: var(--f-display);
    font-size: 1.1em;
    font-weight: 400;
}

.captcha-group input {
    width: 52px;
    padding: 0.8rem 0;
    border: none !important;
    text-align: center;
    color: var(--navy);
    font-family: var(--f-display);
    font-size: 1.05rem;
    font-style: italic;
}

.captcha-refresh {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0.8rem 0 0.8rem 0.6rem;
    transition: color var(--t-fast);
    line-height: 1;
    flex-shrink: 0;
}
.captcha-refresh:hover { color: var(--gold); }

/* ── CTA ───────────────────────────────────────────────────── */
.submit-button {
    width: 100%;
    margin-top: 1.75rem;
    padding: 1.1rem 2rem;
    background: var(--navy);
    border: 1px solid var(--navy);
    color: #ffffff;
    font-family: var(--f-ui);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    transition: background var(--t-normal) var(--ease),
                border-color var(--t-normal) var(--ease);
}
.submit-button:hover:not(:disabled) {
    background: var(--gold);
    border-color: var(--gold);
}
.submit-button:disabled { opacity: 0.45; cursor: not-allowed; }

.button-loader {
    display: none;
    width: 13px; height: 13px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}
.submit-button.loading .button-loader { display: block; }
.submit-button.loading .button-text   { opacity: 0.7; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Success ───────────────────────────────────────────────── */
.success-message {
    margin-top: 1.25rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(193,155,80,0.3);
    background: var(--gold-faint);
    color: #7a5e25;
    font-size: 0.8rem;
    text-align: center;
    letter-spacing: 0.03em;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity var(--t-normal) var(--ease), transform var(--t-normal) var(--ease);
}
.success-message.show { opacity: 1; transform: translateY(0); }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
    text-align: center;
    padding: 2rem 1.5rem 3rem;
    position: relative;
    z-index: 1;
}
.footer-copy {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}
.footer-credit {
    font-size: 0.66rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}
.footer-credit a { color: var(--text-muted); }
.footer-credit a:hover { color: var(--gold); }

/* ── Accessibilité ─────────────────────────────────────────── */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .container { padding: 4rem 1.25rem 2.5rem; }
    .header    { padding: 20px; }
    .form-container { padding: 2.25rem 1.75rem; }
    .lang-switcher  { top: 1rem; right: 1.25rem; }
    .travel-features { gap: 0.5rem 1.75rem; }
    .countdown-item { padding: 0 clamp(0.5rem, 2vw, 1.5rem); }
}

@media (max-width: 480px) {
    .countdown-value { font-size: 2.6rem; }
    .countdown-sep   { font-size: 1.6rem; }
    .form-container  { padding: 2rem 1.25rem; }
    .travel-features { flex-direction: column; align-items: center; gap: 0.55rem; }
    .ornament        { max-width: 220px; }
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .anim { animation: none; opacity: 1; }
    .grain { animation: none; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}