﻿/*
 * ============================================================
 * BASE
 * ============================================================
 */

* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    min-height: 100%;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    background: #eff2f6;
    color: #1f2937;
}

a {
    text-decoration-line:none;
}

.image-wrapper {
    border-radius: 16px;
}

.circle-image {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
}

.card-no-elevation {
    background: linear-gradient(145deg, #e3e3e3, #f9f9f9);
    color: #1a1a1a;
    border-radius: 16px;
    padding: 2rem;
    width: 300px;
    text-align: center;
}

.row {
    display: flex;
    flex-direction: row;
    width: fit-content;
    margin: auto;
}

.row-not-centered {
    display: flex;
    flex-direction: row;
}

.column {
    display: flex;
    flex-direction: column;
    width: fit-content;
    margin: auto;
}

.column-not-centered {
    display: flex;
    flex-direction: column;
}

.center_align {
    width: fit-content;
    display: block;
    margin: auto;
    justify-content: center;
    text-align: center;
}

.center_vertically {
    height: fit-content;
    display: block;
    margin-top: auto;
    margin-bottom: auto;
}

.divider {
    margin: 0 5px;
    color: black;
    opacity: 0.9;
    background-color: black;
}

.vertical-divider {
    width: 1px;
    color: black;
    opacity: 0.9;
    background-color: black;
    margin: 0 15px;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
    width: 100%;
}


/*
 * ============================================================
 * HEADER
 * ============================================================
 */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}


.header-inner {
    width: 100%;
    max-width: 1200px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/*
 * ============================================================
 * BRAND
 * ============================================================
 */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1f2937;
    text-decoration: none;
    flex-shrink: 0;
}


.brand-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}


.brand-title {
    font-size: 20px;
    font-weight: 700;
}


/* ============================================================
 * NAVIGATION
 * ============================================================
 */

.main-navigation {
    display: flex;
    align-items: center;
    gap: 6px;
}


/* ============================================================
 * NAV ITEMS
 * ============================================================
 */

.nav-link,
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 13px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #374151;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

    .nav-link:hover,
    .nav-dropdown-toggle:hover {
        background: #f3f4f6;
        color: #2563eb;
    }


/* ============================================================
 * DROPDOWN
 * ============================================================
 */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-arrow {
    display: inline-block;
    font-size: 10px;
    line-height: 1;
    transition: transform 0.15s ease;
}

.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown:focus-within .nav-dropdown-arrow {
    transform: rotate(180deg);
}


/* ============================================================
 * DROPDOWN MENU
 * ============================================================
 */

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 1000;
    min-width: 190px;
    padding: 5px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* ============================================================
 * DROPDOWN ITEMS
 * ============================================================
 */

.nav-dropdown-item {
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

    .nav-dropdown-item:hover {
        background: #f3f4f6;
        color: #2563eb;
    }


/* ============================================================
 * LOGIN
 * ============================================================
 */

.nav-link.nav-login {
    margin-left: 8px;
    background: #2563eb;
    color: #ffffff;
}


    .nav-link.nav-login:hover {
        background: #1d4ed8;
        color: #ffffff;
    }


/* ============================================================
 * HAMBURGER
 * ============================================================
 */

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
}


    .menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        margin: 4px auto;
        background: #374151;
        border-radius: 2px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }


/*
 * ============================================================
 * MAIN
 * ============================================================
 */

.site-main {
    min-height: calc(100vh - 68px - 180px);
}


.page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}


/*
 * ============================================================
 * CARTES
 * ============================================================
 *
 * Ces classes permettent également de réutiliser facilement
 * le style de l'extension dans les pages du site.
 */

.card {
    padding: 20px;
    background: white;
    border: 1px solid #d6dee9;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.contrast-border {
    border-color: #5d89ea;
}


.card-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}


.card-text {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}


/*
 * ============================================================
 * BOUTONS
 * ============================================================
 */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}


    .button:hover {
        background: #f3f4f6;
    }


.button-primary {
    border-color: #2563eb;
    background: #2563eb;
    color: white;
}


    .button-primary:hover {
        border-color: #1d4ed8;
        background: #1d4ed8;
    }

.delete-button {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    color: #6b7280;
    font-size: 15px;
    cursor: pointer;
}


    .delete-button:hover {
        background: #fee2e2;
        border-color: #fecaca;
        color: #dc2626;
    }


/*
 * ============================================================
 * FOOTER
 * ============================================================
 */

.site-footer {
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 12px;
}


.footer-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


.footer-links {
    display: flex;
    gap: 18px;
}


    .footer-links a {
        color: #6b7280;
        text-decoration: none;
    }


        .footer-links a:hover {
            color: #2563eb;
        }


.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
}


.footer-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
}


.footer-copyright {
    color: #9ca3af;
    font-size: 10px;
}


/*
 * ============================================================
 * COOKIE BANNER
 * ============================================================
 */

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
    max-width: 1000px;
    margin: 0 auto;
    padding: 18px 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: opacity 0.2s ease, transform 0.2s ease;
}


    .cookie-banner.hidden {
        opacity: 0;
        transform: translateY(20px);
        pointer-events: none;
    }


.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}


.cookie-text {
    flex: 1;
}


    .cookie-text strong {
        display: block;
        margin-bottom: 5px;
        font-size: 13px;
    }


    .cookie-text p {
        margin: 0;
        color: #6b7280;
        font-size: 11px;
        line-height: 1.5;
    }


.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}


.cookie-button {
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}


    .cookie-button:hover {
        background: #f3f4f6;
    }


.cookie-button-primary {
    border-color: #2563eb;
    background: #2563eb;
    color: white;
}


    .cookie-button-primary:hover {
        background: #1d4ed8;
    }


/*
 * ============================================================
 * SCROLL TOP
 * ============================================================
 */

.scroll-top-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1500;
    width: 42px;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}


    .scroll-top-button.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }


    .scroll-top-button:hover {
        background: #f3f4f6;
    }


/*
 * ============================================================
 * MOBILE
 * ============================================================
 */

@media (max-width: 700px) {

    .header-inner {
        height: 60px;
        padding: 0 16px;
    }


    .brand-logo {
        width: 34px;
        height: 34px;
    }


    .brand-title {
        font-size: 17px;
    }


    /*
     * Navigation mobile
     */

    .menu-toggle {
        display: block;
    }


    .main-navigation {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px;
        background: white;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    }

        .main-navigation.open {
            display: flex;
        }

    .nav-link,
    .nav-dropdown-toggle {
        width: 100%;
        min-height: 44px;
        padding: 12px;
        justify-content: flex-start;
        border-radius: 6px;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 2px;
        padding: 4px;
        border: 0;
        border-radius: 6px;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        transform: none;
    }

    .nav-dropdown-item {
        padding: 11px 12px;
    }


    .nav-link {
        width: 100%;
        padding: 12px;
        border-radius: 6px;
    }

        .nav-link.nav-login {
            margin-left: 0;
            margin-top: 4px;
            justify-content: center;
        }


    /*
     * Contenu
     */

    .page-container {
        padding: 22px 16px 40px;
    }


    /*
     * Footer
     */

    .footer-inner {
        flex-direction: column;
        align-items: center;
        padding: 30px 16px;
        text-align: center;
    }


    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }


    /*
     * Cookies
     */

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 16px;
    }


    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }


    .cookie-actions {
        width: 100%;
    }


    .cookie-button {
        flex: 1;
    }


    /*
     * Scroll top
     */

    .scroll-top-button {
        right: 14px;
        bottom: 14px;
    }
}




/*
 * ============================================================
 * DASHBOARD
 * ============================================================
 */

.dashboard {
    width: 100%;
    max-width: 1200px;
    min-height: calc(100vh - 120px);
    margin: 0 auto;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
}


/*
 * ============================================================
 * HEADER
 * ============================================================
 */

.dashboard-header {
    margin-bottom: 18px;
}


    .dashboard-header h1 {
        margin: 0;
        font-size: 24px;
        font-weight: 700;
        color: #1f2937;
    }


    .dashboard-header p {
        margin: 6px 0 0;
        font-size: 13px;
        line-height: 1.5;
        color: #6b7280;
    }


/*
 * ============================================================
 * FILTER CHIPS
 * ============================================================
 */

.dashboard-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: white;
    color: #6b7280;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}


    .filter-chip:hover {
        background: #f3f4f6;
    }


    .filter-chip.active {
        border-color: #2563eb;
        background: #eff6ff;
        color: #1d4ed8;
    }


    /*
 * Couleurs des chips
 */

    .filter-chip.live.active {
        border-color: #2563eb;
        background: #eff6ff;
        color: #1d4ed8;
    }


    .filter-chip.history.active {
        border-color: #d97706;
        background: #fffbeb;
        color: #92400e;
    }


    .filter-chip.check.active {
        border-color: #dc2626;
        background: #fef2f2;
        color: #991b1b;
    }

    .filter-chip.category.active {
        border-color: #16a34a;
        background: #f0fdf4;
        color: #15803d;
    }


/*
 * Petit indicateur
 */

.chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9ca3af;
}


.filter-chip.live.active .chip-dot {
    background: #2563eb;
}


.filter-chip.history.active .chip-dot {
    background: #d97706;
}


.filter-chip.check.active .chip-dot {
    background: #dc2626;
}

.filter-chip.category .chip-dot {
    background: #16a34a;
}


/*
 * ============================================================
 * BLOC RÉSULTATS
 * ============================================================
 */

.dashboard-results {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow-y: auto;
}


/*
 * ============================================================
 * SECTION
 * ============================================================
 */

.result-section {
    padding: 14px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}


    .result-section.hidden {
        display: none;
    }


.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}


    .section-header h2 {
        margin: 0;
        font-size: 15px;
        font-weight: 700;
        color: #374151;
    }


    .section-header p {
        margin: 3px 0 0;
        font-size: 11px;
        color: #6b7280;
    }


.section-count {
    min-width: 26px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
}


    .section-count.warning {
        background: #fef2f2;
        color: #dc2626;
    }


/*
 * ============================================================
 * LISTE
 * ============================================================
 */

.result-list {
    min-height: 45px;
}


.empty-result {
    padding: 12px;
    border-radius: 6px;
    background: #f9fafb;
    color: #9ca3af;
    text-align: center;
    font-size: 11px;
}

/*
 * ============================================================
 * TOOLBAR
 * ============================================================
 */

.dashboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}


/*
 * ============================================================
 * FILTER CHIPS
 * ============================================================
 */

.dashboard-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}


/*
 * ============================================================
 * ACTIONS
 * ============================================================
 */

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}


.dashboard-button {
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}


    .dashboard-button:hover {
        background: #f3f4f6;
    }


    .dashboard-button.primary {
        border-color: #2563eb;
        background: #2563eb;
        color: white;
    }


        .dashboard-button.primary:hover {
            background: #1d4ed8;
        }


/*
 * ============================================================
 * MOBILE
 * ============================================================
 */

@media (max-width: 700px) {

    .dashboard {
        min-height: calc(100vh - 70px);
        padding: 16px 12px;
    }


    .dashboard-header {
        margin-bottom: 14px;
    }


        .dashboard-header h1 {
            font-size: 21px;
        }


        .dashboard-header p {
            font-size: 12px;
        }


    /*
     * Toolbar :
     * les chips et les boutons passent sur deux lignes
     */

    .dashboard-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
    }


    .dashboard-filters {
        width: 100%;
    }


    .dashboard-actions {
        width: 100%;
    }


    .dashboard-button {
        flex: 1;
        text-align: center;
    }


    /*
     * Résultats
     */

    .dashboard-results {
        padding: 7px;
        gap: 7px;
    }


    .result-section {
        padding: 11px;
    }


    .section-header h2 {
        font-size: 14px;
    }


    .section-header p {
        font-size: 10px;
    }
}

@media (max-width: 700px) {

    .site-footer {
        font-size: 10px;
    }


    .footer-inner {
        padding: 9px 12px;
        gap: 8px;
    }


    .footer-links {
        gap: 10px;
    }
}

/* SUCCESS ERROR */

.success-message {
    background-color: #70c770;
    color: white;
    width: 80%;
    display: block;
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    margin: auto;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.error-message {
    background-color: #ff9966;
    color: white;
    padding: 0.8rem 1.2rem;
    width: 80%;
    display: block;
    font-size: 0.95rem;
    margin: auto;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   CARDS - ANALYSE HISTORIQUE
   ============================================================ */

.history-result-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);

    cursor: pointer;

    transition:
        box-shadow 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}


.history-result-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.10);
    transform: translateY(-1px);
}


.history-result-card:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}


.history-result-card:active {
    transform: translateY(0);
}


/* ============================================================
   HEADER
   ============================================================ */

.history-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}


/* ============================================================
   DOMAINE
   ============================================================ */

.history-result-domain {
    min-width: 0;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}


/* ============================================================
   BADGES
   ============================================================ */

.history-result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}


    /* Transmission probable */

    .history-result-badge.transmission {
        background: #fee2e2;
        color: #b91c1c;
    }


    /* Champ détecté */

    .history-result-badge.email {
        background: #dbeafe;
        color: #1d4ed8;
    }


    /* À vérifier */

    .history-result-badge.check {
        background: #fef3c7;
        color: #92400e;
    }


/* ============================================================
   INFORMATIONS
   ============================================================ */

.history-result-info {
    color: #4b5563;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 8px;
}


/* ============================================================
   DATES
   ============================================================ */

.history-result-dates {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.4;
}


/* ============================================================
   BADGE +1
   ============================================================ */

.history-result-extra-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    margin-left: 5px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    vertical-align: middle;
}


/* ============================================================
   BOUTON / LIEN DÉTAIL
   ============================================================ */

.domain-details {
    border: 0;
    padding: 0;
    background: transparent;
    color: #2563eb;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
}


    .domain-details:hover {
        color: #1d4ed8;
        text-decoration: underline;
    }


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {

    .history-result-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }


    .history-result-badge {
        align-self: flex-start;
    }
}

.dashboard-search {
    display: flex;
    align-items: center;
}

.dashboard-search-wrapper {
    display: flex;
    align-items: stretch;
    height: 38px;
    min-width: 260px;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.dashboard-search-input {
    width: 220px;
    border: none;
    outline: none;
    padding: 0 12px;
    font-size: 14px;
    color: #1f2937;
    background: transparent;
}

    .dashboard-search-input::placeholder {
        color: #9ca3af;
    }

.dashboard-search-button {
    width: 40px;
    border: none;
    border-left: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

    .dashboard-search-button:hover {
        background: #eef2f7;
        color: #334155;
    }

/* TEXTBOX */

.modern-textbox {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #2d2d2d;
    border: 1px solid #d0d4d9;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

    .modern-textbox:focus {
        border-color: #1877f2;
        box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.2);
    }

.search-box {
    background: url('/assets/images/search.svg') no-repeat 10px center;
    background-size: 16px 16px;
    padding-left: 35px;
    height: 35px;
    border-radius: 6px;
    background-color: white;
}


/* ============================================================
   SÉLECTION / ACTIONS
   ============================================================ */

.dashboard-selection {
    display: flex;
    align-items: end;
    gap: 14px;
    margin-left: auto;
}


/* Checkbox + texte */

.select-all-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}


    /* Checkbox */

    .select-all-wrapper input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin: 0;
        accent-color: #2563eb;
        cursor: pointer;
    }


/* Bouton supprimer */

.dashboard-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #fecaca;
    border-radius: 7px;
    background: #fff;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}


    .dashboard-delete-button:hover {
        background: #fef2f2;
        border-color: #fca5a5;
        color: #b91c1c;
    }


    .dashboard-delete-button:active {
        background: #fee2e2;
    }


    /* État disabled */

    .dashboard-delete-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.option-button {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    color: #6b7280;
    font-size: 15px;
    cursor: pointer;
}


    .option-button:hover {
        background: #eff6ff;
        border-color: #bfdbfe;
        color: #2563eb;
    }


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 700px) {

    .dashboard-selection {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
    }
}

/* ============================================================
   PAGINATION
   ============================================================ */

.dashboard-pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
    margin-bottom: 24px;
}


.pagination-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}


/* ============================================================
   BOUTONS
   ============================================================ */

.pagination-button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    outline: none;
    box-shadow: none;
    border-radius: 8px;
    color: #374151;
    background: transparent;
    font-family: inherit;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

    .pagination-button:hover {
        background: #f3f4f6;
        color: #111827;
    }

    .pagination-button:focus,
    .pagination-button:focus-visible {
        outline: none;
        box-shadow: none;
    }

    .pagination-button:active {
        transform: scale(0.94);
    }


/* ============================================================
   PREMIÈRE / DERNIÈRE PAGE
   ============================================================ */

.pagination-first,
.pagination-last {
    font-size: 18px;
    font-weight: 600;
}


/* ============================================================
   PAGE COURANTE
   ============================================================ */

.pagination-current {
    min-width: 76px;
    height: 36px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
}


.pagination-current-label {
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}


.pagination-current span + span {
    color: #111827;
}



/* ============================================================
   PAGE
   ============================================================ */

.domain-detail-page {
    width: 100%;
    min-height: 100vh;
    padding: 35px 25px 60px;
    box-sizing: border-box;
    background: #f8fafc;
}


.domain-detail-container {
    width: min(1050px, 100%);
    margin: 0 auto;
}


/* ============================================================
   HEADER
   ============================================================ */

.domain-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 28px 30px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}


.domain-detail-identity {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}


/* ============================================================
   AVATAR
   ============================================================ */

.domain-avatar {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient( 135deg, #ecfdf5, #d1fae5 );
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
}


.domain-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.domain-avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}


/* ============================================================
   TITRE
   ============================================================ */

.domain-detail-title {
    min-width: 0;
}


.domain-detail-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}


.domain-detail-title h1 {
    margin: 0;
    color: #111827;
    font-size: 28px;
    font-weight: 650;
    line-height: 1.2;
    overflow-wrap: anywhere;
}


.domain-detail-url {
    margin-top: 7px;
    color: #64748b;
    font-size: 14px;
    overflow-wrap: anywhere;
}


/* ============================================================
   BADGES
   ============================================================ */

.domain-detail-badges {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}


.domain-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 12px;
    font-weight: 600;
}


/* ============================================================
   BOUTON VISITER
   ============================================================ */

.domain-visit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    border: 1px solid #166534;
    border-radius: 9px;
    background: #15803d;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}


    .domain-visit-button:hover {
        background: #166534;
        border-color: #14532d;
        transform: translateY(-1px);
    }


/* ============================================================
   SECTIONS
   ============================================================ */

.domain-detail-section {
    margin-top: 20px;
    padding: 25px 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.025);
}


.domain-detail-section-header {
    margin-bottom: 20px;
}


    .domain-detail-section-header h2 {
        margin: 0;
        color: #1e293b;
        font-size: 18px;
        font-weight: 650;
    }


    .domain-detail-section-header p {
        margin: 6px 0 0;
        color: #64748b;
        font-size: 13px;
        line-height: 1.5;
    }


/* ============================================================
   DESCRIPTION
   ============================================================ */

.domain-detail-description {
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
}


/* ============================================================
   INFORMATIONS
   ============================================================ */

.domain-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #e5e7eb;
}


.domain-info-item {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 15px 17px;
    background: #ffffff;
}


.domain-info-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}


.domain-info-value {
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}


/* ============================================================
   STATISTIQUES
   ============================================================ */

.domain-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}


.domain-stat-card {
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    text-align: center;
}


.domain-stat-value {
    color: #1e293b;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
}


.domain-stat-label {
    margin-top: 7px;
    color: #64748b;
    font-size: 12px;
}


/* ============================================================
   FOOTER
   ============================================================ */

.domain-detail-footer {
    display: flex;
    justify-content: center;
    padding: 28px 0 0;
}


.domain-back-button {
    padding: 9px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}


    .domain-back-button:hover {
        background: #f8fafc;
        border-color: #94a3b8;
    }


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 800px) {

    .domain-detail-header {
        flex-direction: column;
        align-items: stretch;
    }


    .domain-detail-actions {
        display: flex;
    }


    .domain-visit-button {
        width: 100%;
    }


    .domain-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 600px) {

    .domain-detail-page {
        padding: 20px 12px 40px;
    }


    .domain-detail-header,
    .domain-detail-section {
        padding: 20px;
    }


    .domain-detail-identity {
        align-items: flex-start;
    }


    .domain-avatar {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
        font-size: 23px;
    }


    .domain-detail-title h1 {
        font-size: 22px;
    }


    .domain-info-grid {
        grid-template-columns: 1fr;
    }


    .domain-stat-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================================
   PAGES LÉGALES
   ============================================================ */

.legal-page {
    max-width: 1100px;
}

.legal-header {
    margin-bottom: 25px;
}

    .legal-header h1,
    .faq-header h1 {
        margin: 0;
        color: #1f2937;
        font-size: 28px;
        font-weight: 700;
    }

    .legal-header p,
    .faq-header p {
        max-width: 750px;
        margin: 8px 0 0;
        color: #6b7280;
        font-size: 14px;
        line-height: 1.6;
    }

.legal-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.legal-navigation {
    position: sticky;
    top: 90px;
}

    .legal-navigation .card {
        padding: 16px;
    }

    .legal-navigation .card-title {
        margin-bottom: 12px;
        font-size: 14px;
    }

    .legal-navigation nav {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

        .legal-navigation nav a {
            padding: 8px 9px;
            border-radius: 6px;
            color: #64748b;
            font-size: 12px;
            line-height: 1.4;
        }

            .legal-navigation nav a:hover {
                background: #f3f4f6;
                color: #2563eb;
            }

.legal-content {
    min-width: 0;
}

.legal-section {
    margin-bottom: 20px;
    padding: 25px 28px;
    scroll-margin-top: 90px;
}

    .legal-section:last-child {
        margin-bottom: 0;
    }

.legal-section-header {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

    .legal-section-header h2 {
        margin: 0;
        color: #1f2937;
        font-size: 20px;
        font-weight: 700;
    }

    .legal-section-header p {
        margin: 6px 0 0;
        color: #6b7280;
        font-size: 13px;
        line-height: 1.5;
    }

.legal-block {
    margin-bottom: 24px;
}

    .legal-block:last-child {
        margin-bottom: 0;
    }

    .legal-block h3 {
        margin: 0 0 8px;
        color: #374151;
        font-size: 15px;
        font-weight: 700;
    }

    .legal-block p {
        margin: 0 0 10px;
        color: #4b5563;
        font-size: 13px;
        line-height: 1.7;
    }

        .legal-block p:last-child {
            margin-bottom: 0;
        }

    .legal-block ul {
        margin: 8px 0 0;
        padding-left: 20px;
        color: #4b5563;
        font-size: 13px;
        line-height: 1.8;
    }


/* ============================================================
   FAQ
   ============================================================ */

.faq-page {
    max-width: 900px;
}

.faq-header {
    margin-bottom: 25px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .faq-item:hover {
        border-color: #d1d5db;
    }

    .faq-item.open {
        border-color: #bfdbfe;
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
    }

.faq-question {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    border: 0;
    background: #ffffff;
    color: #374151;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

    .faq-question:hover {
        background: #f9fafb;
    }

.faq-icon {
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f3f4f6;
    color: #64748b;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease;
}

.faq-item.open .faq-icon {
    background: #eff6ff;
    color: #2563eb;
    transform: rotate(45deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.2s ease;
}

    .faq-answer > p {
        min-height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0 18px;
        color: #6b7280;
        font-size: 13px;
        line-height: 1.7;
        transition: padding 0.2s ease;
    }

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

    .faq-item.open .faq-answer > p {
        padding: 0 18px 18px;
    }


/* ============================================================
   CONTACT
   ============================================================ */

.contact-section {
    margin-top: 30px;
    padding: 25px 28px;
}

.contact-header {
    margin-bottom: 22px;
}

    .contact-header h2 {
        margin: 0;
        color: #1f2937;
        font-size: 20px;
        font-weight: 700;
    }

    .contact-header p {
        margin: 6px 0 0;
        color: #6b7280;
        font-size: 13px;
        line-height: 1.5;
    }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .contact-form-group label {
        color: #374151;
        font-size: 12px;
        font-weight: 600;
    }

    .contact-form-group .modern-textbox {
        width: 100%;
    }

.contact-message {
    min-height: 150px;
    resize: vertical;
}

.contact-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 5px;
}

.contact-privacy {
    max-width: 600px;
    margin: 0;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.5;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-navigation {
        position: static;
    }

        .legal-navigation nav {
            flex-direction: row;
            flex-wrap: wrap;
        }

    .legal-section {
        padding: 20px;
    }

    .legal-header h1,
    .faq-header h1 {
        font-size: 23px;
    }

    .contact-section {
        padding: 20px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

        .contact-form-footer .button {
            width: 100%;
        }

    .faq-question {
        padding: 14px;
        font-size: 13px;
    }

    .faq-item.open .faq-answer > p {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* ============================================================
   FAQ PAGE
   ============================================================ */

.faq-page {
    max-width: 900px;
}


/* ============================================================
   HEADER
   ============================================================ */

.faq-header {
    margin-bottom: 28px;
}

    .faq-header h1 {
        margin: 0;
        color: #1f2937;
        font-size: 28px;
        font-weight: 700;
        line-height: 1.2;
    }

    .faq-header p {
        margin: 8px 0 0;
        color: #6b7280;
        font-size: 14px;
        line-height: 1.6;
    }


/* ============================================================
   FAQ LIST
   ============================================================ */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* ============================================================
   FAQ ITEM
   ============================================================ */

.faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .faq-item:hover {
        border-color: #d1d5db;
    }

    .faq-item.open {
        border-color: #bfdbfe;
        box-shadow: 0 3px 12px rgba(37, 99, 235, 0.08);
    }


/* ============================================================
   QUESTION
   ============================================================ */

.faq-question {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0;
    padding: 16px 18px;
    border: none;
    background: #ffffff;
    color: #1f2937;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .faq-question:hover {
        background: #f9fafb;
    }

.faq-item.open .faq-question {
    background: #f8fbff;
    color: #2563eb;
}


/* ============================================================
   TEXTE QUESTION
   ============================================================ */

.faq-question > span:first-child {
    flex: 1;
}


/* ============================================================
   ICÔNE +
   ============================================================ */

.faq-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 19px;
    font-weight: 400;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.2s ease;
}

.faq-item.open .faq-icon {
    background: #eff6ff;
    color: #2563eb;
    transform: rotate(180deg);
}


/* ============================================================
   RÉPONSE
   ============================================================ */

.faq-answer {
    display: none;
    padding: 0 18px 18px;
    background: #f8fbff;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-answer p {
    margin: 0;
    padding-top: 2px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}


/* ============================================================
   CONTACT
   ============================================================ */

.contact-section {
    margin-top: 35px;
}

.contact-header {
    margin-bottom: 22px;
}

    .contact-header h2 {
        margin: 0;
        color: #1f2937;
        font-size: 20px;
        font-weight: 700;
    }

    .contact-header p {
        margin: 6px 0 0;
        color: #6b7280;
        font-size: 13px;
        line-height: 1.5;
    }


/* ============================================================
   FORMULAIRE
   ============================================================ */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .contact-form-group label {
        color: #374151;
        font-size: 12px;
        font-weight: 600;
    }

.contact-message {
    resize: vertical;
    min-height: 150px;
}


/* ============================================================
   FOOTER FORMULAIRE
   ============================================================ */

.contact-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 2px;
}

.contact-privacy {
    max-width: 600px;
    margin: 0;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.5;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .faq-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .faq-header {
        margin-bottom: 20px;
    }

        .faq-header h1 {
            font-size: 23px;
        }

        .faq-header p {
            font-size: 13px;
        }

    .faq-question {
        min-height: 54px;
        padding: 14px 15px;
        font-size: 13px;
    }

    .faq-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .faq-answer {
        padding: 0 15px 16px;
    }

        .faq-answer p {
            font-size: 12px;
        }

    .contact-section {
        margin-top: 25px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

        .contact-form-footer .button {
            width: 100%;
        }

    .contact-privacy {
        max-width: none;
    }
}

/* =====================================================
      Mails HEADER
       ===================================================== */

.mail-connect-header {
    max-width: 750px;
    margin: 10px auto 24px;
    text-align: center;
}


    .mail-connect-header h1 {
        margin: 0;
        color: #1f2937;
        font-size: 28px;
        font-weight: 700;
        line-height: 1.25;
    }


    .mail-connect-header p {
        margin: 8px 0 0;
        color: #6b7280;
        font-size: 14px;
        line-height: 1.6;
    }


/* =====================================================
       INFOBOX
       ===================================================== */

.mail-connect-info {
    max-width: 750px;
    margin: 0 auto 25px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 15px 17px;
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    border-radius: 10px;
    color: #1e40af;
}


.mail-connect-info-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    font-size: 14px;
    font-weight: 700;
}


.mail-connect-info-content {
    min-width: 0;
}


    .mail-connect-info-content strong {
        display: block;
        margin-bottom: 3px;
        color: #1e3a8a;
        font-size: 13px;
        font-weight: 700;
    }


    .mail-connect-info-content p {
        margin: 0;
        color: #3b82f6;
        font-size: 12px;
        line-height: 1.55;
    }


/* =====================================================
       PROVIDERS
       ===================================================== */

.mail-provider-grid {
    max-width: 750px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}


/* =====================================================
       PROVIDER CARD
       ===================================================== */

.mail-provider-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 17px;
    min-height: 145px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #1f2937;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}


    .mail-provider-card:hover {
        border-color: #93c5fd;
        box-shadow: 0 6px 18px rgba(37, 99, 235, 0.10);
        transform: translateY(-2px);
    }


    .mail-provider-card:active {
        transform: translateY(0);
    }


    .mail-provider-card:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    }


/* =====================================================
       ICON
       ===================================================== */

.mail-provider-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}


    .mail-provider-icon img {
        width: 38px;
        height: 38px;
        object-fit: contain;
    }


/* =====================================================
       CONTENT
       ===================================================== */

.mail-provider-content {
    min-width: 0;
    flex: 1;
}


    .mail-provider-content h2 {
        margin: 0 0 6px;
        color: #1f2937;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.3;
    }


    .mail-provider-content p {
        margin: 0;
        color: #6b7280;
        font-size: 12px;
        line-height: 1.55;
    }


/* =====================================================
       ARROW
       ===================================================== */

.mail-provider-arrow {
    flex: 0 0 auto;
    color: #9ca3af;
    font-size: 22px;
    font-weight: 400;
    transition: color 0.15s ease, transform 0.15s ease;
}


.mail-provider-card:hover .mail-provider-arrow {
    color: #2563eb;
    transform: translateX(3px);
}


/* =====================================================
       MOBILE
       ===================================================== */

@media (max-width: 700px) {

    .mail-connect-header {
        margin-top: 5px;
        margin-bottom: 20px;
    }


        .mail-connect-header h1 {
            font-size: 23px;
        }


        .mail-connect-header p {
            font-size: 13px;
        }


    .mail-connect-info {
        margin-bottom: 18px;
        padding: 14px;
    }


    .mail-provider-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }


    .mail-provider-card {
        min-height: 120px;
        padding: 18px;
    }


    .mail-provider-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }


        .mail-provider-icon img {
            width: 34px;
            height: 34px;
        }
}


/* DROP DOWN */

.modern-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    font-family: 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #2d2d2d;
    border: 1px solid #d0d4d9;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    transition: all 0.2s ease;
}

    .modern-select:focus {
        border-color: #1877f2;
        box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.2);
        outline: none;
    }

.history-result-select {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Zone de sécurité autour de la checkbox */
    padding: 8px;
    margin: -8px;
    position: relative;
    z-index: 2;
}

.domain-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.search-container {
    position: relative;
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 100%;
    box-sizing: border-box;
}

    .search-container .modern-textbox {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
    }

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    display: none;
}

.search-suggestion {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
}

    .search-suggestion:hover {
        background: #f3f4f6;
    }

/* ============================================================
   WARNING INFOBOX
   ============================================================ */

.home-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 13px 15px;
    background: #fff7ed;
    border: 2px solid #fdba74;
    border-radius: 10px;
    color: #9a3412;
}


/* ============================================================
   WARNING ICON
   ============================================================ */

.home-warning-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffedd5;
    color: #c2410c;
    font-size: 13px;
    font-weight: 700;
}


/* ============================================================
   WARNING CONTENT
   ============================================================ */

.home-warning-content {
    min-width: 0;
    padding-top: 1px;
}

.home-warning-title {
    margin-bottom: 3px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.home-warning-text {
    color: #9a3412;
    font-size: 11px;
    line-height: 1.55;
}

.privacy-details {
    margin-top: 15px;
}

    .privacy-details summary {
        display: inline-flex;
        align-items: center;
        cursor: pointer;
        color: #2563eb;
        font-size: 13px;
        font-weight: 600;
        user-select: none;
        list-style: none;
    }

        .privacy-details summary::-webkit-details-marker {
            display: none;
        }

        .privacy-details summary::after {
            content: "▼";
            margin-left: 7px;
            font-size: 9px;
            transition: transform 0.2s ease;
        }

    .privacy-details[open] summary::after {
        transform: rotate(180deg);
    }

.privacy-details-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

    .privacy-details-content p {
        margin: 0 0 10px;
    }

    /* ============================================================
       PAYMENT
       ============================================================ */

    .payment-page {
        width: 100%;
        min-height: 100vh;
        background: #f8fafc;
    }

    .payment-page-header {
        padding: 48px 20px 42px;
        background: linear-gradient(135deg, #173b57, #256b74);
        color: #ffffff;
    }

    .payment-page-title {
        padding: 0;
    }

    .payment-page-title span {
        font-size: clamp(1.75rem, 4vw, 2.4rem);
        letter-spacing: 0;
    }

    .payment-back {
        width: min(940px, calc(100% - 32px));
        margin: 0 auto;
        padding: 18px 0 0;
    }

    .payment-back img {
        width: 30px;
        height: 30px;
        padding: 6px;
        border: 1px solid #dbe3ea;
        border-radius: 8px;
        background: #ffffff;
        transition: background 0.15s ease, transform 0.15s ease;
    }

    .payment-back img:hover {
        background: #eef6f7;
        transform: translateX(-2px);
    }

    .payment-rules {
        width: min(940px, calc(100% - 32px));
        margin: 0 auto;
        padding: 18px 0 8px;
    }

    .payment-rules > div {
        width: 100% !important;
    }

    .payment-rules .infobox {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 13px 16px;
        border: 1px solid #bfdbfe;
        border-radius: 10px;
        background: #eff6ff;
        color: #1e40af;
        text-align: left;
    }

    .payment-rules .infobox .icon {
        flex: 0 0 auto;
    }

    .payment-discount {
        display: flex;
        align-items: center;
        gap: 8px;
        width: min(940px, calc(100% - 32px));
        margin: 12px auto 0;
        padding: 12px 16px;
        border: 1px solid #fde68a;
        border-radius: 10px;
        background: #fffbeb;
        color: #92400e;
    }

    .payment-intro {
        width: min(680px, calc(100% - 32px));
        margin: 30px auto 0;
        text-align: center;
    }

    .payment-eyebrow,
    .payment-card-kicker {
        color: #0f766e;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .payment-intro h3 {
        margin: 7px 0 6px;
        color: #1f2937;
        font-size: 23px;
        line-height: 1.3;
    }

    .payment-intro p {
        margin: 0;
        color: #64748b;
        font-size: 13px;
        line-height: 1.6;
    }

    .payment-terms {
        margin: 10px auto 0;
        text-align: center;
    }

    .payment-terms a {
        color: #2563eb !important;
        font-size: 12px;
    }

    .payment-catalog {
        width: 100%;
    }

    .payment-page .pricing-container {
        display: flex;
        justify-content: center;
        width: min(940px, calc(100% - 32px));
        margin: 0 auto;
        padding: 28px 0 52px;
    }

    .payment-card {
        width: min(440px, 100%);
        padding: 26px;
        border: 1px solid #dbe3ea;
        border-radius: 12px;
        background: #ffffff;
        color: #1f2937;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
        display: flex;
        flex-direction: column;
        gap: 18px;
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .payment-card:hover,
    .payment-card:focus-within {
        transform: translateY(-3px);
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
    }

    .payment-card-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
    }

    .payment-card-header h3 {
        margin: 5px 0 0;
        color: #1f2937;
        font-size: 21px;
        line-height: 1.25;
    }

    .payment-card-mark {
        display: flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        height: 38px;
        flex: 0 0 38px;
        padding-left:2px;
        padding-right:2px;
        border-radius: 10px;
        background: #e6f4f2;
        color: #0f766e;
        font-size: 20px;
    }

    .payment-card-badge {
        margin: 0;
    }

    .payment-card-badge .chip {
        display: inline-flex;
        align-items: center;
        min-height: 25px;
        padding: 4px 10px;
        border-radius: 999px;
    }

    .payment-card-details {
        min-height: 0;
        padding: 16px;
        border: 1px solid #e2e8f0;
        border-radius: 9px;
        background: #f8fafc;
    }

    .payment-card-description {
        margin: 0 0 10px;
        color: #475569;
        font-size: 13px;
        line-height: 1.5;
    }

    .payment-card-details ul {
        margin: 0;
        padding-left: 18px;
        color: #64748b;
        font-size: 12px;
        line-height: 1.8;
    }

    .payment-order-fields,
    .payment-form-fields {
        width: 100%;
    }

    .payment-field,
    .payment-email-field {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .payment-field label,
    .payment-email-field label {
        color: #374151;
        font-size: 12px;
        font-weight: 600;
    }

    .payment-quantity,
    .payment-email-field,
    .payment-form-fields {
        width: 100%;
        max-width: none;
    }

    .payment-form-fields {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0;
    }

    .payment-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        margin: 0;
        border-radius: 7px;
        background: #2563eb;
        color: #ffffff;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
        transition: background 0.15s ease, transform 0.15s ease;
    }

    .payment-button:hover {
        background: #1d4ed8;
        color: #ffffff;
        transform: translateY(-1px);
    }

    @media (max-width: 420px) {
        .payment-card {
            padding: 20px;
        }

        .payment-intro h3 {
            font-size: 20px;
        }
    }


.sending-date-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.sending-date-info--recent {
    color: #1d4ed8;
    background: #dbeafe;
}

.sending-date-info--warning {
    color: #c2410c;
    background: #ffedd5;
}

.sending-date-info--old {
    color: #b91c1c;
    background: #fee2e2;
}

.sending-date-info--invalid {
    color: #6b7280;
    background: #f3f4f6;
}

.sending-date-info:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.history-result-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    margin-left: auto;
}
