/* =============================================================================
   DRI — COMPOSANTS PAGES DOMAINES
   À intégrer dans le fichier CSS principal du site.
   Préfixe générique : .dri-  pour tous les composants réutilisables.
   ============================================================================= */


/* =============================================================================
   1. HERO — Section d'introduction principale
   ============================================================================= */

.dri-hero {
    background: #fff;
    padding: 60px 0 70px 0;
}

.dri-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #dde8b0;
    border-radius: 30px;
    padding: 6px 16px;
    font-size: .85rem;
    color: #6E890C;
    font-weight: 600;
    margin-bottom: 22px;
}

.dri-hero-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #A7CC0D;
    display: inline-block;
}

.dri-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: #1a1a1a;
    margin-bottom: 18px;
}

.dri-hero h1 span {
    color: #6E890C;
}

.dri-hero-subtitle {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 28px;
    line-height: 1.6;
}

.dri-hero-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: .88rem;
    color: #444;
}

.dri-hero-checklist span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dri-hero-checklist i {
    color: #6E890C;
}

.dri-hero-mockup {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 20px;
    padding: 28px 32px;
    color: #fff;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .14);
    text-align: left;
}

@media (max-width: 767px) {
    .dri-hero h1 {
        font-size: 1.9rem;
    }
    .dri-hero {
        padding: 36px 0 40px 0;
    }
    .dri-hero-mockup {
        max-width: 100%;
    }
}


/* =============================================================================
   2. BANDEAU ARGUMENTS — Barre de points forts horizontale
   ============================================================================= */

.dri-args-bar {
    background: #f5f5f5;
    padding: 28px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.dri-arg-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 8px 12px;
}

.dri-arg-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6E890C, #A7CC0D);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}

.dri-arg-text strong {
    display: block;
    font-size: .92rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 3px;
}

.dri-arg-text span {
    font-size: .82rem;
    color: #777;
    line-height: 1.4;
}


/* =============================================================================
   3. SECTION GÉNÉRIQUE — Conteneur de section avec titre centré
   ============================================================================= */

.dri-section {
    padding: 60px 0;
}

.dri-section--grey {
    background: #f7f7f7;
}

.dri-section-title {
    text-align: center;
    font-size: 1.65rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.dri-section-underline {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #6E890C, #A7CC0D);
    margin: 0 auto 24px auto;
    border-radius: 2px;
}

.dri-section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}


/* =============================================================================
   4. CARTE CONTENU — Carte générique avec icône, titre et texte
   ============================================================================= */

.dri-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    height: 100%;
}

.dri-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6E890C, #A7CC0D);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 16px;
}

.dri-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.dri-card p {
    font-size: .88rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.dri-highlight-box {
    background: #f0f5e0;
    border-left: 4px solid #6E890C;
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    font-size: .88rem;
    color: #444;
    line-height: 1.6;
    margin-top: 16px;
}

.dri-highlight-box i {
    color: #6E890C;
    margin-right: 6px;
}


/* =============================================================================
   5. MOTEUR DE RECHERCHE DOMAINE — Carte de recherche / transfert
   ============================================================================= */

.dri-search-section {
    background: #fff;
    padding: 56px 0 60px 0;
}

.dri-search-card {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 32px rgba(110, 137, 12, .13), 0 1px 4px rgba(0, 0, 0, .06);
    border: 1.5px solid #dde8b0;
    padding: 40px;
}

.dri-search-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 6px;
    text-align: center;
}

.dri-search-card > p {
    color: #777;
    text-align: center;
    font-size: .92rem;
    margin-bottom: 24px;
}

/* Onglets achat / transfert */
.dri-search-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.dri-search-tab {
    background: #f5f5f5;
    color: #666;
    border: 1.5px solid #ddd;
    padding: 10px 28px;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    outline: none;
}

.dri-search-tab:first-child {
    border-radius: 25px 0 0 25px;
    border-right: none;
}

.dri-search-tab:last-child {
    border-radius: 0 25px 25px 0;
}

.dri-search-tab.active {
    background: linear-gradient(90deg, #6E890C, #A7CC0D);
    color: #fff;
    border-color: #6E890C;
}

.dri-search-tab:hover:not(.active) {
    background: #eee;
    color: #444;
}

/* Barre de saisie */
.dri-search-bar {
    display: flex;
    background: #f7f7f7;
    border-radius: 50px;
    overflow: hidden;
    border: 1.5px solid #ddd;
    transition: border-color .2s, box-shadow .2s;
}

.dri-search-bar:focus-within {
    border-color: #6E890C;
    box-shadow: 0 0 0 3px rgba(110, 137, 12, .12);
}

.dri-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 22px;
    font-size: 1rem;
    color: #333;
    background: transparent;
}

.dri-search-bar input::placeholder {
    color: #bbb;
}

.dri-search-bar button {
    background: linear-gradient(90deg, #6E890C, #A7CC0D);
    color: #fff;
    border: none;
    padding: 15px 26px;
    font-weight: 700;
    font-size: .92rem;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
    transition: opacity .2s;
    white-space: nowrap;
}

.dri-search-bar button:hover {
    opacity: .88;
}

/* Champ code AUTH (transfert) */
.dri-auth-field {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    background: #f7f7f7;
    border: 1.5px solid #ddd;
    border-radius: 50px;
    padding: 4px 4px 4px 22px;
    transition: border-color .2s, box-shadow .2s;
}

.dri-auth-field:focus-within {
    border-color: #6E890C;
    box-shadow: 0 0 0 3px rgba(110, 137, 12, .12);
}

.dri-auth-field label {
    font-size: .82rem;
    font-weight: 700;
    color: #6E890C;
    white-space: nowrap;
    margin: 0;
}

.dri-auth-field input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: .95rem;
    color: #333;
    padding: 11px 0;
    font-family: monospace;
}

.dri-auth-field input::placeholder {
    color: #bbb;
    font-family: inherit;
    font-style: italic;
}

/* Info transfert */
.dri-transfer-info {
    margin-top: 12px;
    background: #f7f9f0;
    border: 1px solid #dde8b0;
    border-radius: 10px;
    padding: 12px 16px;
    color: #555;
    font-size: .84rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.dri-transfer-info i {
    color: #6E890C;
    margin-top: 2px;
}

/* Loader de recherche */
.dri-search-loader {
    display: none;
    text-align: center;
    padding: 24px 0;
    color: #6E890C;
}

.dri-search-loader i {
    font-size: 1.5rem;
    animation: dri-spin .8s linear infinite;
}

@keyframes dri-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}


/* =============================================================================
   6. RÉSULTATS DE RECHERCHE — Blocs disponible / indisponible
   ============================================================================= */

.dri-results {
    display: none;
    margin-top: 28px;
}

.dri-results-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 24px 0;
}

/* Ligne de résultat principal */
.dri-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 22px;
    border-radius: 14px;
    margin-bottom: 6px;
}

.dri-result-row--available {
    background: #f0f9e8;
    border: 1.5px solid #a8d060;
}

.dri-result-row--unavailable {
    background: #fff5f5;
    border: 1.5px solid #f5c0c0;
}

.dri-result-row--transfer-ok {
    background: #f0f9e8;
    border: 1.5px solid #a8d060;
}

.dri-result-row--transfer-free {
    background: #fff8ec;
    border: 1.5px solid #f5c842;
}

.dri-result-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Icône statut (cercle) */
.dri-status-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.dri-status-icon--ok {
    background: #d4edba;
    color: #4a7c10;
}

.dri-status-icon--ko {
    background: #fdd;
    color: #c0392b;
}

.dri-status-icon--warn {
    background: #fef3cd;
    color: #e67e22;
}

/* Nom de domaine affiché */
.dri-domain-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: monospace;
}

.dri-domain-name .dri-ext--ok  { color: #6E890C; }
.dri-domain-name .dri-ext--ko  { color: #c0392b; }

/* Label statut sous le nom */
.dri-status-label {
    font-size: .82rem;
    font-weight: 600;
    margin-top: 2px;
}

.dri-status-label--ok   { color: #4a7c10; }
.dri-status-label--ko   { color: #c0392b; }
.dri-status-label--warn { color: #b7600a; }

/* Prix */
.dri-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #6E890C;
    white-space: nowrap;
}

.dri-price span {
    font-size: .75rem;
    color: #999;
    font-weight: 400;
}

/* Données WHOIS */
.dri-whois-data {
    margin-top: 8px;
    background: #fff;
    border: 1px solid #dde8b0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: .82rem;
    color: #555;
    font-family: monospace;
    line-height: 1.8;
}

.dri-whois-data span {
    color: #6E890C;
    font-weight: 700;
}

/* Bloc "domaine libre côté transfert" */
.dri-transfer-free-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #fef3cd;
    color: #e67e22;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.dri-transfer-free-body {
    flex: 1;
}

.dri-transfer-free-body strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #b7600a;
    margin-bottom: 6px;
}

.dri-transfer-free-body p {
    font-size: .88rem;
    color: #7a5a20;
    margin: 0 0 12px 0;
    line-height: 1.5;
}


/* =============================================================================
   7. SUGGESTIONS — Lignes d'extensions alternatives
   ============================================================================= */

.dri-suggestions-title {
    font-size: .82rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
    margin-top: 20px;
}

.dri-suggestion-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 6px;
    background: #fff;
    border: 1px solid #eee;
    transition: border-color .15s, background .15s;
}

.dri-suggestion-row:hover {
    border-color: #c8df88;
    background: #fafef2;
}

.dri-suggestion-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dri-suggestion-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dri-suggestion-dot--free {
    background: #A7CC0D;
}

.dri-suggestion-name {
    font-family: monospace;
    font-size: .98rem;
    font-weight: 600;
    color: #333;
}

.dri-suggestion-name .dri-ext--ok {
    color: #6E890C;
}

.dri-suggestion-price {
    font-size: .88rem;
    font-weight: 700;
    color: #6E890C;
    white-space: nowrap;
}


/* =============================================================================
   8. BOUTONS — Actions principales (panier, transfert, navigation)
   ============================================================================= */

.dri-btn-primary {
    background: linear-gradient(90deg, #6E890C, #A7CC0D);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: opacity .2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dri-btn-primary:hover {
    opacity: .88;
}

.dri-btn-primary--sm {
    padding: 7px 16px;
    font-size: .8rem;
    border-radius: 20px;
}

.dri-btn-secondary {
    background: #fff;
    color: #888;
    border: 1.5px solid #ddd;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

.dri-btn-secondary:hover {
    border-color: #aaa;
    color: #555;
}


/* =============================================================================
   9. TABLEAU DES EXTENSIONS — Tableau filtrable des TLD disponibles
   ============================================================================= */

.dri-ext-table-section {
    padding: 60px 0 80px 0;
}

/* Filtres par catégorie */
.dri-ext-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}

.dri-ext-filter-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: .82rem;
    color: #555;
    cursor: pointer;
    transition: all .2s;
    font-weight: 500;
}

.dri-ext-filter-btn:hover,
.dri-ext-filter-btn.active {
    background: #6E890C;
    border-color: #6E890C;
    color: #fff;
}

/* Tableau */
.dri-ext-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .07);
}

.dri-ext-table thead tr {
    background: linear-gradient(90deg, #6E890C, #A7CC0D);
    color: #fff;
}

.dri-ext-table thead th {
    padding: 16px 20px;
    font-size: .88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border: none;
}

.dri-ext-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background .15s;
}

.dri-ext-table tbody tr:last-child {
    border-bottom: none;
}

.dri-ext-table tbody tr:hover {
    background: #f7faea;
}

.dri-ext-table tbody td {
    padding: 13px 20px;
    font-size: .9rem;
    color: #333;
    vertical-align: middle;
    border: none;
}

/* Badge extension (ex: .fr) */
.dri-ext-badge {
    display: inline-block;
    background: #f0f5e0;
    color: #6E890C;
    font-weight: 700;
    font-size: .9rem;
    border-radius: 6px;
    padding: 3px 10px;
    font-family: monospace;
}

/* Prix dans le tableau */
.dri-ext-price {
    font-weight: 700;
    color: #6E890C;
    font-size: .95rem;
    white-space: nowrap;
}

.dri-ext-price span {
    font-size: .75rem;
    color: #999;
    font-weight: 400;
}

/* Ligne de catégorie (séparateur) */
.dri-ext-category {
    background: #f7f7f7;
}

.dri-ext-category td {
    font-size: .78rem !important;
    font-weight: 700 !important;
    color: #999 !important;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 10px 20px !important;
}

/* Ligne masquée (filtre actif) */
.dri-ext-row.hidden {
    display: none;
}

@media (max-width: 767px) {
    .dri-ext-table thead th:nth-child(2) { display: none; }
    .dri-ext-table tbody td:nth-child(2) { display: none; }
}


/* =============================================================================
   10. RESPONSIVE — Ajustements mobiles pour la recherche
   ============================================================================= */

@media (max-width: 575px) {
    .dri-search-card {
        padding: 24px 16px;
        border-radius: 14px;
    }
    .dri-search-bar {
        flex-direction: column;
        border-radius: 14px;
    }
    .dri-search-bar input {
        padding: 14px 18px;
    }
    .dri-search-bar button {
        border-radius: 0 0 14px 14px;
        padding: 14px;
    }
    .dri-search-tab {
        padding: 10px 16px;
        font-size: .82rem;
    }
    .dri-result-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
