/* ===== file: /assets/css/contact.css =====
   Page: /pages/contact.html

   ✅ Design premium / haut de gamme
   ✅ Sans toucher au style interne du navbar
   ✅ Formulaire élégant et bien centré
   ✅ Bouton submit centré
   ✅ WhatsApp identique à about.html
   ✅ Bug overflow corrigé
   ✅ Mobile conservé
   ✅ Footer premium
   ✅ Country selector + drapeaux + indicatif
   ✅ Desktop dropdown au-dessus du footer
   ✅ Desktop USA / UK affichage complet corrigé
==================================================== */

/* =========================
   RESET LOCAL
========================= */
.contact-page,
.contact-page *,
.contact-page *::before,
.contact-page *::after {
    box-sizing: border-box;
}

.contact-page img,
.contact-page svg {
    max-width: 100%;
    display: block;
}

/* =========================
   TOKENS PAGE CONTACT
========================= */
.contact-page {
    --contact-text: #0f172a;
    --contact-muted: #475569;
    --contact-line: rgba(15, 23, 42, 0.12);

    --contact-surface: rgba(255, 255, 255, 0.74);
    --contact-surface-strong: rgba(255, 255, 255, 0.88);
    --contact-card: rgba(248, 250, 252, 0.92);

    --contact-primary: #0f766e;
    --contact-primary-2: #14b8a6;
    --contact-accent: #22c55e;

    --contact-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.10);
    --contact-shadow-card: 0 35px 90px rgba(15, 23, 42, 0.18);
    --contact-shadow-footer: 0 -10px 40px rgba(15, 23, 42, 0.06);

    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--contact-text);
    background:
        radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.95), transparent 28%),
        radial-gradient(circle at 78% 22%, rgba(153, 246, 228, 0.42), transparent 30%),
        radial-gradient(circle at 50% 76%, rgba(20, 184, 166, 0.16), transparent 25%),
        linear-gradient(135deg, #f0fdfa 0%, #e6f7f4 34%, #edf6f4 68%, #dff4f0 100%);
    overflow-x: hidden;
}

/* =========================
   LAYOUT GLOBAL
========================= */
.contact-page .page {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 104px 20px 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 180px);
    overflow: visible;
    overflow-x: hidden;
}

.contact-page .page::before,
.contact-page .page::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(20px);
    opacity: 0.75;
}

.contact-page .page::before {
    width: 360px;
    height: 360px;
    top: 110px;
    left: -80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95), transparent 68%);
}

.contact-page .page::after {
    width: 430px;
    height: 430px;
    right: -90px;
    bottom: 40px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.24), transparent 68%);
}

/* =========================
   HERO / TITRES
========================= */
.contact-page .pill {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #065f46 0%, #059669 55%, #10b981 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 28px rgba(5, 150, 105, 0.32), 0 0 0 3px rgba(5, 150, 105, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.20);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    overflow: hidden;
}
.contact-page .pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
    left: -80%;
    animation: contact-pill-shimmer 3.5s ease-in-out infinite;
}
@keyframes contact-pill-shimmer {
    0%   { left: -80%; }
    55%, 100% { left: 120%; }
}
.contact-page .pill .pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6ee7b7;
    flex-shrink: 0;
    animation: contact-pill-pulse 2s ease-in-out infinite;
}
@keyframes contact-pill-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.65); }
    50%       { box-shadow: 0 0 0 5px rgba(110, 231, 183, 0); }
}
.contact-page .pill .pill-check {
    flex-shrink: 0;
    display: block;
}

.contact-page h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    /* Titre réduit pour ne plus dominer toute la page sur desktop large
       (avant : jusqu'à 62px, écrasait visuellement le reste de la page). */
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #0b1b48;
    text-shadow: 0 8px 30px rgba(255, 255, 255, 0.20);
    text-decoration: underline;
    text-decoration-color: #0f766e;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

.contact-page .page>.muted {
    position: relative;
    z-index: 1;
    /* Marges du sous-titre resserrées : avant 14/30px → 8/20px pour réduire
       le vide vertical entre le titre et la section map en dessous. */
    margin: 8px auto 20px;
    max-width: 640px;
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.55;
    color: rgba(15, 23, 42, 0.78);
}

/* =========================
   FORM WRAP
========================= */
.contact-page .form-wrap {
    position: relative;
    z-index: 20;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: visible;
}

/* En-tête de réassurance au-dessus du formulaire */
.contact-page .form-intro {
    width: 100%;
    text-align: center;
    margin-bottom: 18px;
}

.contact-page .form-intro__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(15, 118, 110, .10), rgba(20, 184, 166, .16));
    color: #0f766e;
    margin-bottom: 10px;
}

.contact-page .form-intro__icon svg {
    width: 24px;
    height: 24px;
}

.contact-page .form-intro__title {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    text-decoration: underline;
    text-decoration-color: #0f766e;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

.contact-page .form-intro__sub {
    margin: 0 auto;
    max-width: 420px;
    font-size: .92rem;
    line-height: 1.6;
    color: #64748b;
}

/* Placeholder "اختر نوع الطلب" grisé tant qu'aucun type n'est choisi
   (option value="" + required → :invalid). Une fois un type sélectionné,
   la valeur est non vide → :valid → couleur normale. */
.contact-page #reqType:invalid {
    color: #94a3b8;
}

/* =========================
   FORM CARD
========================= */
.contact-page .form {
    position: relative;
    z-index: 30;
    width: min(860px, 100%);
    max-width: 100%;
    padding: 28px 26px 24px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.80), rgba(248, 250, 252, 0.90));
    border: 1px solid rgba(255, 255, 255, 0.70);
    box-shadow: var(--contact-shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    text-align: right;
    overflow: visible;
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    animation: contactCardIn 0.65s cubic-bezier(.22, .61, .36, 1) forwards;
}

.contact-page .form::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.30), transparent 45%);
    pointer-events: none;
}

.contact-page .form::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -18px;
    height: 28px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.16), transparent 68%);
    z-index: -1;
}

/* =========================
   FIELDS
========================= */
.contact-page .form .field {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 0 16px;
    text-align: right;
    overflow: visible;
}

.contact-page .form label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
}

.contact-page .form select,
.contact-page .form input[type="text"],
.contact-page .form input[type="tel"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    outline: none;
    background: rgba(255, 255, 255, 0.58);
    color: var(--contact-text);
    font: inherit;
    line-height: 1.5;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 1px 2px rgba(15, 23, 42, 0.03);
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.16s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact-page .form select::placeholder,
.contact-page .form input::placeholder {
    color: rgba(15, 23, 42, 0.48);
}

.contact-page .form select:hover,
.contact-page .form input[type="text"]:hover,
.contact-page .form input[type="tel"]:hover {
    border-color: rgba(100, 116, 139, 0.75);
    background: rgba(255, 255, 255, 0.72);
}

.contact-page .form select:focus,
.contact-page .form input[type="text"]:focus,
.contact-page .form input[type="tel"]:focus {
    border-color: rgba(20, 184, 166, 0.85);
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 0 0 4px rgba(20, 184, 166, 0.14),
        0 10px 24px rgba(20, 184, 166, 0.08);
    transform: translateY(-1px);
}

.contact-page .form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* RTL (par défaut, AR) : flèche à gauche, padding logique à droite (start). */
    padding-inline-start: 44px;
    padding-inline-end: 16px;
    background-image:
        linear-gradient(45deg, transparent 50%, #1e293b 50%),
        linear-gradient(135deg, #1e293b 50%, transparent 50%);
    background-position:
        16px calc(50% - 3px),
        24px calc(50% - 3px);
    background-size: 8px 8px, 8px 8px;
    background-repeat: no-repeat;
}

/* LTR (français) : flèche à DROITE, padding à droite — sans ça, la flèche
   reste à gauche par-dessus le texte et bloque le clic sur le select. */
[dir="ltr"] .contact-page .form select {
    padding-inline-start: 16px;
    padding-inline-end: 44px;
    background-position:
        calc(100% - 24px) calc(50% - 3px),
        calc(100% - 16px) calc(50% - 3px);
}

/* =========================
   PHONE COUNTRY SELECT
========================= */
.contact-page .phone-field {
    position: relative;
    z-index: 80;
    display: grid;
    grid-template-columns: minmax(340px, 380px) minmax(0, 1fr);
    gap: 14px;
    direction: ltr;
    align-items: stretch;
    overflow: visible;
}

.contact-page .phone-field>* {
    min-width: 0;
}

.contact-page .country-select {
    position: relative;
    min-width: 0;
    z-index: 160;
    overflow: visible;
}

.contact-page .country-trigger {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(255, 255, 255, 0.58);
    color: var(--contact-text);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 1px 2px rgba(15, 23, 42, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    font: inherit;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.16s ease;
}

.contact-page .country-trigger:hover {
    border-color: rgba(100, 116, 139, 0.75);
    background: rgba(255, 255, 255, 0.72);
}

.contact-page .country-trigger:focus-visible {
    outline: none;
    border-color: rgba(20, 184, 166, 0.85);
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 0 0 4px rgba(20, 184, 166, 0.14),
        0 10px 24px rgba(20, 184, 166, 0.08);
    transform: translateY(-1px);
}

.contact-page .country-trigger-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    width: 100%;
    flex: 1 1 auto;
}

.contact-page .country-flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.10);
    flex: 0 0 auto;
}

.contact-page .country-meta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
    flex: 1 1 auto;
    direction: ltr;
}

.contact-page .country-dial {
    font-size: 14px;
    font-weight: 900;
    color: #0f766e;
    white-space: nowrap;
    flex: 0 0 auto;
}

.contact-page .country-name {
    display: block;
    min-width: 0;
    width: 100%;
    font-size: 14px;
    font-weight: 800;
    color: #334155;
    direction: rtl;
    text-align: right;
    unicode-bidi: plaintext;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-page .country-caret {
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid #1e293b;
    flex: 0 0 auto;
    transition: transform 0.18s ease;
}

.contact-page .country-select.open .country-caret {
    transform: rotate(180deg);
}

.contact-page .country-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 9999;
    display: none;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.30);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact-page .country-select.open .country-menu {
    display: block;
}

.contact-page .country-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 0;
    background: transparent;
    border-radius: 16px;
    cursor: pointer;
    font: inherit;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.contact-page .country-option:hover {
    background: rgba(15, 118, 110, 0.08);
}

.contact-page .country-option:focus-visible {
    outline: none;
    background: rgba(15, 118, 110, 0.10);
}

.contact-page .country-option.is-active {
    background: rgba(20, 184, 166, 0.12);
}

.contact-page .country-option-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
    direction: ltr;
}

.contact-page .country-option-name {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    direction: rtl;
    text-align: right;
    unicode-bidi: plaintext;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-page .country-option-dial {
    font-size: 14px;
    font-weight: 900;
    color: #0f766e;
    white-space: nowrap;
    flex: 0 0 auto;
}

.contact-page #phone {
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
}

/* =========================
   ACTIONS / BUTTON
========================= */
.contact-page .form .actions {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-top: 8px;
}

.contact-page .form .actions .btn,
.contact-page .form .actions button,
.contact-page .form button[type="submit"] {
    min-width: 190px;
    min-height: 52px;
    max-width: 100%;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--contact-primary) 0%, var(--contact-primary-2) 100%);
    box-shadow:
        0 14px 34px rgba(15, 118, 110, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.contact-page .form .actions .btn:hover,
.contact-page .form .actions button:hover,
.contact-page .form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow:
        0 20px 38px rgba(15, 118, 110, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
    filter: saturate(1.03);
}

.contact-page .form .actions .btn:active,
.contact-page .form .actions button:active,
.contact-page .form button[type="submit"]:active {
    transform: translateY(0);
}

.contact-page .form .actions .btn:focus-visible,
.contact-page .form .actions button:focus-visible,
.contact-page .form button[type="submit"]:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(20, 184, 166, 0.18),
        0 16px 34px rgba(15, 118, 110, 0.28);
}

/* =========================
   MESSAGE / HINT
========================= */
.contact-page #formHint {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    color: var(--contact-muted);
}

/* =========================
   QUICK CONTACT STRIP
========================= */
.contact-page .contact-mini-infos {
    position: relative;
    z-index: 2;
    width: min(860px, 100%);
    max-width: 100%;
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.contact-page .contact-mini-infos .item {
    min-width: 0;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: var(--contact-shadow-soft);
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contact-page .contact-mini-infos .item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    color: #0b1b48;
}

.contact-page .contact-mini-infos .item span,
.contact-page .contact-mini-infos .item a {
    color: var(--contact-muted);
    text-decoration: none;
    word-break: break-word;
}

/* =========================
   FOOTER PREMIUM
========================= */
.contact-page .footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 26px 20px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.72));
    border-top: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--contact-shadow-footer);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.contact-page .footer::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.22), transparent);
}

.contact-page .footer .container,
.contact-page .footer .footer-container {
    width: min(1180px, 100%);
    max-width: 100%;
    margin: 0 auto;
}

.contact-page .footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 26px;
    align-items: start;
    margin-bottom: 18px;
}

.contact-page .footer-brand {
    text-align: right;
    min-width: 0;
}

.contact-page .footer-brand h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 900;
    color: #0b1b48;
}

.contact-page .footer-brand p {
    margin: 0;
    color: var(--contact-muted);
    line-height: 1.9;
    font-size: 14px;
}

.contact-page .footer-col {
    min-width: 0;
}

.contact-page .footer-col h4 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
}

.contact-page .footer-links,
.contact-page .footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.contact-page .footer a {
    color: var(--contact-muted);
    text-decoration: none;
    transition: color 0.18s ease, transform 0.18s ease;
}

.contact-page .footer a:hover {
    color: var(--contact-primary);
}

.contact-page .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--contact-muted);
    font-size: 14px;
}

.contact-page .footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-page .footer-socials a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.contact-page .footer-socials a:hover {
    transform: translateY(-2px);
    color: var(--contact-primary);
}

/* =========================
   WHATSAPP FLOATING BUTTON
========================= */
.contact-page .whatsapp-float {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    left: auto;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 9999;
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, #25d366 0 58%, rgba(255, 255, 255, 0.30) 59% 100%);
    color: #ffffff;
    text-decoration: none;
    box-shadow:
        0 18px 40px rgba(37, 211, 102, 0.28),
        0 0 0 10px rgba(37, 211, 102, 0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.contact-page .whatsapp-float:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 22px 46px rgba(37, 211, 102, 0.34),
        0 0 0 12px rgba(37, 211, 102, 0.18);
    filter: saturate(1.04);
}

.contact-page .whatsapp-float:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 5px rgba(37, 211, 102, 0.20),
        0 18px 40px rgba(37, 211, 102, 0.34);
}

.contact-page .whatsapp-float svg {
    width: 30px;
    height: 30px;
    display: block;
    flex: 0 0 auto;
}

html[lang="fr"] .contact-page .whatsapp-float {
    left: max(18px, env(safe-area-inset-left));
    right: auto;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes contactCardIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 981px) {
    .contact-page .country-trigger {
        min-height: 58px;
    }

    .contact-page .country-name,
    .contact-page .country-option-name {
        font-size: 15px;
    }
}

@media (max-width: 980px) {
    .contact-page .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .contact-page .footer-brand {
        grid-column: 1 / -1;
    }

    .contact-page .contact-mini-infos {
        grid-template-columns: 1fr;
    }

    .contact-page .phone-field {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .contact-page .form {
        width: min(780px, 100%);
    }
}

@media (max-width: 1024px) {
    .contact-page .page {
        padding-top: 92px;
        padding-bottom: 56px;
        min-height: auto;
    }

    .contact-page h1 {
        font-size: clamp(28px, 9vw, 42px);
    }

    .contact-page .page>.muted {
        margin: 12px auto 22px;
        font-size: 14px;
        line-height: 1.75;
        max-width: 95%;
    }

    .contact-page .form {
        width: min(100%, 560px);
        max-width: 100%;
        padding: 20px 16px 18px;
        border-radius: 24px;
    }

    .contact-page .form .field {
        margin-bottom: 14px;
    }

    .contact-page .form select,
    .contact-page .form input[type="text"],
    .contact-page .form input[type="tel"],
    .contact-page .country-trigger {
        min-height: 50px;
        padding-block: 12px;
        border-radius: 15px;
        font-size: 14px;
    }

    .contact-page .form .actions {
        justify-content: center;
        padding-top: 6px;
    }

    .contact-page .form .actions .btn,
    .contact-page .form .actions button,
    .contact-page .form button[type="submit"] {
        width: auto;
        min-width: 180px;
        max-width: 100%;
    }

    .contact-page .footer {
        padding: 24px 16px 18px;
    }

    .contact-page .footer-top {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-page .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-page .whatsapp-float {
        right: max(14px, env(safe-area-inset-right));
        left: auto;
        bottom: max(14px, env(safe-area-inset-bottom));
        width: 68px;
        height: 68px;
    }

    html[lang="fr"] .contact-page .whatsapp-float {
        left: max(14px, env(safe-area-inset-left));
        right: auto;
    }

    .contact-page .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 700px) {
    .contact-page .phone-field {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-page .country-menu {
        max-height: 280px;
    }
}

@media (max-width: 560px) {
    .contact-page .page {
        padding-top: 88px;
        padding-inline: 12px;
        padding-bottom: 50px;
    }

    .contact-page .pill {
        font-size: 11px;
        padding: 8px 14px 8px 10px;
        margin-bottom: 14px;
        gap: 8px;
        box-shadow: 0 6px 18px rgba(5, 150, 105, 0.28), 0 0 0 2px rgba(5, 150, 105, 0.10);
    }

    .contact-page h1 {
        font-size: 26px;
    }

    .contact-page .page>.muted {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 18px;
    }

    .contact-page .form {
        width: 100%;
        max-width: 100%;
        padding: 16px 12px 16px;
        border-radius: 22px;
    }

    .contact-page .form label {
        font-size: 13px;
        margin-bottom: 7px;
    }

    .contact-page .form .field {
        margin-bottom: 12px;
    }

    .contact-page .form select,
    .contact-page .form input[type="text"],
    .contact-page .form input[type="tel"],
    .contact-page .country-trigger {
        min-height: 48px;
        padding: 11px 13px;
        font-size: 14px;
        border-radius: 14px;
    }

    .contact-page .country-trigger {
        justify-content: space-between;
    }

    .contact-page .country-meta {
        gap: 6px;
    }

    .contact-page .country-dial,
    .contact-page .country-name,
    .contact-page .country-option-name,
    .contact-page .country-option-dial {
        font-size: 13px;
    }

    .contact-page .country-menu {
        border-radius: 18px;
        padding: 6px;
    }

    .contact-page .country-option {
        padding: 10px;
        border-radius: 14px;
    }

    .contact-page .form .actions .btn,
    .contact-page .form .actions button,
    .contact-page .form button[type="submit"] {
        min-width: 170px;
        min-height: 48px;
        font-size: 14px;
    }

    .contact-page .contact-mini-infos {
        margin-top: 18px;
        gap: 10px;
    }

    .contact-page .contact-mini-infos .item {
        padding: 14px 12px;
        border-radius: 16px;
    }

    .contact-page .footer-bottom {
        font-size: 13px;
    }

    .contact-page .footer-socials a {
        width: 38px;
        height: 38px;
    }

    .contact-page .whatsapp-float {
        right: max(12px, env(safe-area-inset-right));
        left: auto;
        bottom: max(12px, env(safe-area-inset-bottom));
        width: 64px;
        height: 64px;
    }

    html[lang="fr"] .contact-page .whatsapp-float {
        left: max(12px, env(safe-area-inset-left));
        right: auto;
    }

    .contact-page .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* =========================
   REDUCED MOTION
========================= */
@media (prefers-reduced-motion: reduce) {

    .contact-page .form,
    .contact-page .form .actions .btn,
    .contact-page .form .actions button,
    .contact-page .form button[type="submit"],
    .contact-page .country-trigger,
    .contact-page .country-caret,
    .contact-page .country-option,
    .contact-page .whatsapp-float,
    .contact-page .footer a,
    .contact-page .footer-socials a {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================
   CONTACT HEADER (centered pill + h1)
========================= */
.contact-page .contact-header {
    text-align: center;
    max-width: 680px;
    /* Marge basse réduite : avant 44px → 20px pour rapprocher le header de
       la section map et compacter l'espace vide vertical. */
    margin: 0 auto 20px;
    width: 100%;
}

/* =========================
   2-COLUMN LAYOUT
========================= */
/* Layout vertical (1 colonne) sur toutes les tailles d'écran :
   le formulaire en premier, puis le bloc "Contact direct" dessous.
   Largeur réduite à 760px pour garder une lecture confortable. */
.contact-page .contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    width: min(760px, 100%);
    margin: 0 auto;
    align-items: start;
    text-align: right;
}

/* Override form width inside layout */
.contact-page .contact-layout .form-wrap .form {
    width: 100%;
    max-width: 100%;
    margin: 0;
    animation: none;
    opacity: 1;
    transform: none;
}

/* Form column */
.contact-page .contact-form-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =========================
   REASSURANCE BADGES
========================= */
.contact-page .contact-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-page .contact-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--contact-shadow-soft);
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.contact-page .contact-badge svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    color: var(--contact-primary);
}

/* =========================
   INFO COLUMN
========================= */
.contact-page .contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.contact-page .contact-info-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Kicker pill */
.contact-page .ct-kicker {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--contact-primary);
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.10), rgba(20, 184, 166, 0.16));
    border: 1px solid rgba(15, 118, 110, 0.14);
    margin-bottom: 12px;
}

.contact-page .contact-info-title {
    font-size: clamp(20px, 2.6vw, 28px);
    font-weight: 900;
    color: #0b1b48;
    margin: 0 0 8px;
    line-height: 1.35;
    text-decoration: underline;
    text-decoration-color: #0f766e;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

.contact-page .contact-info-sub {
    color: var(--contact-muted);
    font-size: 14px;
    line-height: 1.75;
    margin: 0;
}

/* =========================
   INFO CARDS (phone, email, location)
========================= */
.contact-page .contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-page .contact-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 17px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--contact-shadow-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.contact-page .contact-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.11);
}

.contact-page .contact-info-card strong {
    display: block;
    font-size: 12px;
    color: var(--contact-muted);
    font-weight: 700;
    margin-bottom: 3px;
}

.contact-page .contact-info-card a,
.contact-page .contact-info-card > div > span {
    font-size: 15px;
    font-weight: 700;
    color: #0b1b48;
    text-decoration: none;
    word-break: break-word;
    display: block;
}

.contact-page .contact-info-card a:hover {
    color: var(--contact-primary);
}

/* Icon box */
.contact-page .cti-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.contact-page .cti-icon svg {
    width: 20px;
    height: 20px;
}

.contact-page .cti-green {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.12), rgba(16, 185, 129, 0.18));
    color: #059669;
}

.contact-page .cti-blue {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.10), rgba(20, 184, 166, 0.16));
    color: #0f766e;
}

.contact-page .cti-teal {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.10), rgba(20, 184, 166, 0.16));
    color: var(--contact-primary);
}

/* =========================
   CHANNEL BUTTONS
========================= */
.contact-page .contact-channels {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.contact-page .contact-channels-label {
    font-size: 13px;
    color: var(--contact-muted);
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.contact-page .contact-channels-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-page .ch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
    flex: 0 0 auto;
}

.contact-page .ch-btn svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.contact-page .ch-btn:hover {
    transform: translateY(-2px);
}

.contact-page .ch-whatsapp {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.28);
}

.contact-page .ch-whatsapp:hover {
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.38);
    filter: saturate(1.06);
}

.contact-page .ch-facebook {
    background: #1877f2;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(24, 119, 242, 0.28);
}

.contact-page .ch-facebook:hover {
    box-shadow: 0 14px 30px rgba(24, 119, 242, 0.38);
}

.contact-page .ch-instagram {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(221, 42, 123, 0.28);
}

.contact-page .ch-instagram:hover {
    box-shadow: 0 14px 30px rgba(221, 42, 123, 0.38);
}

.contact-page .ch-tiktok {
    background: #010101;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(1, 1, 1, 0.28);
}

.contact-page .ch-tiktok:hover {
    box-shadow: 0 14px 30px rgba(1, 1, 1, 0.42);
}

.contact-page .ch-x {
    background: #000000;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.contact-page .ch-x:hover {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
}

/* =========================
   SCROLL REVEAL
========================= */
.contact-page .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.60s ease, transform 0.60s ease;
}

.contact-page .reveal.revealed {
    opacity: 1;
    transform: none;
}

/* =========================
   RESPONSIVE — 2-col layout
========================= */
@media (max-width: 900px) {
    .contact-page .contact-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-page .contact-info-col {
        order: 2;
    }

    .contact-page .contact-form-col {
        order: 1;
    }

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

    .contact-page .contact-channels-btns {
        justify-content: center;
    }

    .contact-page .ch-btn {
        flex: 0 0 auto;
    }
}

/* ── LTR (French) overrides ── */
[dir="ltr"] .contact-page .form .field {
    text-align: left;
}

[dir="ltr"] .contact-page .form-wrap {
    text-align: left;
}

[dir="ltr"] .contact-page .form label {
    text-align: left;
}

[dir="ltr"] .contact-page .contact-info-card {
    text-align: left;
}


@media (max-width: 560px) {
    .contact-page .contact-badges {
        gap: 8px;
    }

    .contact-page .contact-badge {
        font-size: 12px;
        padding: 8px 12px;
    }

    .contact-page .contact-info-card {
        padding: 14px 16px;
        gap: 12px;
    }

    .contact-page .cti-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 13px;
    }

    .contact-page .cti-icon svg {
        width: 18px;
        height: 18px;
    }

    .contact-page .ch-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* ========================================
   SOCIAL MEDIA OFFICIAL COLORS
======================================== */

/* Facebook */
.contact-page .footer-socials a[aria-label="فيسبوك"] {
    background: #ffffff;
}

.contact-page .footer-socials a[aria-label="فيسبوك"] svg {
    color: #1877F2;
}

.contact-page .footer-socials a[aria-label="فيسبوك"]:hover {
    background: #1877F2;
}

.contact-page .footer-socials a[aria-label="فيسبوك"]:hover svg {
    color: #ffffff;
}

/* Instagram */
.contact-page .footer-socials a[aria-label="إنستغرام"] {
    background: #ffffff;
}

.contact-page .footer-socials a[aria-label="إنستغرام"] svg {
    color: #E4405F;
}

.contact-page .footer-socials a[aria-label="إنستغرام"]:hover {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.contact-page .footer-socials a[aria-label="إنستغرام"]:hover svg {
    color: #ffffff;
}

/* TikTok */
.contact-page .footer-socials a[aria-label="تيك توك"] {
    background: #ffffff;
}

.contact-page .footer-socials a[aria-label="تيك توك"] svg {
    color: #000000;
}

.contact-page .footer-socials a[aria-label="تيك توك"]:hover {
    background: #000000;
}

.contact-page .footer-socials a[aria-label="تيك توك"]:hover svg {
    color: #ffffff;
}

/* ===========================================================
   OFFICE MAP SECTION — visite physique des bureaux VECTRA
   Section pleine largeur entre le header de page et le layout
   2 colonnes. Map Google Maps embed responsive avec 2 CTAs.
============================================================ */
.contact-map-section {
    /* Largeur étendue à 1200px pour mieux occuper l'écran desktop sans
       laisser des bandes vides énormes sur les côtés. */
    max-width: 1200px;
    margin: 0 auto 36px;
    padding: 0 16px;
    position: relative;  /* pour ancrer les icônes flottantes décoratives */
}

/* =========================
   ICÔNES FLOTTANTES DÉCORATIVES
   Petits badges circulaires (phone, mail, pin) sur les côtés du map.
   Cachés sur mobile/tablet (manque de place).
========================= */
.cmap-deco {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(0, 128, 55, 0.95), rgba(34, 193, 195, 0.85));
    color: #fff;
    box-shadow:
        0 12px 30px rgba(0, 128, 55, 0.28),
        0 4px 12px rgba(0, 0, 0, 0.10);
    border: 2px solid rgba(255, 255, 255, 0.55);
    pointer-events: none;  /* purement décoratif, ne bloque pas le clic */
    z-index: 1;
    animation: cmap-float 4s ease-in-out infinite;
}

.cmap-deco svg {
    width: 26px;
    height: 26px;
    stroke-width: 2.2;
}

/* Position : gauche-haut, droite-haut, gauche-bas du map */
/* Position phone : vertical centré sur le map, décalé vers le bas pour éviter
   l'overlay Google "Ouvrir dans Maps" en haut à gauche du map. */
.cmap-deco--phone {
    top: 60%;
    left: -10px;
    transform: translateY(-50%);
    animation-delay: 0s;
}

/* Position mail : vertical centré sur le map, légèrement vers le haut pour
   éviter le bouton fullscreen de Google en bas à droite. */
.cmap-deco--mail {
    top: 35%;
    right: -10px;
    transform: translateY(-50%);
    animation-delay: 1.3s;
}

@keyframes cmap-float {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50%      { transform: translateY(calc(-50% - 8px)) translateX(0); }
}

/* Cacher sur mobile/tablet — pas assez de place sur les côtés */
@media (max-width: 1100px) {
    .cmap-deco {
        display: none;
    }
}

.cmap-head {
    text-align: center;
    margin-bottom: 16px;
}

.cmap-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #008037;
    background: rgba(0, 128, 55, 0.08);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.cmap-title {
    margin: 0 0 4px;
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 1000;
    color: #0f172a;
    letter-spacing: -0.2px;
    text-decoration: underline;
    text-decoration-color: #0f766e;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

.cmap-sub {
    margin: 0;
    font-size: 14px;
    color: rgba(15, 23, 42, 0.62);
}

/* Container du map — ratio 16/9 sur desktop, 4/3 sur mobile.
   Hauteur max augmentée (420 → 480px) pour donner plus de présence au map
   sur grand écran et le rendre plus impactant. */
.cmap-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 480px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 20px 50px rgba(0, 128, 55, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 128, 55, 0.12);
    background: #e5e7eb;  /* fallback gris pendant le chargement */
}

.cmap-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Actions sous le map : Itinéraire (primary) + Ouvrir Maps (ghost) */
.cmap-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.cmap-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: 0.22s ease;
    min-height: 44px;
    box-sizing: border-box;
}

.cmap-btn--primary {
    background: linear-gradient(90deg, #008037, #22c1c3);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 128, 55, 0.30);
}

.cmap-btn--primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 14px 32px rgba(0, 128, 55, 0.40);
}

.cmap-btn--ghost {
    background: #fff;
    color: #0f172a;
    border: 1.5px solid rgba(0, 128, 55, 0.25);
}

.cmap-btn--ghost:hover {
    background: rgba(0, 128, 55, 0.06);
    border-color: rgba(0, 128, 55, 0.40);
    transform: translateY(-1px);
}

/* Mobile — ratio plus carré, boutons en colonne pleine largeur */
@media (max-width: 640px) {
    .contact-map-section {
        margin-bottom: 24px;
        padding: 0 14px;
    }

    .cmap-frame {
        aspect-ratio: 4 / 3;
        max-height: 320px;
        border-radius: 14px;
    }

    .cmap-actions {
        flex-direction: column;
        gap: 8px;
    }

    .cmap-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        font-size: 13.5px;
        padding: 10px 16px;
    }
}

@media (max-width: 380px) {
    .cmap-frame {
        aspect-ratio: 1 / 1;
    }
}