/* ==========================================================
   NGI — PAGE DÉPANNAGE
   Styles spécifiques à depannage.html

   Les styles communs restent dans css/core :
   - navigation
   - hero
   - boutons
   - cartes génériques
   - tableaux génériques
   - formulaire de contact
   - footer
   ========================================================== */


/* ==================================================
   1. DOMAINES D'INTERVENTION
   ================================================== */

.domaines-advantages {
    width: min(1200px, 95%);

    margin: 30px auto 0;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;

    align-items: stretch;
}

.domaines-advantages .advantage {
    width: auto;

    max-width: none;

    min-height: 190px;

    height: 100%;

    display: flex;

    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;
}

.domaines-advantages .advantage h3 {
    margin-top: 0;

    margin-bottom: 12px;
}

.domaines-advantages .advantage p {
    margin-bottom: 0;
}


/* ==================================================
   2. PAGE PILIER DÉPANNAGE
   ================================================== */

.pillar-services-section {
    width: 100%;

    padding: 46px 0 10px;
}

.pillar-services-section > .section-title {
    width: min(1100px, 92%);

    margin: 0 auto 30px;
}

.pillar-grid {
    width: min(1200px, 95%);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.pillar-card {
    scroll-margin-top: 145px;

    padding: 28px;

    background: rgba(8, 22, 52, .58);

    border: 1px solid rgba(0, 153, 255, .32);

    border-radius: 18px;

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .16),
        inset 0 0 18px rgba(0, 153, 255, .025);

    transition:
        background .3s ease,
        border-color .3s ease,
        box-shadow .3s ease,
        transform .3s ease;
}

.pillar-card:hover {
    transform: translateY(-2px);

    background: rgba(8, 22, 52, .66);

    border-color: rgba(0, 190, 255, .58);

    box-shadow:
        0 12px 34px rgba(0, 0, 0, .20),
        0 0 24px rgba(0, 153, 255, .09);
}

.pillar-icon {
    margin-bottom: 8px;

    font-size: 1.8rem;
}

.pillar-card h2 {
    margin: 0 0 12px;

    color: #35b9ff;

    font-size: 1.35rem;
}

.pillar-card p {
    margin: 0 0 14px;

    line-height: 1.65;
}

.pillar-note {
    color: var(--text-muted);

    font-size: .9rem;
}

.pillar-link {
    display: inline-block;

    margin-top: 4px;

    color: #40c0ff;

    font-weight: 700;

    text-decoration: none;
}

.pillar-link:hover {
    text-decoration: underline;
}


/* ==================================================
   3. ZONE D'INTERVENTION
   ================================================== */

.zone-notice {
    width: min(1120px, 92%);

    margin: 28px auto 0;

    padding: 20px 26px;

    background: rgba(8, 22, 52, .58);

    border: 1px solid rgba(0, 153, 255, .32);

    border-radius: 14px;

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .16),
        inset 0 0 18px rgba(0, 153, 255, .025);
}

.zone-notice p {
    margin: 0;

    line-height: 1.7;
}

.zone-notice strong {
    display: inline-block;

    margin-right: 6px;
}


/* ==================================================
   4. RYTHME DES GRANDES SECTIONS
   ================================================== */

#zone {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 44px 20px 0;
}

.tarifs-section,
.why-section {
    width: 100%;

    margin: 0;

    padding: 44px 0 0;
}

#zone > .section-title,
.tarifs-section > .section-title,
.why-section > .section-title {
    margin-top: 0;

    margin-bottom: 30px;
}

#zone .areas,
.tarifs-section > .advantages,
.why-section .why-advantages {
    margin-top: 0;
}

.tarifs-section > .advantages,
.why-section .why-advantages {
    width: min(1200px, 95%);

    margin-right: auto;
    margin-left: auto;
}

.tarifs-section .tarifs-table-container {
    margin-top: 30px;

    margin-bottom: 0;
}


/* ==================================================
   5. FAQ DÉPANNAGE
   ================================================== */

.faq-section {
    width: 100%;

    padding: 46px 0 18px;
}

.faq-section > .section-title {
    width: min(1100px, 92%);

    margin: 0 auto 28px;
}

.faq-list {
    width: min(1100px, 92%);

    margin: 0 auto;

    display: grid;

    gap: 12px;
}

.faq-item {
    overflow: hidden;

    background: rgba(8, 22, 52, .58);

    border: 1px solid rgba(0, 153, 255, .30);

    border-radius: 14px;

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    transition:
        background .3s ease,
        border-color .3s ease;
}

.faq-item[open] {
    background: rgba(8, 22, 52, .66);

    border-color: rgba(0, 190, 255, .50);
}

.faq-item summary {
    padding: 17px 20px;

    color: #ffffff;

    cursor: pointer;

    font-weight: 700;
}

.faq-item p {
    margin: 0;

    padding: 0 20px 18px;

    color: var(--text-muted);

    line-height: 1.65;
}


/* ==================================================
   6. RESPONSIVE DÉPANNAGE
   ================================================== */

@media (max-width: 900px) {

    .domaines-advantages {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 850px) {

    .pillar-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 700px) {

    #zone {
        padding: 34px 12px 0;
    }

    .tarifs-section,
    .why-section {
        padding-top: 34px;
    }

    #zone > .section-title,
    .tarifs-section > .section-title,
    .why-section > .section-title {
        margin-bottom: 24px;
    }

}

@media (max-width: 600px) {

    .domaines-advantages {
        width: calc(100% - 20px);

        grid-template-columns: 1fr;
    }

    .domaines-advantages .advantage {
        min-height: auto;
    }

    .pillar-services-section,
    .faq-section {
        padding-top: 34px;
    }

    .pillar-card {
        padding: 22px 18px;
    }

    .zone-notice {
        width: calc(100% - 20px);

        padding: 18px;
    }

}

/* ==================================================
   POURQUOI NGI — GRILLE ÉQUILIBRÉE
   6 cartes = 3 colonnes x 2 lignes
   ================================================== */

.why-section .why-advantages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.why-section .why-advantages .advantage {
    width: auto;
    max-width: none;
    height: 100%;
}

@media (max-width: 900px) {

    .why-section .why-advantages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .why-section .why-advantages {
        grid-template-columns: 1fr;
    }

}

/* ==================================================
   TARIFS — PRIX PLUS VISIBLES
   ================================================== */

.tarifs-section .price {
    margin: 10px 0 12px;

    color: #38bdf8;

    font-family: "Orbitron", sans-serif;

    font-size: clamp(1.5rem, 2.4vw, 2rem);

    font-weight: 900;

    line-height: 1.1;

    text-shadow:
        0 0 10px rgba(56, 189, 248, .35),
        0 0 18px rgba(0, 166, 255, .18);
}

.tarifs-section .price small {
    color: #cbd5e1;

    font-family: "Poppins", sans-serif;

    font-size: .72em;

    font-weight: 700;

    text-shadow: none;
}

/* ==================================================
   TABLEAU FRAIS DE DÉPLACEMENT — ALIGNEMENT / ESPACEMENT
   ================================================== */

.tarifs-section .tarifs-table-container {
    overflow: hidden;
}

.tarifs-section .tarifs-table-title {
    margin: 0;

    padding: 12px 18px;

    color: #ffffff;

    font-size: 1rem;

    font-weight: 700;

    line-height: 1.3;
}

.tarifs-section .tarifs-table {
    width: 100%;

    table-layout: fixed;
}

.tarifs-section .tarifs-table th,
.tarifs-section .tarifs-table td {
    padding: 9px 18px;

    box-sizing: border-box;
}

.tarifs-section .tarifs-table th:first-child,
.tarifs-section .tarifs-table td:first-child {
    width: 72%;
}

.tarifs-section .tarifs-table th:last-child,
.tarifs-section .tarifs-table td:last-child {
    width: 28%;

    padding-right: 20px;

    text-align: right;

    white-space: nowrap;
}

@media (max-width: 600px) {

    .tarifs-section .tarifs-table-title {
        padding: 11px 12px;
    }

    .tarifs-section .tarifs-table th,
    .tarifs-section .tarifs-table td {
        padding: 8px 10px;
    }

    .tarifs-section .tarifs-table th:first-child,
    .tarifs-section .tarifs-table td:first-child {
        width: 66%;
    }

    .tarifs-section .tarifs-table th:last-child,
    .tarifs-section .tarifs-table td:last-child {
        width: 34%;

        padding-right: 12px;
    }

}

/* ==================================================
   TARIFS — AJUSTEMENTS FINAUX VISUELS
   ================================================== */

/* Titre "Frais de déplacement" centré */
.tarifs-section .tarifs-table-title {
    text-align: center;
}

/* En-têtes du tableau centrés dans leurs colonnes */
.tarifs-section .tarifs-table thead th {
    text-align: center;
}

/* Colonne Distance centrée */
.tarifs-section .tarifs-table th:first-child,
.tarifs-section .tarifs-table td:first-child {
    text-align: center;
}

/* Colonne Tarif centrée également */
.tarifs-section .tarifs-table th:last-child,
.tarifs-section .tarifs-table td:last-child {
    text-align: center;
}

/* Les compléments de prix utilisent la même couleur cyan */
.tarifs-section .price small {
    color: #38bdf8;

    font-weight: 700;
}

/* ==================================================
   TABLEAU TARIFS — SÉPARATION DES COLONNES
   ================================================== */

/* Ligne verticale entre Distance et Tarif */
.tarifs-section .tarifs-table th:last-child,
.tarifs-section .tarifs-table td:last-child {
    border-left: 1px solid rgba(56, 189, 248, .28);
}

/* Ligne un peu plus visible dans l'en-tête */
.tarifs-section .tarifs-table thead th:last-child {
    border-left-color: rgba(56, 189, 248, .45);
}

/* ==================================================
   TITRE FRAIS DE DÉPLACEMENT — ESPACE ICÔNE
   ================================================== */

.tarifs-section .tarifs-table-title i {
    margin-right: 8px;
}

/* ==================================================
   TABLEAU DÉPLACEMENT — LARGEUR HARMONISÉE AVEC TARIFS.HTML
   ================================================== */

.tarifs-section .depannage-deplacement-table {
    width: min(900px, 100%);

    margin: 30px auto 0;
}

.tarifs-section .depannage-deplacement-table .tarifs-table {
    width: 100%;
}

@media (max-width: 600px) {

    .tarifs-section .depannage-deplacement-table {
        width: 100%;
    }

}

