/* ============================================================
   ADX PLANNER V2 — Design Premium
   Shortcode : [adx_cert_planner_v2]
   Palette   : #2e1f45 (violet ADX), #FFC107 (jaune accent), #f7f5fb (fond)
   Font      : Outfit (Google Fonts)
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

.adx-v2-wrap *, .adx-v2-wrap *::before, .adx-v2-wrap *::after { box-sizing: border-box; }

.adx-v2-wrap {
    font-family: 'Outfit', sans-serif;
    color: #1a1a2e;
    width: 100%;
    margin: 0;
    padding: 0 0 40px;
}

/* ============================================================
   HERO — split layout avec photo
============================================================ */
.adx-v2-hero {
    background: linear-gradient(135deg, #2e1f45 0%, #1a0f2e 100%);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 320px;
    min-height: 280px;
    position: relative;
}

.adx-v2-hero__left {
    padding: 40px 36px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.adx-v2-hero__photo {
    position: relative;
    overflow: hidden;
}

.adx-v2-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: brightness(.82);
}

/* Dégradé de fondu photo → fond violet */
.adx-v2-hero__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #2e1f45 0%, rgba(46,31,69,.08) 45%, transparent 100%);
    pointer-events: none;
}

.adx-v2-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,193,7,.15);
    color: #ffd54f;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 20px;
    border: 1px solid rgba(255,193,7,.3);
    margin-bottom: 18px;
    width: fit-content;
}

.adx-v2-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFC107;
    animation: adx-pulse 2s ease-in-out infinite;
}

@keyframes adx-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.7); }
}

.adx-v2-hero__title {
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 12px;
    letter-spacing: -.02em;
}

.adx-v2-hero__title--accent { color: #FFC107; }

.adx-v2-hero__sub {
    font-size: 13.5px;
    font-weight: 300;
    color: rgba(255,255,255,.65);
    line-height: 1.65;
    margin: 0 0 26px;
}

.adx-v2-hero__stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 10px;
}

.adx-v2-stat { display: flex; flex-direction: column; gap: 2px; padding-right: 20px; }
.adx-v2-stat strong { font-size: 17px; font-weight: 700; color: #fff; }
.adx-v2-stat span  { font-size: 10px; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .05em; }
.adx-v2-stat-sep   { width: 1px; height: 26px; background: rgba(255,255,255,.12); margin-right: 20px; flex-shrink: 0; }

/* ============================================================
   CARTE PRINCIPALE
============================================================ */
.adx-v2-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(46,31,69,.08);
    border: 1px solid rgba(46,31,69,.06);
    padding: 28px 32px 32px;
    margin-bottom: 20px;
}

/* ============================================================
   MODE CARDS (remplace les onglets)
============================================================ */
.adx-v2-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.adx-v2-mode-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #f7f5fb;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all .2s ease;
    font-family: 'Outfit', sans-serif;
}

.adx-v2-mode-btn:hover {
    background: #ede9f8;
    border-color: rgba(46,31,69,.15);
}

.adx-v2-mode-btn.active {
    background: #fff;
    border-color: #2e1f45;
    box-shadow: 0 2px 12px rgba(46,31,69,.1);
}

.adx-v2-mode-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #2e1f45;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.adx-v2-mode-btn.active .adx-v2-mode-icon {
    background: #FFC107;
    color: #2e1f45;
}

.adx-v2-mode-texts { display: flex; flex-direction: column; gap: 3px; }
.adx-v2-mode-texts strong { font-size: 13.5px; font-weight: 600; color: #2e1f45; line-height: 1.3; }
.adx-v2-mode-texts span   { font-size: 11.5px; color: #9589a8; line-height: 1.4; }

/* ============================================================
   DRAWERS
============================================================ */
.adx-v2-drawer { display: none; }
.adx-v2-drawer.active { display: block; }

.adx-v2-drawer__hint {
    font-size: 12.5px;
    color: #a097b8;
    margin: 0 0 14px;
    line-height: 1.5;
}

/* ---- Ligne de recherche ---- */
.adx-v2-search-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    position: relative;
}

.adx-v2-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.adx-v2-input-icon {
    position: absolute;
    left: 13px;
    color: #c0b8d4;
    pointer-events: none;
    flex-shrink: 0;
}

.adx-v2-input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 44px;
    font-family: 'Outfit', sans-serif;
    font-size: 14.5px;
    color: #1a1a2e;
    background: #f7f5fb;
    border: 2px solid transparent;
    border-radius: 10px;
    outline: none;
    transition: border-color .2s, background .2s;
}

.adx-v2-input--date { padding: 0 16px; }
.adx-v2-input::placeholder { color: #c0b8d4; }
.adx-v2-input:focus { background: #fff; border-color: #2e1f45; }

/* ---- Bouton principal ---- */
.adx-v2-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    padding: 0 22px;
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #2e1f45;
    background: #FFC107;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, transform .15s;
    letter-spacing: .01em;
}

.adx-v2-btn-primary:hover  { background: #ffca28; transform: translateY(-1px); }
.adx-v2-btn-primary:active { transform: translateY(0); }
.adx-v2-btn-primary:disabled { background: #ddd; color: #999; cursor: not-allowed; transform: none; }
.adx-v2-btn-primary--full { width: 100%; justify-content: center; }

/* ---- Dropdown résultats ---- */
.adx-v2-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(46,31,69,.1);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(46,31,69,.12);
    max-height: 300px;
    overflow-y: auto;
    z-index: 999;
}

/* ---- Grille saisie manuelle ---- */
.adx-v2-manual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

.adx-v2-field { display: flex; flex-direction: column; gap: 6px; }
.adx-v2-field--btn { justify-content: flex-end; }

.adx-v2-label {
    font-size: 11px;
    font-weight: 700;
    color: #6b5f80;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.adx-v2-select-wrap { position: relative; }

.adx-v2-select {
    width: 100%;
    height: 50px;
    padding: 0 40px 0 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 14.5px;
    color: #1a1a2e;
    background: #f7f5fb;
    border: 2px solid transparent;
    border-radius: 10px;
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.adx-v2-select:focus { background: #fff; border-color: #2e1f45; }

.adx-v2-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9589a8;
    pointer-events: none;
}

/* ============================================================
   RÉASSURANCE
============================================================ */
.adx-v2-reassurance {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.adx-v2-reassurance__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f7f5fb;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(46,31,69,.05);
}

.adx-v2-reassurance__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #FFC107;
    color: #2e1f45;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adx-v2-reassurance__item > div:last-child { display: flex; flex-direction: column; gap: 2px; }
.adx-v2-reassurance__item strong { font-size: 13px; font-weight: 600; color: #2e1f45; line-height: 1.3; }
.adx-v2-reassurance__item span   { font-size: 12px; color: #9589a8; line-height: 1.4; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 640px) {
    .adx-v2-hero { grid-template-columns: 1fr; }
    .adx-v2-hero__photo { display: none; }
    .adx-v2-hero__left { padding: 30px 22px 26px; }
    .adx-v2-card { padding: 22px 18px 26px; }
    .adx-v2-modes { grid-template-columns: 1fr; }
    .adx-v2-manual-grid { grid-template-columns: 1fr; }
    .adx-v2-reassurance { grid-template-columns: 1fr; }
    .adx-v2-search-row { flex-direction: column; }
    .adx-v2-btn-primary { width: 100%; justify-content: center; }
    .adx-v2-stat-sep { display: none; }
}

/* ============================================================
   ANIMATIONS D'ENTRÉE
============================================================ */
.adx-v2-hero, .adx-v2-card, .adx-v2-reassurance {
    animation: adx-fadein .4s ease both;
}
.adx-v2-card        { animation-delay: .08s; }
.adx-v2-reassurance { animation-delay: .15s; }

@keyframes adx-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
