/* ============================================================
   legal.css — Nournikah v14
   Pages : CGU, confidentialité, mentions légales, FAQ, contact
   ============================================================ */

:root {
    --legal-green:  #0A1628;
    --legal-gold:   #c9a84c;
    --legal-border: #e4e0d8;
    --legal-bg:     #fafaf8;
    --legal-radius: 10px;
    --legal-text:   #2d2d2d;
    --legal-muted:  #666;
}

/* ── Layout général ───────────────────────────────────── */

.legal-page {
    padding: 2.5rem 0 4rem;
    background: var(--legal-bg);
    min-height: 70vh;
}

.legal-page h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--legal-text);
    margin: 0 0 .4rem;
}

.legal-date {
    color: var(--legal-muted);
    font-size: .85rem;
    margin: 0 0 2rem;
}

.legal-back {
    display: inline-block;
    color: var(--legal-green);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: opacity .15s;
}
.legal-back:hover { opacity: .75; }

/* ── Titres sections ───────────────────────────────────── */

.legal-page h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--legal-green);
    margin: 2rem 0 .65rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid #d4eadc;
}

.legal-page p,
.legal-page li {
    line-height: 1.75;
    color: #444;
    font-size: .93rem;
}

.legal-page ul {
    padding-left: 1.4rem;
    margin: .5rem 0 1rem;
}
.legal-page li { margin-bottom: .3rem; }

.legal-page a {
    color: var(--legal-green);
    font-weight: 500;
}
.legal-page a:hover { text-decoration: underline; }

/* ============================================================
   PAGE CONTACT
   ============================================================ */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    margin-top: 1.5rem;
    align-items: start;
}

@media (max-width: 720px) {
    .contact-layout { grid-template-columns: 1fr; }
}

/* Formulaire */
.contact-form-wrap {
    background: #fff;
    border: 1px solid var(--legal-border);
    border-radius: var(--legal-radius);
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.contact-label {
    font-size: .88rem;
    font-weight: 600;
    color: var(--legal-text);
}
.contact-label span { color: var(--legal-green); }

/* Info cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.contact-info-card {
    background: #fff;
    border: 1px solid var(--legal-border);
    border-radius: var(--legal-radius);
    padding: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.contact-info-card__icon {
    font-size: 1.5rem;
    margin-bottom: .4rem;
}

.contact-info-card h3 {
    font-size: .92rem;
    font-weight: 700;
    margin: 0 0 .25rem;
    color: var(--legal-green);
}

.contact-info-card p {
    font-size: .83rem;
    color: #555;
    margin: 0 0 .2rem;
    line-height: 1.5;
}

.contact-info-card__note {
    font-size: .75rem !important;
    color: var(--legal-muted) !important;
}

.contact-info-card--islamic {
    background: linear-gradient(135deg, #f5f0e8, #fdf9f0);
    border-color: #d4c5a0;
    font-style: italic;
    text-align: center;
}

.contact-info-card--islamic p {
    color: #7a6a4a;
    line-height: 1.6;
    font-size: .85rem !important;
}

.contact-info-card--islamic small {
    font-size: .78rem;
    color: #a08a5a;
}

/* ============================================================
   PAGE FAQ
   ============================================================ */

.faq-search-wrap {
    margin: 1.5rem 0 2rem;
}

.faq-search {
    max-width: 560px;
    font-size: .95rem;
    padding-left: .8rem;
}

/* Sections */
.faq-section {
    margin-bottom: 2rem;
}

.faq-section__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--legal-green);
    margin: 0 0 .75rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid #d4eadc;
}

/* Items accordéon */
.faq-item {
    border: 1px solid var(--legal-border);
    border-radius: 8px;
    margin-bottom: .5rem;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .15s;
}

.faq-item[open] {
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.faq-item__question {
    padding: .9rem 1.1rem;
    cursor: pointer;
    font-size: .92rem;
    font-weight: 600;
    color: var(--legal-text);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    user-select: none;
    transition: background .15s;
}
.faq-item__question::-webkit-details-marker { display: none; }

.faq-item__question::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--legal-green);
    flex-shrink: 0;
    transition: transform .2s;
}
.faq-item[open] > .faq-item__question::after {
    transform: rotate(45deg);
}

.faq-item:hover > .faq-item__question { background: #f8f7f4; }
.faq-item[open] > .faq-item__question { background: #E8EEF5; color: var(--legal-green); }

.faq-item__answer {
    padding: .25rem 1.1rem 1rem;
    font-size: .89rem;
    color: #555;
    line-height: 1.7;
    border-top: 1px solid #eee;
}
.faq-item__answer p { margin: .5rem 0 0; }
.faq-item__answer a { color: var(--legal-green); font-weight: 500; }
.faq-item__answer strong { color: var(--legal-text); }

/* CTA bas de FAQ */
.faq-contact-cta {
    margin-top: 2.5rem;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #E8EEF5, #fafaf8);
    border: 1px solid #B8C8DC;
    border-radius: var(--legal-radius);
}
.faq-contact-cta p {
    font-size: .95rem;
    color: var(--legal-muted);
    margin: 0 0 1rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 480px) {
    .legal-page { padding: 1.5rem 0 3rem; }
    .contact-form-wrap { padding: 1.25rem; }
    .faq-item__question { font-size: .85rem; }
}

/* ============================================================
   COMMENT ÇA MARCHE
   ============================================================ */

.hiw-hero {
    text-align: center;
    padding: 2rem 0 2.5rem;
}
.hiw-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin: 0 0 .6rem; color: var(--legal-green); }
.hiw-hero__sub { color: var(--legal-muted); font-size: 1.05rem; margin: 0; }

.hiw-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 3rem;
}
@media (max-width: 640px) { .hiw-steps { grid-template-columns: 1fr; } }

.hiw-step {
    background: #fff;
    border: 1px solid var(--legal-border);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.hiw-step--accent { background: linear-gradient(135deg, #E8EEF5, #fafaf8); border-color: #B8C8DC; }

.hiw-step__num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--legal-border);
    line-height: 1;
    position: absolute;
    top: 1rem; right: 1.25rem;
}
.hiw-step__icon { font-size: 2rem; margin-bottom: .75rem; display: block; }
.hiw-step__title { font-size: 1.15rem; font-weight: 700; color: var(--legal-green); margin: 0 0 .6rem; }
.hiw-step__text { font-size: .9rem; color: #555; line-height: 1.7; margin: 0 0 1rem; }
.hiw-step__cta { color: var(--legal-green); font-weight: 600; font-size: .88rem; text-decoration: none; }
.hiw-step__cta:hover { text-decoration: underline; }

/* Bloc Wali */
.hiw-wali-block {
    display: flex; align-items: flex-start; gap: 2rem;
    background: linear-gradient(135deg, #0A1628 0%, #1E3A5F 100%);
    color: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(27,67,50,0.3);
}
.hiw-wali-block__icon { font-size: 3.5rem; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.hiw-wali-block h2 { font-size: 1.4rem; font-weight: 700; margin: 0 0 .8rem; color: #fff; letter-spacing: -.01em; }
.hiw-wali-block p { font-size: .95rem; margin: 0 0 1.5rem; color: rgba(255,255,255,0.92); line-height: 1.75; }
.hiw-wali-block strong { color: #fff; font-weight: 700; }
@media (max-width: 560px) { .hiw-wali-block { flex-direction: column; gap: 1rem; padding: 1.5rem; } }

/* Valeurs */
.hiw-values { margin-bottom: 3rem; }
.hiw-values__title { font-size: 1.3rem; font-weight: 700; text-align: center; margin-bottom: 1.5rem; }
.hiw-values__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.hiw-value {
    background: #fff;
    border: 1px solid var(--legal-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.hiw-value__icon { font-size: 2rem; display: block; margin-bottom: .6rem; }
.hiw-value h3 { font-size: .95rem; font-weight: 700; color: var(--legal-green); margin: 0 0 .4rem; }
.hiw-value p { font-size: .83rem; color: #666; margin: 0; line-height: 1.6; }

/* CTA final */
.hiw-cta-block {
    text-align: center;
    background: var(--legal-bg);
    border: 1px solid var(--legal-border);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
}
.hiw-cta-block h2 { font-size: 1.4rem; font-weight: 700; margin: 0 0 .4rem; }
.hiw-cta-block p { color: var(--legal-muted); margin: 0 0 1.5rem; font-size: .95rem; }
.hiw-cta-block__btns { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   TARIFS
   ============================================================ */

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0 3rem;
    align-items: start;
}

.pricing-plan {
    background: #fff;
    border: 2px solid var(--legal-border);
    border-radius: 14px;
    padding: 1.75rem;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .2s;
}
.pricing-plan:hover { transform: translateY(-3px); }
.pricing-plan--featured { border-color: var(--legal-green); box-shadow: 0 0 0 4px rgba(26,92,58,.08); }
.pricing-plan--gold     { border-color: var(--legal-gold);  box-shadow: 0 0 0 4px rgba(201,168,76,.08); }

.pricing-plan__badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--legal-green); color: #fff;
    font-size: .72rem; font-weight: 700;
    padding: .2rem .8rem; border-radius: 99px; white-space: nowrap;
}
.pricing-plan__badge--gold { background: var(--legal-gold); }

.pricing-plan__header { text-align: center; margin-bottom: 1.25rem; }
.pricing-plan__name { font-size: 1.05rem; font-weight: 700; margin: 0 0 .5rem; }
.pricing-plan__price { display: flex; align-items: baseline; justify-content: center; gap: .3rem; }
.pricing-plan__amount { font-size: 1.8rem; font-weight: 800; color: var(--legal-green); }
.pricing-plan--gold .pricing-plan__amount { color: var(--legal-gold); }
.pricing-plan__currency { font-size: .82rem; color: var(--legal-muted); }
.pricing-plan__desc { font-size: .8rem; color: var(--legal-muted); margin: .3rem 0 0; }

.pricing-plan__features {
    list-style: none; padding: 0; margin: 0 0 1.5rem;
    display: flex; flex-direction: column; gap: .4rem;
}
.pricing-plan__features li { font-size: .85rem; }
.pricing-plan__features li.nok { color: var(--legal-muted); }

/* Moyens de paiement */
.pricing-payment-methods {
    text-align: center;
    margin-bottom: 2.5rem;
}
.pricing-payment-methods h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }

.pricing-methods-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem;
    margin-bottom: 1rem;
}
.pricing-method {
    display: flex; align-items: center; gap: .4rem;
    background: #fff;
    border: 1px solid var(--legal-border);
    border-radius: 8px;
    padding: .5rem .9rem;
    font-size: .88rem; font-weight: 600;
}
.pricing-method__icon { font-size: 1.1rem; }

.pricing-payment-note { font-size: .8rem; color: var(--legal-muted); }

/* Bouton gold */
.nournikah-btn--gold {
    background: var(--legal-gold);
    color: #fff;
    border: none;
}
.nournikah-btn--gold:hover { opacity: .88; }
