/* ==========================================================================
   MADRASSA — COMPOSANTS PUBLICS PARTAGÉS
   Utiliser ces classes sur toutes les pages publiques.
   Fichier : public/assets/css/public-components.css
   ========================================================================== */

.public-main {
    position: relative;
    z-index: 1;
}

.public-container {
    width: min(100% - 2rem, 1320px);
    margin-inline: auto;
}

.public-section {
    position: relative;
    padding-block: clamp(4rem, 8vw, 7rem);
}

.public-section--soft {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, .54),
            rgba(244, 239, 221, .72)
        );
    border-block: 1px solid rgba(9, 59, 43, .07);
}

.public-section-heading {
    max-width: 800px;
    margin: 0 auto clamp(2rem, 5vw, 3.5rem);
    text-align: center;
}

.public-section-heading--left {
    max-width: 920px;
    margin-inline: 0;
    text-align: left;
}

.public-section-kicker,
.public-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .85rem;
    color: var(--public-gold-700);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 12px;
}

.public-section-title,
.public-page-hero__title {
    margin: 0;
    color: var(--public-green-950);
    font-family: "Outfit", sans-serif;
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.035em;
}

.public-section-subtitle {
    max-width: 760px;
    margin: 1rem auto 0;
    color: var(--public-text-soft);
    font-size: 1.05rem;
    line-height: 1.8;
}

.public-section-heading--left .public-section-subtitle {
    margin-inline: 0;
}

/* HERO COMMUN */
.public-page-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(
            90deg,
            rgba(6,47,34,.96),
            rgba(6,47,34,.78) 48%,
            rgba(6,47,34,.22)
        );
    border-bottom: 1px solid rgba(168,108,12,.24);
}

.public-page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 15%, rgba(214,164,59,.18), transparent 22rem),
        linear-gradient(180deg, transparent, rgba(3,31,23,.28));
}

.public-page-hero__content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    padding-block: clamp(4rem, 8vw, 7rem);
}

.public-page-hero .public-eyebrow {
    color: var(--public-gold-300);
}

.public-page-hero__title {
    color: #fffdf7 !important;
}

.public-page-hero__text {
    max-width: 700px;
    margin-top: 1.25rem;
    color: rgba(255,253,247,.82) !important;
    font-size: 1.08rem;
    line-height: 1.8;
}

.public-page-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.25rem;
    color: rgba(255,253,247,.64) !important;
    font-size: .86rem;
}

/* SHELL DE CONTENU */
.public-content-shell {
    padding: clamp(1.4rem, 4vw, 3rem);
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.96),
            rgba(249,245,233,.92)
        );
    border: 1px solid var(--public-border);
    border-radius: var(--public-radius-lg);
    box-shadow: var(--public-shadow-sm);
}

.public-prose {
    max-width: 980px;
}

.public-prose p,
.public-prose li {
    color: #4f6259;
    font-size: 1.02rem;
    line-height: 1.9;
}

.public-prose p:last-child {
    margin-bottom: 0;
}

/* GRILLES */
.public-grid {
    display: grid;
    gap: 1.5rem;
}

.public-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* CARDS */
.public-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    padding: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--public-text);
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.98),
            rgba(249,245,233,.96)
        );
    border: 1px solid rgba(168,108,12,.18);
    border-radius: 22px;
    box-shadow: 0 14px 38px rgba(47,63,49,.09);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.public-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.4rem;
    right: 1.4rem;
    height: 3px;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--public-gold-500),
            transparent
        );
    opacity: .72;
}

.public-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168,108,12,.30);
    box-shadow: 0 24px 58px rgba(47,63,49,.14);
}

.public-card--feature {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.public-card--accent {
    background:
        radial-gradient(circle at top right, rgba(214,164,59,.15), transparent 16rem),
        linear-gradient(145deg, #fffdf7, #f5edd8);
}

.public-card__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    color: var(--public-gold-700);
    background: rgba(214,164,59,.13);
    border: 1px solid rgba(168,108,12,.20);
    border-radius: 17px;
    font-size: 1.2rem;
}

.public-card__title {
    margin: 0 0 .65rem;
    color: #ffffff;
    font-family: "Outfit", sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.15;
}

.public-card__text {
    margin: 0;
    color: #586a62;
    font-size: .98rem;
    line-height: 1.75;
}

/* SPLIT */
.public-split {
    display: grid;
    grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

/* DIVIDER */
.public-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-block: 2.4rem;
    color: var(--public-gold-700);
}

.public-divider::before,
.public-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(168,108,12,.42)
        );
}

.public-divider::after {
    background:
        linear-gradient(
            90deg,
            rgba(168,108,12,.42),
            transparent
        );
}

.public-divider__symbol {
    font-size: 1rem;
}

/* NOTICE */
.public-notice {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: 1rem 1.1rem;
    border-radius: 15px;
}

.public-notice > i {
    margin-top: .15rem;
    font-size: 1.1rem;
}

.public-notice strong {
    display: block;
    margin-bottom: .2rem;
}

.public-notice--success {
    color: #245d3d;
    background: rgba(44,122,75,.09);
    border: 1px solid rgba(44,122,75,.20);
}

/* CONTACT */
.public-contact-card {
    padding: 0;
}

.public-contact-list {
    display: grid;
}

.public-contact-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: .9rem;
    align-items: start;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--public-border);
}

.public-contact-item:last-child {
    border-bottom: 0;
}

.public-contact-item__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--public-gold-700);
    background: rgba(214,164,59,.12);
    border-radius: 13px;
}

.public-contact-item__label {
    display: block;
    margin-bottom: .2rem;
    color: var(--public-text-faint);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.public-contact-item strong,
.public-contact-item a {
    color: var(--public-green-950);
    font-weight: 750;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

/* CTA */
.public-cta {
    max-width: 980px;
    margin-inline: auto;
    padding: clamp(2rem, 5vw, 4rem);
    text-align: center;
    background:
        radial-gradient(circle at top center, rgba(214,164,59,.16), transparent 18rem),
        linear-gradient(145deg, #fffdf7, #f4ecd6);
    border: 1px solid rgba(168,108,12,.20);
    border-radius: 30px;
    box-shadow: var(--public-shadow);
}

/* BUTTONS */
.public-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 50px;
    padding: .75rem 1.25rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
}

.public-btn--primary {
    color: #fffdf7 !important;
    background:
        linear-gradient(
            135deg,
            var(--public-green-700),
            var(--public-green-950)
        );
    border: 1px solid rgba(214,164,59,.44);
    box-shadow: 0 12px 28px rgba(6,47,34,.20);
}

.public-btn--primary:hover {
    color: #fff !important;
    transform: translateY(-2px);
}

/* RTL */
.rtl-page .public-section-heading--left {
    text-align: right;
}

.rtl-page .public-section-heading--left .public-section-subtitle {
    margin-right: 0;
}

.rtl-page .public-card--feature,
.rtl-page .public-contact-item {
    direction: rtl;
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
    .public-grid--3,
    .public-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .public-container {
        width: min(100% - 1.4rem, 1320px);
    }

    .public-section {
        padding-block: 3.5rem;
    }

    .public-page-hero {
        min-height: 360px;
    }

    .public-grid--2,
    .public-grid--3,
    .public-grid--4 {
        grid-template-columns: 1fr;
    }

    .public-card--feature {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .public-card__icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 575.98px) {
    .public-content-shell,
    .public-card,
    .public-cta {
        border-radius: 18px;
    }

    .public-page-hero__content {
        padding-block: 3.5rem;
    }

    .public-page-hero__title {
        font-size: 2.45rem;
    }

    .public-card--feature {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   BOUTONS PASTEL
   Thème ivoire / or / vert
========================================================= */

.btn-pastel {
    --btn-bg: #f4f1e8;
    --btn-border: #e5dfd0;
    --btn-color: #4f514b;
    --btn-hover: #ece7da;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;

    padding: .55rem 1rem;

    color: var(--btn-color);
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);

    border-radius: .6rem;

    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;

    box-shadow: 0 2px 6px rgba(30, 40, 35, .035);

    transition:
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.btn-pastel:hover,
.btn-pastel:focus {
    color: var(--btn-color);
    background: var(--btn-hover);
    border-color: var(--btn-border);

    box-shadow: 0 4px 12px rgba(30, 40, 35, .07);
}

.btn-pastel:active {
    transform: translateY(1px);
    box-shadow: none;
}


/* =========================================================
   VERT SAUGE
========================================================= */

.btn-pastel-green {
    --btn-bg: #e7efe9;
    --btn-border: #cfddd2;
    --btn-color: #496453;
    --btn-hover: #dce8df;
}


/* =========================================================
   OR / CHAMPAGNE
========================================================= */

.btn-pastel-gold {
    --btn-bg: #f5eddc;
    --btn-border: #e7d7b5;
    --btn-color: #806b3f;
    --btn-hover: #eee2c9;
}


/* =========================================================
   IVOIRE
========================================================= */

.btn-pastel-ivory {
    --btn-bg: #f8f5ed;
    --btn-border: #e7e0d2;
    --btn-color: #625f55;
    --btn-hover: #f0ebdf;
}


/* =========================================================
   BLEU POUDRÉ
========================================================= */

.btn-pastel-blue {
    --btn-bg: #e9eff3;
    --btn-border: #d3dfe6;
    --btn-color: #506874;
    --btn-hover: #dfe9ee;
}


/* =========================================================
   ROSE POUDRÉ
========================================================= */

.btn-pastel-rose {
    --btn-bg: #f4e9e8;
    --btn-border: #e5d2d0;
    --btn-color: #805e5b;
    --btn-hover: #eddfdd;
}


/* =========================================================
   LAVANDE
========================================================= */

.btn-pastel-purple {
    --btn-bg: #eeebf3;
    --btn-border: #ddd6e6;
    --btn-color: #675d78;
    --btn-hover: #e5e0ec;
}


/* =========================================================
   PÊCHE
========================================================= */

.btn-pastel-orange {
    --btn-bg: #f6ede4;
    --btn-border: #ead8c7;
    --btn-color: #80654f;
    --btn-hover: #f0e3d6;
}


/* =========================================================
   ROUGE DOUX / ACTION SENSIBLE
========================================================= */

.btn-pastel-red {
    --btn-bg: #f5e8e8;
    --btn-border: #e8d0d0;
    --btn-color: #865c5c;
    --btn-hover: #eedddd;
}


/* =========================================================
   GRIS
========================================================= */

.btn-pastel-gray {
    --btn-bg: #efefec;
    --btn-border: #deded8;
    --btn-color: #62645f;
    --btn-hover: #e6e6e1;
}


/* =========================================================
   PETIT FORMAT
========================================================= */

.btn-pastel-sm {
    padding: .4rem .72rem;
    border-radius: .5rem;
    font-size: .82rem;
}


/* =========================================================
   ICÔNES
========================================================= */

.btn-pastel i {
    font-size: .9em;
    opacity: .78;
}
