/* ---------------------------------------------------
    PAGES WEBMAIL (accueil + aide) — Domaine des noms
----------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Manrope, system-ui, sans-serif;
    background: #F7F6FD;
    color: #161A23;
}

a { color: #4044EE; }
a:hover { color: #2B2FC4; }

svg { flex: none; }

.ddn-grad {
    background: linear-gradient(45deg, #00BCD4 30%, #6220D4 60%, #FF2ED2 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ddn-root {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
}

/* ---------- Colonne gauche (présentation) ---------- */

.ddn-aside {
    position: relative;
    overflow: hidden;
    flex: 1 1 460px;
    padding: 52px 64px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 72px;
    background: #0A0D18 linear-gradient(150deg, #0A0D18 0%, #141628 45%, #22183A 80%, #2E1840 100%);
    color: #FFFFFF;
}

.ddn-gridlines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 75%);
}

.ddn-glow {
    position: absolute;
    border-radius: 999px;
}

.ddn-glow--cyan {
    width: 520px;
    height: 520px;
    left: -160px;
    top: -200px;
    background: radial-gradient(circle, rgba(0, 188, 212, .22) 0%, rgba(0, 188, 212, 0) 65%);
}

.ddn-glow--pink {
    width: 640px;
    height: 640px;
    right: -260px;
    bottom: -280px;
    background: radial-gradient(circle, rgba(255, 46, 210, .20) 0%, rgba(98, 32, 212, .12) 40%, rgba(98, 32, 212, 0) 70%);
}

.ddn-logo-link {
    position: relative;
    align-self: flex-start;
    display: block;
    line-height: 0;
}

.ddn-logo {
    height: 56px;
    width: auto;
}

.ddn-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 480px;
}

.ddn-pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #E4E5F2;
}

.ddn-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #00BCD4;
}

.ddn-hero__title {
    margin: 0;
    font-family: Roboto, sans-serif;
    font-weight: 900;
    font-size: 54px;
    line-height: 1.04;
    letter-spacing: -.015em;
}

.ddn-hero__lead {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: #B9BCD0;
}

.ddn-feats {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ddn-feats li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 600;
    color: #E4E5F2;
}

.ddn-feats__icon {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ddn-legal {
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    line-height: 1.6;
}

.ddn-legal--aside {
    position: relative;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    justify-content: space-between;
    gap: 6px 20px;
    color: #9A9DB4;
}

.ddn-legal--main {
    display: none;
    justify-content: center;
    gap: 4px 16px;
    color: #6B7080;
}

/* ---------- Navigation ---------- */

.ddn-nav {
    position: absolute;
    top: 32px;
    right: 40px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.ddn-nav__help {
    color: #3B4150;
    font-weight: 600;
    text-decoration: none;
}

.ddn-nav__account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid #E3E1F3;
    color: #161A23;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}

.ddn-nav__account:hover { color: #4044EE; }

.ddn-nav__help[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---------- Colonne droite (carte d'accès) ---------- */

.ddn-main {
    position: relative;
    flex: 999 1 560px;
    min-width: 0;
    padding: 100px 40px 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    background: #F7F6FD radial-gradient(ellipse at 70% 0%, #ECEBFF 0%, rgba(236, 235, 255, 0) 55%);
}

.ddn-main__center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ddn-cardwrap {
    width: 100%;
    max-width: 500px;
    padding: 1px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(0, 188, 212, .55), rgba(98, 32, 212, .35) 45%, rgba(255, 46, 210, .45));
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 30px 70px -20px rgba(64, 68, 238, .28);
}

.ddn-card {
    overflow: hidden;
    border-radius: 24px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
}

/* Visuel « Nouveau » en tête de carte */

.ddn-visual {
    position: relative;
    height: 176px;
    overflow: hidden;
    background: #0E1120 linear-gradient(135deg, #0E1120 0%, #1B1838 55%, #34184A 100%);
}

.ddn-gridlines-sm {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 80%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 80%);
}

.ddn-glow--visual-cyan {
    width: 300px;
    height: 300px;
    left: -90px;
    top: -150px;
    background: radial-gradient(circle, rgba(0, 188, 212, .35) 0%, rgba(0, 188, 212, 0) 65%);
}

.ddn-glow--visual-pink {
    width: 320px;
    height: 320px;
    right: -110px;
    top: -120px;
    background: radial-gradient(circle, rgba(255, 46, 210, .30) 0%, rgba(98, 32, 212, .15) 45%, rgba(98, 32, 212, 0) 70%);
}

.ddn-new {
    position: absolute;
    top: 18px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding: 0 12px 0 10px;
    border-radius: 999px;
    background: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #4B24C8;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5);
}

.ddn-window {
    position: absolute;
    top: 62px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 150px;
    border-radius: 12px 12px 0 0;
    background: #FFFFFF;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ddn-window__bar {
    flex: none;
    height: 22px;
    padding: 0 10px;
    background: #F3F2FA;
    border-bottom: 1px solid #ECEAF6;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ddn-window__dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
}

.ddn-window__url {
    margin-left: 10px;
    width: 38%;
    height: 8px;
    border-radius: 4px;
    background: #E3E1F3;
}

.ddn-window__content {
    flex: 1;
    display: flex;
}

.ddn-window__side {
    width: 28%;
    padding: 10px;
    background: #F7F6FD;
    border-right: 1px solid #ECEAF6;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ddn-window__compose {
    height: 16px;
    width: 86%;
    border-radius: 5px;
    background: linear-gradient(135deg, #4044EE, #5A2FE0);
}

.ddn-line {
    height: 7px;
    border-radius: 4px;
    background: #E3E1F3;
}

.ddn-window__list {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ddn-mail {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
}

.ddn-mail--active {
    border-radius: 7px;
    background: #EEF0FF;
}

.ddn-mail__avatar {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 999px;
}

.ddn-mail__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ddn-mail__from,
.ddn-mail__subject {
    border-radius: 3px;
}

.ddn-mail__from { height: 6px; background: #D5D3E6; }
.ddn-mail__subject { height: 5px; background: #ECEBF4; }
.ddn-mail--active .ddn-mail__from { background: #8F92F5; }
.ddn-mail--active .ddn-mail__subject { background: #D5D8FB; }

/* Contenu de la carte */

.ddn-card__body {
    padding: 32px 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ddn-card__titles {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ddn-card__title {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ddn-card__kicker {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    color: #6B7080;
}

.ddn-card__headline {
    font-family: Roboto, sans-serif;
    font-weight: 900;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -.01em;
    color: #161A23;
}

.ddn-card__subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #5B6170;
}

.ddn-notice {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #F5F3FF;
    border: 1px solid #E4E1FB;
}

.ddn-notice svg { margin-top: 2px; }

.ddn-notice__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    line-height: 1.55;
    color: #2A2F3A;
}

.ddn-notice__body strong { color: #161A23; }

.ddn-notice__link {
    align-self: flex-start;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ddn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4044EE 0%, #5A2FE0 100%);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .01em;
    text-decoration: none;
    box-shadow: 0 10px 24px -8px rgba(64, 68, 238, .55), inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: transform .15s ease, box-shadow .15s ease;
}

.ddn-cta:hover {
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -8px rgba(64, 68, 238, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.ddn-others {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ddn-others__label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6B7080;
}

.ddn-others__list {
    border-radius: 14px;
    border: 1px solid #E6E4F2;
    overflow: hidden;
}

.ddn-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 14px 16px;
    color: #161A23;
    text-decoration: none;
    background: #FFFFFF;
    transition: background-color .15s ease;
}

.ddn-row + .ddn-row { border-top: 1px solid #EEECF6; }

.ddn-row:hover {
    color: #161A23;
    background: #F7F6FE;
}

.ddn-row__icon {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ddn-row__icon--danger { background: #FDECEE; }
.ddn-row__icon--neutral { background: #EEF0F4; }

.ddn-row__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ddn-row__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 15px;
    font-weight: 800;
}

.ddn-row__desc {
    font-size: 13px;
    color: #5B6170;
}

/* ---------- Page d'aide (notice.php) ---------- */

.ddn-cardwrap--wide { max-width: 640px; }

.ddn-back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px 0 12px;
    border-radius: 999px;
    background: #F5F3FF;
    border: 1px solid #E4E1FB;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.ddn-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ddn-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    line-height: 1.55;
    color: #2A2F3A;
}

.ddn-step strong { color: #161A23; }

.ddn-step__num {
    flex: none;
    width: 30px;
    height: 30px;
    margin-top: -3px;
    border-radius: 9px;
    background: linear-gradient(135deg, #00BCD4, #6220D4 55%, #FF2ED2);
    color: #FFFFFF;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px -6px rgba(98, 32, 212, .55);
}

.ddn-step__text a {
    font-weight: 700;
    text-underline-offset: 3px;
}

.ddn-shot {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ddn-shot__frame {
    display: block;
    line-height: 0;
    border-radius: 14px;
    border: 1px solid #E6E4F2;
    overflow: hidden;
    box-shadow: 0 12px 30px -16px rgba(64, 68, 238, .35);
    transition: box-shadow .15s ease;
}

.ddn-shot__frame:hover { box-shadow: 0 16px 34px -14px rgba(64, 68, 238, .45); }

.ddn-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.ddn-shot figcaption {
    font-size: 13px;
    line-height: 1.5;
    color: #6B7080;
}

/* ---------- Tablette ---------- */

@media (max-width: 1024px) {
    .ddn-root { min-height: 0; }
    .ddn-aside { flex: 1 1 100%; padding: 28px 40px 44px; gap: 36px; }
    .ddn-legal--aside { display: none; }
    .ddn-legal--main { display: flex; }
    .ddn-hero { max-width: 640px; gap: 18px; }
    .ddn-hero__title { font-size: 40px; }
    .ddn-feats { flex-direction: row; flex-wrap: wrap; gap: 12px 28px; margin-top: 4px; }
    .ddn-main { flex: 1 1 100%; padding: 48px 32px 28px; gap: 40px; }
    .ddn-nav { top: 34px; right: 40px; }
    .ddn-nav__help { color: #E4E5F2; }
    .ddn-nav__help:hover { color: #FFFFFF; }
    .ddn-cardwrap { max-width: 540px; }
    .ddn-cardwrap--wide { max-width: 640px; }
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
    .ddn-aside { padding: 16px; gap: 0; }
    .ddn-hero { display: none; }
    .ddn-logo { height: 40px; }
    .ddn-nav { top: 14px; right: 16px; }
    .ddn-nav__help { display: none; }
    .ddn-main { padding: 24px 16px; gap: 28px; }
    .ddn-cardwrap { border-radius: 21px; }
    .ddn-card { border-radius: 20px; }
    .ddn-visual { height: 150px; }
    .ddn-window { width: 90%; top: 58px; }
    .ddn-card__body { padding: 24px 20px 26px; gap: 22px; }
    .ddn-card__headline { font-size: 28px; }
    .ddn-legal--main { flex-direction: column; align-items: center; text-align: center; }
}
