/* ==========================================================
   KRILIH.MA
   css/contact.css
   VERSION 2.0 — PREMIUM LIQUID
   ========================================================== */


/* ==========================================================
   PAGE
   ========================================================== */

.contact-page {
    min-height: 100vh;
    background: var(--bg);
}


/* ==========================================================
   HERO
   ========================================================== */

.contact-hero {
    position: relative;

    padding: 90px 20px 80px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(20, 184, 166, 0.10),
            rgba(14, 165, 233, 0.08),
            rgba(245, 158, 11, 0.06)
        );
}

.contact-hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: -250px;
    right: -150px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(20, 184, 166, 0.20),
            transparent 70%
        );

    pointer-events: none;
}

.contact-hero::after {
    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    bottom: -250px;
    left: -150px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(245, 158, 11, 0.14),
            transparent 70%
        );

    pointer-events: none;
}


.contact-hero-content {
    position: relative;

    z-index: 2;

    max-width: 850px;

    margin: auto;

    text-align: center;
}


/* ==========================================================
   EYEBROW
   ========================================================== */

.contact-eyebrow {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 8px 18px;

    margin-bottom: 22px;

    border-radius: 999px;

    background:
        rgba(20, 184, 166, 0.10);

    border:
        1px solid rgba(20, 184, 166, 0.18);

    color: var(--primary);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 1.5px;
}


/* ==========================================================
   TITRE HERO
   ========================================================== */

.contact-hero h1 {
    margin: 0 0 20px;

    color: var(--text);

    font-family: "Poppins", sans-serif;

    font-size:
        clamp(
            2.5rem,
            6vw,
            4rem
        );

    line-height: 1.15;

    font-weight: 800;
}


.contact-hero p {
    max-width: 680px;

    margin: auto;

    color: var(--text-muted);

    font-size: 17px;

    line-height: 1.8;
}


/* ==========================================================
   CONTENEUR
   ========================================================== */

.contact-container {
    width: min(1100px, 94%);

    margin: 0 auto;

    padding: 70px 0 100px;
}


/* ==========================================================
   PROFIL
   ========================================================== */

.contact-profile {
    display: flex;

    align-items: center;

    gap: 28px;

    padding: 30px;

    margin-bottom: 35px;

    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius: 24px;

    box-shadow:
        0 15px 40px rgba(15, 23, 42, 0.07);
}


/* ==========================================================
   PHOTO
   ========================================================== */

.profile-photo-wrapper {
    flex-shrink: 0;

    width: 120px;
    height: 120px;

    padding: 5px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #14b8a6,
            #0f766e,
            #f59e0b
        );

    box-shadow:
        0 12px 30px rgba(15, 118, 110, 0.25);
}


.profile-photo {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    border:
        4px solid var(--surface);
}


/* ==========================================================
   PROFIL TEXTE
   ========================================================== */

.profile-label {
    display: block;

    margin-bottom: 6px;

    color: var(--primary);

    font-size: 12px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.profile-info h2 {
    margin: 0 0 8px;

    color: var(--text);

    font-size: 26px;

    font-weight: 800;
}


.profile-info p {
    max-width: 650px;

    margin: 0;

    color: var(--text-muted);

    line-height: 1.7;
}


/* ==========================================================
   GRILLE CONTACT
   ========================================================== */

.contact-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}


/* ==========================================================
   CARTE CONTACT
   ========================================================== */

.contact-card {

    position: relative;

    display: flex;

    align-items: center;

    gap: 15px;

    min-width: 0;

    padding: 22px;

    overflow: hidden;

    text-decoration: none;

    background:
        linear-gradient(
            145deg,
            var(--surface),
            rgba(255,255,255,0.92)
        );

    border:
        1px solid var(--border);

    border-radius: 20px;

    color: var(--text);

    box-shadow:
        0 10px 30px rgba(15,23,42,0.07),
        inset 0 1px 1px rgba(255,255,255,0.75);

    transform: translateY(0);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease,
        filter .25s ease;
}


/* ==========================================================
   LIQUID REFLET
   ========================================================== */

.contact-card::before {

    content: "";

    position: absolute;

    top: -100%;

    left: -35%;

    width: 45%;

    height: 300%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.05),
            rgba(255,255,255,.55),
            rgba(255,255,255,.08),
            transparent
        );

    transform:
        rotate(22deg)
        translateX(-180%);

    pointer-events: none;

    transition:
        transform .75s ease;
}


/* ==========================================================
   LUMIÈRE SUPÉRIEURE
   ========================================================== */

.contact-card::after {

    content: "";

    position: absolute;

    top: 5px;

    left: 8%;

    right: 8%;

    height: 35%;

    border-radius: 50%;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,.25),
            transparent
        );

    pointer-events: none;

    opacity: .7;
}


/* ==========================================================
   HOVER
   ========================================================== */

.contact-card:hover {

    transform:
        translateY(-7px)
        scale(1.015);

    border-color:
        rgba(20,184,166,.35);

    filter:
        brightness(1.025);

    box-shadow:
        0 20px 45px rgba(15,23,42,.12),
        0 0 25px rgba(20,184,166,.12),
        inset 0 1px 1px rgba(255,255,255,.85);
}


.contact-card:hover::before {

    transform:
        rotate(22deg)
        translateX(500%);
}


/* ==========================================================
   ICÔNE
   ========================================================== */

.contact-icon {

    position: relative;

    z-index: 2;

    flex-shrink: 0;

    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 17px;

    color: #fff;

    font-size: 22px;

    box-shadow:
        0 8px 18px rgba(15,23,42,.14),
        inset 0 1px 1px rgba(255,255,255,.4);
}


/* ==========================================================
   COULEURS ICÔNES
   ========================================================== */

.phone-icon {

    background:
        linear-gradient(
            135deg,
            #14b8a6,
            #0f766e
        );
}


.whatsapp-icon {

    background:
        linear-gradient(
            135deg,
            #22c55e,
            #15803d
        );
}


.email-icon {

    background:
        linear-gradient(
            135deg,
            #f59e0b,
            #ea580c
        );
}


/* ==========================================================
   CONTENU CARTE
   ========================================================== */

.contact-card-content {

    min-width: 0;

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.contact-card-content span {

    color: var(--text-muted);

    font-size: 12px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .6px;
}


.contact-card-content strong {

    color: var(--text);

    font-size: 15px;

    font-weight: 800;

    overflow-wrap: anywhere;
}


.contact-card-content small {

    color: var(--text-muted);

    font-size: 11px;
}


/* ==========================================================
   FLÈCHE
   ========================================================== */

.contact-arrow {

    flex-shrink: 0;

    color: var(--primary);

    font-size: 15px;

    transition:
        transform .25s ease;
}


.contact-card:hover .contact-arrow {

    transform:
        translateX(5px);
}


/* ==========================================================
   MESSAGE
   ========================================================== */

.contact-message {

    display: flex;

    align-items: center;

    gap: 22px;

    margin-top: 30px;

    padding: 30px;

    background:
        linear-gradient(
            135deg,
            rgba(20,184,166,.08),
            rgba(245,158,11,.06)
        );

    border:
        1px solid rgba(20,184,166,.15);

    border-radius: 22px;
}


.message-icon {

    flex-shrink: 0;

    width: 60px;
    height: 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #14b8a6,
            #0f766e
        );

    color: #fff;

    font-size: 23px;

    box-shadow:
        0 10px 25px rgba(15,118,110,.22);
}


.contact-message h2 {

    margin: 0 0 8px;

    color: var(--text);

    font-size: 22px;

    font-weight: 800;
}


.contact-message p {

    margin: 0;

    color: var(--text-muted);

    line-height: 1.7;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {

    padding: 30px 20px;

    text-align: center;

    background: var(--surface);

    border-top:
        1px solid var(--border);

    color: var(--text-muted);

    font-size: 13px;
}


/* ==========================================================
   DARK MODE
   ========================================================== */

[data-theme="dark"] .contact-hero {

    background:
        linear-gradient(
            135deg,
            rgba(20,184,166,.14),
            rgba(14,165,233,.10),
            rgba(245,158,11,.08)
        );
}


[data-theme="dark"] .contact-card {

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.96),
            rgba(15,23,42,.96)
        );

    box-shadow:
        0 12px 35px rgba(0,0,0,.25),
        inset 0 1px 1px rgba(255,255,255,.05);
}


[data-theme="dark"] .contact-card:hover {

    box-shadow:
        0 20px 45px rgba(0,0,0,.35),
        0 0 25px rgba(20,184,166,.12),
        inset 0 1px 1px rgba(255,255,255,.08);
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {

    .contact-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 700px) {

    .contact-hero {

        padding:
            65px 20px
            55px;
    }

    .contact-container {

        padding:
            50px 0
            70px;
    }

    .contact-profile {

        flex-direction: column;

        text-align: center;

        padding: 25px;
    }

    .contact-grid {

        grid-template-columns: 1fr;
    }

    .contact-card {

        padding: 20px;
    }

    .contact-message {

        align-items: flex-start;

        padding: 24px;
    }
}


@media (max-width: 480px) {

    .contact-hero h1 {

        font-size: 2.2rem;
    }

    .contact-hero p {

        font-size: 15px;
    }

    .profile-photo-wrapper {

        width: 100px;
        height: 100px;
    }

    .contact-message {

        flex-direction: column;
    }

    .contact-message h2 {

        font-size: 19px;
    }
}


/* ==========================================================
   ACCESSIBILITÉ
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .contact-card,
    .contact-card::before,
    .contact-arrow {

        transition: none !important;
    }
}


/* ==========================================================
   FIN
========================================================== */