/* =========================================================
   MDES — contact.css
   Page : Contact / Infos pratiques
   Version : V0.1
   ========================================================= */

/* ---------------------------------------------------------
   Variables locales
--------------------------------------------------------- */

.mdes-hub-page--contact {
    --mdes-contact-red: #d40000;
    --mdes-contact-red-dark: #a80000;
    --mdes-contact-yellow: #f4c400;
    --mdes-contact-black: #101010;
    --mdes-contact-text: #151515;
    --mdes-contact-muted: rgba(21, 21, 21, 0.72);
    --mdes-contact-light: #fff8ea;
    --mdes-contact-white: #ffffff;
    --mdes-contact-border: rgba(21, 21, 21, 0.12);
    --mdes-contact-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

/* ---------------------------------------------------------
   Page contact — ajustements généraux
--------------------------------------------------------- */

.mdes-hub-page--contact .mdes-hub-hero {
    position: relative;
}

.mdes-hub-page--contact .mdes-hub-hero__content {
    max-width: 980px;
}

.mdes-hub-page--contact .mdes-hub-intro {
    max-width: 860px;
}

.mdes-hub-page--contact .mdes-hub-section--black .mdes-hub-heading p {
    color: rgba(255, 255, 255, 0.78);
}

.mdes-hub-page--contact .mdes-hub-section--cream .mdes-hub-heading p,
.mdes-hub-page--contact .mdes-hub-section--cream .mdes-hub-split__content p {
    color: var(--mdes-contact-muted);
}

/* ---------------------------------------------------------
   Bloc contenu du formulaire
--------------------------------------------------------- */

.mdes-contact-form-content {
    width: 100%;
    max-width: 100%;
    margin-top: 1.4rem;
}

.mdes-contact-form-content > *:first-child {
    margin-top: 0;
}

.mdes-contact-form-content > *:last-child {
    margin-bottom: 0;
}

.mdes-contact-form-content p {
    margin: 0 0 1rem;
    line-height: 1.7;
}

.mdes-contact-form-content code {
    display: inline-block;
    max-width: 100%;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.92rem;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
}

/* ---------------------------------------------------------
   Carte formulaire
--------------------------------------------------------- */

.mdes-hub-page--contact .mdes-hub-card--highlight .mdes-contact-form-content {
    margin-top: 1.8rem;
}

.mdes-hub-page--contact .mdes-hub-section--black .mdes-hub-card--highlight {
    overflow: hidden;
}

.mdes-hub-page--contact .mdes-hub-section--black .mdes-hub-card--highlight h3 {
    margin-bottom: 0.85rem;
}

.mdes-hub-page--contact .mdes-hub-section--black .mdes-hub-card--highlight p {
    max-width: 900px;
}

/* ---------------------------------------------------------
   Cartes infos pratiques
--------------------------------------------------------- */

.mdes-hub-page--contact .mdes-hub-card h3 {
    line-height: 1.25;
}

.mdes-hub-page--contact .mdes-hub-card p {
    line-height: 1.65;
}

.mdes-hub-page--contact .mdes-hub-card a {
    word-break: break-word;
}

/* ---------------------------------------------------------
   Liens de contact éventuels
--------------------------------------------------------- */

.mdes-contact-link {
    color: var(--mdes-contact-red);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.mdes-contact-link:hover,
.mdes-contact-link:focus {
    color: var(--mdes-contact-red-dark);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* ---------------------------------------------------------
   Liste d’informations pratiques éventuelle
--------------------------------------------------------- */

.mdes-contact-info-list {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.mdes-contact-info-list__item {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--mdes-contact-border);
    border-radius: 18px;
    background: var(--mdes-contact-white);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.mdes-contact-info-list__label {
    color: var(--mdes-contact-red);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mdes-contact-info-list__value {
    color: var(--mdes-contact-text);
    font-size: 1rem;
    line-height: 1.55;
}

/* ---------------------------------------------------------
   Shortcodes / contenus WordPress dans la page contact
--------------------------------------------------------- */

.mdes-hub-page--contact .mdes-contact-form-content .wp-block-group,
.mdes-hub-page--contact .mdes-contact-form-content .wp-block-columns,
.mdes-hub-page--contact .mdes-contact-form-content .wp-block-column {
    max-width: 100%;
}

.mdes-hub-page--contact .mdes-contact-form-content .wp-block-separator {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin: 2rem 0;
}

.mdes-hub-page--contact .mdes-contact-form-content .wp-block-heading {
    color: inherit;
    margin-top: 0;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 980px) {
    .mdes-hub-page--contact .mdes-hub-hero__content {
        max-width: 100%;
    }

    .mdes-hub-page--contact .mdes-hub-card--highlight[style*="grid-column"] {
        grid-column: auto !important;
    }
}

@media (max-width: 720px) {
    .mdes-hub-page--contact .mdes-hub-title {
        font-size: clamp(2.1rem, 11vw, 3.1rem);
    }

    .mdes-hub-page--contact .mdes-hub-intro {
        font-size: 1rem;
    }

    .mdes-contact-form-content {
        margin-top: 1.1rem;
    }

    .mdes-contact-info-list__item {
        padding: 0.9rem;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .mdes-hub-page--contact .mdes-hub-actions {
        width: 100%;
    }

    .mdes-hub-page--contact .mdes-hub-actions .mdes-hub-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .mdes-contact-form-content code {
        display: block;
        font-size: 0.82rem;
    }
}