/* ==========================================================
   H CONSULTANT — PAGE CONTACT
   Compatibilité de l'ancien composant Contact
   ========================================================== */

/* ---------- BASE ---------- */

.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-white { background-color: #fff; }

.text-white { color: #fff; }
.text-primary { color: var(--color-primary); }
.text-on-surface { color: var(--color-text); }
.text-on-surface-variant { color: var(--color-muted); }
.text-secondary-fixed { color: var(--color-secondary-light); }

.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }

.border-outline-variant { border-color: var(--color-border); }
.border-secondary { border-color: var(--color-secondary) !important; }

.bg-secondary-fixed {
    background-color: rgba(113, 191, 235, 0.22);
}

.bg-surface-container {
    background-color: var(--color-surface-light);
}

.bg-secondary-fixed\/20 {
    background-color: rgba(113, 191, 235, 0.20) !important;
}

/* ---------- LAYOUT ---------- */

.relative { position: relative; }
.absolute { position: absolute; }

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 { z-index: 10; }

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-container-max {
    width: min(calc(100% - 64px), 1120px);
    margin-left: auto;
    margin-right: auto;
}

.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }

.max-w-\[1100px\] {
    max-width: 1100px;
}

/* ---------- FLEX ---------- */

.flex { display: flex; }
.inline-flex { display: inline-flex; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.items-center { align-items: center; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* ---------- GRID ---------- */

.grid { display: grid; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* ---------- SPACING ---------- */

.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-8 { padding: 2rem; }

.px-1 { padding-left: .25rem; padding-right: .25rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }

.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.pt-6 { padding-top: 1.5rem; }
.pt-40 { padding-top: 10rem; }
.pt-6 { padding-top: 1.5rem; }

.pb-3 { padding-bottom: .75rem; }
.pb-24 { padding-bottom: 6rem; }

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }

.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }

.-mt-12 { margin-top: -3rem; }

/* ---------- SIZES ---------- */

.w-full { width: 100%; }

.h-2 { height: .5rem; }
.h-full { height: 100%; }

/* ---------- TYPOGRAPHY ---------- */

.text-xs { font-size: .75rem; }
.text-sm { font-size: .875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-2xl { font-size: 1.5rem; }
.text-5xl { font-size: 3rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.italic { font-style: italic; }

.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -.025em; }

/* ---------- BORDERS ---------- */

.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; }

/* ---------- EFFECTS ---------- */

.overflow-hidden { overflow: hidden; }

.opacity-20 { opacity: .2; }
.opacity-40 { opacity: .4; }

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.shadow-xl {
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

.transition-all {
    transition: all .3s ease;
}

.transition-colors {
    transition: color .3s ease,
                background-color .3s ease,
                border-color .3s ease;
}

.duration-300 {
    transition-duration: .3s;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.outline-none {
    outline: none;
}

/* ---------- ETATS ---------- */

.hidden {
    display: none !important;
}

.hover\:border-secondary:hover {
    border-color: var(--color-secondary);
}

.hover\:bg-secondary-fixed\/20:hover {
    background-color: rgba(113, 191, 235, .20);
}

.hover\:shadow-lg:hover {
    box-shadow: var(--shadow-lg);
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,.14);
}

.hover\:text-secondary:hover {
    color: var(--color-secondary);
}

.hover\:-translate-y-1:hover {
    transform: translateY(-.25rem);
}

.hover\:bg-\[\#71BFEB\]:hover {
    background-color: #71BFEB;
}

/* ---------- INPUTS ---------- */

.focus\:border-secondary:focus {
    border-color: var(--color-secondary);
}

/* ---------- LABELS ---------- */

/* ---------- LABELS FLOTTANTS CONTACT ---------- */

/* Position normale : le label est dans le champ */
.contact-page .relative:has(.peer) label {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    padding: 0 0.25rem;
    color: var(--color-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.25s ease;
}

/* Quand le champ est actif */
.contact-page .relative:has(.peer) .peer:focus + label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--color-secondary);
}

/* Quand une valeur a été saisie */
.contact-page .relative:has(.peer) .peer:not(:placeholder-shown) + label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--color-muted);
}

.contact-page .relative:has(textarea) label {
    top: 1.25rem;
    transform: none;
}

.contact-page .relative:has(textarea) textarea:focus + label,
.contact-page .relative:has(textarea) textarea:not(:placeholder-shown) + label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.75rem;
}

/* ---------- RESPONSIVE ---------- */

@media (min-width: 640px) {

    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:text-3xl {
        font-size: 1.875rem;
    }

    .md\:text-6xl {
        font-size: 3.75rem;
    }

    .md\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .md\:p-12 {
        padding: 3rem;
    }
}

@media (min-width: 1024px) {

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.contact-page .pt-28 {
    padding-top: 1rem;
}