/* ============================================================
   assets/css/style.css — o2mail Design System
   Palette : Fond #0a0c10, Cyan #00d4ff, Violet #7c3aed
   Typographie : Syne (titres) + JetBrains Mono (code/email)
   ============================================================ */

/* ---- Variables CSS (Design Tokens) ---- */
:root {
    --bg-primary:    #0a0c10;
    --bg-secondary:  #0f1218;
    --bg-card:       #131820;
    --bg-card-hover: #161d28;
    --border:        rgba(255,255,255,0.07);
    --border-hover:  rgba(0,212,255,0.3);

    --cyan:          #00d4ff;
    --cyan-dim:      rgba(0,212,255,0.15);
    --cyan-glow:     rgba(0,212,255,0.4);
    --violet:        #7c3aed;
    --violet-dim:    rgba(124,58,237,0.15);
    --violet-glow:   rgba(124,58,237,0.4);

    --text-primary:  #e8eaf0;
    --text-secondary:#8892a4;
    --text-muted:    #4a5568;

    --danger:        #ff3b5c;
    --danger-dim:    rgba(255,59,92,0.15);
    --success:       #00e676;

    --radius-sm:     6px;
    --radius:        12px;
    --radius-lg:     20px;
    --radius-xl:     28px;

    --font-display: 'Syne', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    --transition:    all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-display);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ---- Fond animé ---- */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.35;
    animation: floatGlow 8s ease-in-out infinite alternate;
}

.bg-glow--cyan {
    width: 600px; height: 600px;
    background: var(--cyan);
    top: -200px; left: -100px;
    animation-delay: 0s;
}

.bg-glow--violet {
    width: 500px; height: 500px;
    background: var(--violet);
    bottom: -100px; right: -100px;
    animation-delay: -4s;
}

@keyframes floatGlow {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.1); }
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #0a0c10;
    background: rgba(10,12,16,0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
}

.nav__logo-icon {
    color: var(--cyan);
    font-size: 1.5rem;
}

.nav__links {
    display: flex;
    gap: 2rem;
}

.nav__link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav__link:hover { color: var(--cyan); }

/* ---- Hero ---- */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 1.5rem 4rem;
}

.hero__container {
    max-width: 680px;
    width: 100%;
    text-align: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--cyan-dim);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 100px;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: var(--cyan);
    margin-bottom: 1.5rem;
    animation: fadeSlideDown 0.6s ease both;
}

.badge__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero__title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
    animation: fadeSlideDown 0.6s ease 0.1s both;
}

.hero__title--accent {
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-family: var(--font-mono);
    font-weight: 300;
    animation: fadeSlideDown 0.6s ease 0.2s both;
}

/* ---- Email Widget ---- */
.email-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    animation: fadeSlideDown 0.6s ease 0.3s both;
    transition: var(--transition);
}

.email-widget:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 40px rgba(0,212,255,0.05);
}

.email-widget__generate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.email-widget__hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.email-widget__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 1rem;
}

/* ---- Email Display ---- */
.email-display {
    margin-bottom: 1.5rem;
    text-align: center;
}

.email-display__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.6rem;
}

.email-display__address {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 500;
    color: var(--cyan);
    background: var(--cyan-dim);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(0,212,255,0.2);
    word-break: break-all;
    margin-bottom: 0.8rem;
    animation: addressReveal 0.4s ease;
}

@keyframes addressReveal {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

.email-display__actions {
    display: flex;
    justify-content: center;
}

/* ---- Timer ---- */
.timer-wrap {
    margin-bottom: 1.5rem;
    text-align: center;
}

.timer-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

.timer {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    transition: color 0.5s ease;
}

.timer--warning { color: #ff9f00; }
.timer--danger  { color: var(--danger); animation: timerBlink 0.8s ease infinite alternate; }

@keyframes timerBlink {
    from { opacity: 1; }
    to   { opacity: 0.5; }
}

.timer-bar {
    height: 3px;
    background: var(--bg-secondary);
    border-radius: 100px;
    margin-top: 0.8rem;
    overflow: hidden;
}

.timer-bar__fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    border-radius: 100px;
    transition: width 1s linear, background 0.5s ease;
    transform-origin: left;
}

/* ---- Email Widget CTA ---- */
.email-widget__cta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--cyan), #006dd9);
    color: #000;
    box-shadow: 0 4px 20px rgba(0,212,255,0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,212,255,0.5);
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn--ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn--ghost:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn--copy {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn--copy:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.btn--danger {
    background: var(--danger-dim);
    border: 1px solid rgba(255,59,92,0.3);
    color: var(--danger);
}

.btn--danger:hover {
    background: rgba(255,59,92,0.25);
}

.btn--sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }

/* ---- Loader ---- */
.loader {
    width: 32px; height: 32px;
    border: 2px solid var(--border);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* ---- Toast ---- */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.88rem;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(20px);
    pointer-events: none;
}

.toast--visible { transform: translateX(-50%) translateY(0); }
.toast--success { border-color: var(--success); color: var(--success); }
.toast--error   { border-color: var(--danger);  color: var(--danger); }

/* ---- Features Section ---- */
.features {
    position: relative;
    z-index: 1;
    padding: 6rem 1.5rem;
}

.features__container { max-width: 900px; margin: 0 auto; }

.features__title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,212,255,0.08);
}

.feature-card__icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; }
.feature-card__desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ---- FAQ Section ---- */
.faq {
    position: relative;
    z-index: 1;
    padding: 4rem 1.5rem 6rem;
}

.faq__container { max-width: 640px; margin: 0 auto; }
.faq__title { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 2rem; letter-spacing: -0.02em; }

.faq__item {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    user-select: none;
    transition: color 0.2s;
}

.faq__question:hover { color: var(--cyan); }
.faq__arrow { font-size: 1.3rem; transition: transform 0.3s ease; }
.faq__question.open .faq__arrow { transform: rotate(90deg); }

.faq__answer {
    max-height: 0;
    overflow: hidden;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq__answer.open {
    max-height: 200px;
    padding-bottom: 1.2rem;
}

/* ---- Footer ---- */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.footer__logo { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--cyan); }
.footer__tagline { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.footer__copy { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }

/* ============================================================
   INBOX PAGE STYLES
   ============================================================ */

.inbox-page { background: var(--bg-primary); }

.inbox-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,12,16,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.inbox-header__container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.inbox-header__logo {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--cyan);
    text-decoration: none;
    white-space: nowrap;
}

.inbox-header__info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    min-width: 0;
}

.inbox-email-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius);
    min-width: 0;
    flex: 1;
}

.inbox-email-display__icon { flex-shrink: 0; }

.inbox-email-display__address {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--cyan);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.inbox-timer-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.inbox-timer-label { font-size: 0.75rem; color: var(--text-muted); }
.inbox-timer {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.5s;
}

.inbox-timer--warning { color: #ff9f00; }
.inbox-timer--danger  { color: var(--danger); }

/* ---- Main content ---- */
.inbox-main {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    min-height: calc(100vh - 80px);
}

.inbox-container { max-width: 900px; margin: 0 auto; }

/* ---- Refresh bar ---- */
.inbox-refresh-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.inbox-refresh-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.inbox-refresh-dot--active { background: var(--success); animation: pulse 1.5s infinite; }
.inbox-refresh-text { flex: 1; }
.inbox-message-count { color: var(--text-secondary); }

/* ---- Message list ---- */
.inbox-empty {
    text-align: center;
    padding: 5rem 2rem;
}

.inbox-empty__icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.inbox-empty__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-secondary); }
.inbox-empty__desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

.message-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.3rem 1rem;
    align-items: start;
}

.message-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateX(2px);
}

.message-item--unread { border-left: 2px solid var(--cyan); }

.message-item__from {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-item__date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-align: right;
}

.message-item__subject {
    font-size: 0.85rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    grid-column: 1 / -1;
}

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 1010;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay--visible { display: flex; }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 720px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal__subject { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.modal__from { font-size: 0.82rem; color: var(--text-secondary); font-family: var(--font-mono); margin-bottom: 0.2rem; }
.modal__date { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }

.modal__close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    transition: color 0.2s;
    flex-shrink: 0;
}

.modal__close:hover { color: var(--text-primary); }

.modal__body {
    padding: 1.5rem;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
    flex: 1;
}

/* ---- Animations d'entrée ---- */
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .hero { padding: 6rem 1rem 3rem; }
    .email-widget { padding: 1.5rem; }
    .features__grid { grid-template-columns: 1fr; }
    .inbox-header__container { flex-direction: column; align-items: stretch; }
    .inbox-header__info { flex-direction: column; align-items: stretch; }
    .email-widget__cta { flex-direction: column; }
}

/* ============================================================
   LANG SELECTOR
   ============================================================ */
.lang-selector {
    position: relative;
}

.lang-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}
.lang-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.4rem;
    min-width: 160px;
    z-index: 1010;
    display: none;
    flex-direction: column;
    gap: 0.1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    animation: fadeSlideDown 0.15s ease;
}
.lang-dropdown--open { display: flex; }

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.82rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    width: 100%;
}
.lang-btn:hover { background: var(--bg-secondary); color: var(--text-primary); }
.lang-btn--active { color: var(--cyan); font-weight: 700; }

/* ============================================================
   SUPPORT SECTION
   ============================================================ */
.support-section {
    position: relative;
    z-index: 1;
    padding: 3rem 1.5rem 4rem;
}

.support-section__container {
    max-width: 560px;
    margin: 0 auto;
}

.support-card {
    background: var(--bg-card);
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.support-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(124,58,237,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.support-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.support-card__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.support-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.support-card__desc strong { color: var(--violet); }

.support-card__badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--violet-dim);
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: 100px;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: #a78bfa;
    margin-bottom: 1.5rem;
}

.support-card__btn {
    background: linear-gradient(135deg, var(--violet), #5b21b6);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124,58,237,0.35);
    margin-bottom: 1rem;
}
.support-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124,58,237,0.5);
}

.support-card__hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ============================================================
   FOOTER POWERED BY
   ============================================================ */
.footer__powered {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}
.footer__powered a {
    color: var(--violet);
    text-decoration: none;
}
.footer__powered a:hover { text-decoration: underline; }

/* ============================================================
   NAV BURGER (MOBILE)
   ============================================================ */
.nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 110;
}
.nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}
.nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   RTL SUPPORT (Arabe)
   ============================================================ */
[dir="rtl"] .nav__links { flex-direction: row-reverse; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .message-item { direction: rtl; }
[dir="rtl"] .faq__question { flex-direction: row-reverse; }
[dir="rtl"] .inbox-header__container { flex-direction: row-reverse; }



/* ============================================================
   RESPONSIVE — MOBILE (480px)
   ============================================================ */
@media (max-width: 480px) {
    .hero__title { font-size: clamp(1.9rem, 8vw, 2.8rem); }
    .features__grid { grid-template-columns: 1fr; }
    .timer { font-size: 2rem; }
    .btn--large { padding: 0.85rem 1.5rem; font-size: 0.95rem; }
    .inbox-main { padding: 1rem; }
    .message-item { padding: 1rem; }
    .message-item__from { font-size: 0.82rem; }
    .modal__header { padding: 1rem; }
    .modal__body { padding: 1rem; }
}


/* ============================================================
   BURGER MENU — BASE (caché sur desktop)
   ============================================================ */
.nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-shrink: 0;
    z-index: 110;
}
.nav__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   RTL SUPPORT
   ============================================================ */
[dir="rtl"] .nav__links { flex-direction: row-reverse; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .message-item { direction: rtl; }
[dir="rtl"] .faq__question { flex-direction: row-reverse; }
[dir="rtl"] .inbox-header__container { flex-direction: row-reverse; }

/* ============================================================
   RESPONSIVE — TABLET & MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

    /* --- NAV --- */
    .nav {
        padding: 0.9rem 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    /* Burger visible */
    .nav__burger { display: flex; }

    /* Lang selector : toujours visible entre logo et burger */
    .lang-selector { order: 2; margin-left: auto; margin-right: 0.5rem; }
    .nav__burger   { order: 3; }
    .nav__logo     { order: 1; }

    /* Dropdown langue : fixé sous la nav */
    .lang-dropdown {
        position: fixed;
        top: 62px;
        right: 1rem;
        left: auto;
        width: 175px;
        max-height: 70vh;
        overflow-y: auto;
        z-index: 1001;
        box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    }
    .lang-toggle { font-size: 0.82rem; padding: 0.45rem 0.7rem; }

    /* Menu de navigation : overlay plein écran */
    .nav__links {
        position: fixed;
        inset: 0;
        z-index: 990;
        display: flex !important;          /* toujours dans le DOM */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        background: rgba(10, 12, 16, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }
    .nav__links.open {
        transform: translateX(0);
        pointer-events: all;
    }
    .nav__link {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-primary);
        padding: 0.5rem 2rem;
        border-radius: var(--radius);
        transition: color 0.2s, background 0.2s;
    }
    .nav__link:hover {
        color: var(--cyan);
        background: var(--cyan-dim);
    }

    /* --- HERO --- */
    .hero { padding: 6rem 1rem 3rem; }
    .hero__title { font-size: clamp(2rem, 8vw, 3rem); }
    .hero__subtitle { font-size: 0.92rem; }

    /* --- WIDGET --- */
    .email-widget { padding: 1.5rem 1rem; }
    .email-display__address { font-size: 0.88rem; padding: 0.7rem 1rem; }
    .email-widget__cta { flex-direction: column; }
    .email-widget__cta .btn { justify-content: center; }

    /* --- FEATURES --- */
    .features { padding: 4rem 1rem; }
    .features__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .feature-card { padding: 1.5rem 1rem; }

    /* --- SUPPORT --- */
    .support-section { padding: 2rem 1rem 3rem; }
    .support-card { padding: 1.8rem 1rem; }

    /* --- FAQ --- */
    .faq { padding: 3rem 1rem 4rem; }

    /* --- INBOX HEADER --- */
    .inbox-header__container { flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem 1rem; }
    .inbox-header__info { width: 100%; }
    .inbox-email-display { flex: 1; min-width: 0; }
    .inbox-email-display__address { font-size: 0.76rem; }
    .inbox-timer-wrap { display: none; }
    #deleteEmailBtn { width: 100%; justify-content: center; }

    /* --- MODAL --- */
    .modal-overlay { align-items: flex-end; padding: 0; }
    .modal {
        max-width: 100%;
        width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 92vh;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE PETIT (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
    .hero__title { font-size: clamp(1.8rem, 9vw, 2.5rem); }
    .features__grid { grid-template-columns: 1fr; }
    .timer { font-size: 2rem; }
    .btn--large { padding: 0.85rem 1.3rem; font-size: 0.92rem; }
    .inbox-main { padding: 0.8rem; }
    .message-item { padding: 0.9rem 1rem; }
    .message-item__from { font-size: 0.8rem; }
    .modal__header { padding: 1rem; }
    .modal__body { padding: 1rem; }
    .lang-dropdown { right: 0.5rem; width: 165px; }
}
