/* ==================================================
   PAGE NOUS CONTACTER — VARIABLES ET BASE
================================================== */
.contact-page {
    --contact-blue: #0a4e9b;
    --contact-dark-blue: #03193d;
    --contact-yellow: #ffd200;
    --contact-green: #20a862;
    --contact-text: #334155;
    --contact-muted: #64748b;
    --contact-light: #f4f8fc;
    color: var(--contact-text);
    overflow: hidden;
}

.contact-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

.contact-section {
    padding: 85px 0;
}

.contact-section-heading {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
}

.contact-section-heading span,
.contact-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--contact-blue);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
}

.contact-section-heading h2,
.contact-form-intro h2,
.contact-quick h2 {
    color: var(--contact-dark-blue);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.2;
}

/* Lien actif de la page dans le menu principal */
.menu > ul > li > a.contact-menu-active {
    color: #0a4e9b;
}

.menu > ul > li > a.contact-menu-active::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    margin-top: 6px;
    border-radius: 5px;
    background: #ffd200;
}

/* Le header général utilise un div ; cette règle harmonise le bouton mobile. */
.hamburger {
    border: 0;
    background: transparent;
}

/* ==================================================
   BLOC 3 — BANNIÈRE
================================================== */
.contact-hero {
    position: relative;
    display: flex;
    min-height: 520px;
    align-items: center;
    background:
        linear-gradient(105deg, rgba(3, 25, 61, 0.97) 0%, rgba(10, 78, 155, 0.91) 58%, rgba(10, 78, 155, 0.76) 100%),
        url("../images/iet-presentation.jpg") center / cover no-repeat;
}

.contact-hero::after {
    position: absolute;
    right: -100px;
    bottom: -180px;
    width: 440px;
    height: 440px;
    border: 65px solid rgba(255, 210, 0, 0.13);
    border-radius: 50%;
    content: "";
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.contact-eyebrow {
    margin-bottom: 13px;
    color: var(--contact-yellow);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 3px;
}

.contact-hero h1 {
    max-width: 850px;
    margin-bottom: 22px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1;
}

.contact-hero-content > p:not(.contact-eyebrow) {
    max-width: 790px;
    margin-bottom: 32px;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.7;
}

/* Boutons propres à la page */
.contact-btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border: 2px solid transparent;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.35px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(3, 25, 61, 0.2);
}

.contact-btn-whatsapp {
    background: var(--contact-green);
    color: #fff;
}

.contact-btn-primary {
    background: var(--contact-blue);
    color: #fff;
}

.contact-btn-light {
    border-color: rgba(255, 255, 255, 0.7);
    background: transparent;
    color: #fff;
}

.contact-btn-yellow {
    background: var(--contact-yellow);
    color: var(--contact-dark-blue);
}

/* ==================================================
   BLOC 4 — COORDONNÉES ET HORAIRES
================================================== */
.contact-details {
    background: #fff;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.contact-card {
    min-height: 235px;
    padding: 32px 25px;
    border: 1px solid #dce6f1;
    border-top: 4px solid var(--contact-blue);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(3, 25, 61, 0.08);
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
    transform: translateY(-7px);
    border-top-color: var(--contact-yellow);
}

.contact-card-icon {
    display: flex;
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e9f3ff;
    color: var(--contact-blue);
    font-size: 26px;
}

.contact-card h3 {
    margin-bottom: 12px;
    color: var(--contact-dark-blue);
    font-size: 17px;
}

.contact-card p,
.contact-card a {
    color: var(--contact-muted);
    font-size: 15px;
    line-height: 1.65;
    text-decoration: none;
}

.contact-card a:hover {
    color: var(--contact-blue);
}

.contact-hours {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.75fr;
    gap: 25px;
    margin-top: 28px;
    padding: 30px 36px;
    align-items: center;
    border-radius: 12px;
    background: var(--contact-dark-blue);
    color: #fff;
}

.contact-hours-title {
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-hours-title > i {
    color: var(--contact-yellow);
    font-size: 38px;
}

.contact-hours-title span {
    color: #8ec9ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.contact-hours-title h3 {
    margin-top: 4px;
    font-size: 20px;
}

.contact-hours-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 25px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1.45;
}

.contact-hours-item strong {
    color: var(--contact-yellow);
}

/* ==================================================
   BLOC 5 — FORMULAIRE
================================================== */
.contact-form-section {
    background: var(--contact-light);
}

.contact-form-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.5fr;
    gap: 65px;
    align-items: start;
}

.contact-form-intro {
    padding-top: 25px;
}

.contact-form-intro > p {
    margin-top: 20px;
    color: var(--contact-muted);
    font-size: 17px;
    line-height: 1.75;
}

.contact-form-note {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding: 18px;
    border-left: 4px solid var(--contact-yellow);
    background: #fff;
    color: var(--contact-muted);
    line-height: 1.55;
}

.contact-form-note i {
    margin-top: 3px;
    color: var(--contact-blue);
}

.contact-form {
    padding: 38px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(3, 25, 61, 0.1);
}

.contact-field-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.contact-field {
    margin-bottom: 22px;
}

.contact-field label {
    display: block;
    margin-bottom: 9px;
    color: var(--contact-dark-blue);
    font-size: 14px;
    font-weight: 700;
}

.contact-field label span {
    color: #dc2626;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: var(--contact-text);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field input,
.contact-field select {
    height: 50px;
}

.contact-field textarea {
    resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: var(--contact-blue);
    box-shadow: 0 0 0 4px rgba(10, 78, 155, 0.11);
}

.contact-submit {
    border: 0;
    background: var(--contact-blue);
    color: #fff;
    cursor: pointer;
}

/* ==================================================
   BLOC 6 — LOCALISATION
================================================== */
.contact-location {
    background: #fff;
}

.contact-location-layout {
    display: grid;
    grid-template-columns: 1.5fr 0.85fr;
    min-height: 390px;
    overflow: hidden;
    border: 1px solid #dce6f1;
    border-radius: 14px;
    box-shadow: 0 16px 38px rgba(3, 25, 61, 0.1);
}

.contact-map-placeholder {
    display: flex;
    min-height: 390px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 35px;
    background:
        linear-gradient(rgba(234, 243, 252, 0.9), rgba(234, 243, 252, 0.9)),
        repeating-linear-gradient(45deg, #dbeafe 0, #dbeafe 2px, transparent 2px, transparent 25px);
    color: var(--contact-blue);
    text-align: center;
}

.contact-map-placeholder i {
    font-size: 60px;
}

.contact-map-placeholder strong {
    color: var(--contact-dark-blue);
    font-size: 18px;
}

.contact-map-placeholder span {
    color: var(--contact-muted);
}

.contact-location-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 45px;
    background: #fff;
}

.contact-location-info > i {
    margin-bottom: 22px;
    color: var(--contact-yellow);
    font-size: 40px;
}

.contact-location-info h3 {
    margin-bottom: 14px;
    color: var(--contact-dark-blue);
    font-size: 24px;
    line-height: 1.35;
}

.contact-location-info p {
    margin-bottom: 28px;
    color: var(--contact-muted);
    font-size: 17px;
}

/* ==================================================
   BLOC 7 — CONTACT RAPIDE
================================================== */
.contact-quick {
    padding: 70px 0;
    background: linear-gradient(110deg, var(--contact-blue), var(--contact-dark-blue));
    color: #fff;
}

.contact-quick-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.contact-quick-content > div:first-child > span {
    display: block;
    margin-bottom: 10px;
    color: var(--contact-yellow);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.contact-quick h2 {
    color: #fff;
}

.contact-quick p {
    max-width: 760px;
    margin-top: 18px;
    color: #dcecff;
    font-size: 17px;
    line-height: 1.7;
}

.contact-quick-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 13px;
}

/* ==================================================
   RESPONSIVE — TABLETTES
================================================== */
@media (max-width: 992px) {
    .contact-section {
        padding: 65px 0;
    }

    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-hours {
        grid-template-columns: 1fr 1fr;
    }

    .contact-hours-title {
        grid-column: 1 / -1;
    }

    .contact-form-layout,
    .contact-location-layout,
    .contact-quick-content {
        grid-template-columns: 1fr;
    }

    .contact-form-layout {
        gap: 35px;
    }

    .contact-location-info {
        align-items: center;
        text-align: center;
    }

    .contact-quick-actions {
        justify-content: flex-start;
    }
}

/* ==================================================
   RESPONSIVE — SMARTPHONES
================================================== */
@media (max-width: 576px) {
    .contact-container {
        width: 90%;
    }

    .contact-section {
        padding: 50px 0;
    }

    .contact-hero {
        min-height: 500px;
        text-align: center;
    }

    .contact-hero-content > p:not(.contact-eyebrow) br {
        display: none;
    }

    .contact-btn {
        width: 100%;
        padding-right: 16px;
        padding-left: 16px;
    }

    .menu > ul > li > a.contact-menu-active::after {
        width: 45px;
        margin-right: auto;
        margin-left: auto;
    }

    .contact-cards,
    .contact-hours,
    .contact-field-row {
        grid-template-columns: 1fr;
    }

    .contact-card {
        min-height: 0;
    }

    .contact-hours {
        gap: 22px;
        padding: 28px 24px;
    }

    .contact-hours-title {
        grid-column: auto;
    }

    .contact-hours-item {
        padding-top: 18px;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        border-left: 0;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .contact-location-layout,
    .contact-map-placeholder {
        min-height: 320px;
    }

    .contact-location-info {
        padding: 35px 24px;
    }

    .contact-quick {
        padding: 55px 0;
        text-align: center;
    }

    .contact-quick-actions {
        justify-content: center;
    }
}

/* ==================================================
   MESSAGES FORMULAIRE CONTACT
================================================== */

.contact-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 16px 18px;
    margin-bottom: 20px;

    border-radius: 10px;

    font-size: 15px;
    line-height: 1.5;
}

.contact-alert i {
    font-size: 22px;
    margin-top: 2px;
}

.contact-alert strong {
    display: block;
    margin-bottom: 3px;
}

.contact-alert p {
    margin: 0;
}


/* MESSAGE DE SUCCÈS */

.contact-alert-success {
    background: #eaf8ef;
    border: 1px solid #a8dfb9;
    color: #176b36;
}


/* MESSAGE D'ERREUR */

.contact-alert-error {
    background: #fff0f0;
    border: 1px solid #efb0b0;
    color: #a32626;
}
#formulaire-contact {
    scroll-margin-top: 100px;
}