/* ==========================================================================
   CONTACT - Styles spécifiques
   Thème : tout sombre + accents argentés (cohérence KingCafé/Forpelly/About)
   À charger APRÈS style.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES (scope local via .kc)
   -------------------------------------------------------------------------- */

.kc {
    --silver:       #d2d1d1;
    --silver-light: #e6e5e6;
    --silver-dark:  #898888;
    --black:        #0a0a0a;
    --black-soft:   #141414;
    --black-card:   #1a1a1a;
    --black-pure:   #000000;
    --white:        #f5f0e8;
    --white-pure:   #ffffff;

    --silver-gradient: linear-gradient(
        135deg,
        #fbfbfb 0%,
        #898888 25%,
        #d2d1d1 50%,
        #474746 75%,
        #898888 100%
    );

    --t-fast: 0.25s ease;
    --t-base: 0.4s ease;
    --t-slow: 0.7s ease;
}

.kc * { box-sizing: border-box; }
.kc h1, .kc h2, .kc h3, .kc h4, .kc p, .kc ul { margin: 0; padding: 0; }

/* --------------------------------------------------------------------------
   2. REVEAL (progressive enhancement)
   -------------------------------------------------------------------------- */

.kc-reveal { opacity: 1; transform: none; }

.kc-js .kc-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.kc-js .kc-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.kc-reveal-d1 { transition-delay: 0.1s; }
.kc-reveal-d2 { transition-delay: 0.2s; }
.kc-reveal-d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .kc-js .kc-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* --------------------------------------------------------------------------
   3. LABELS & TITRES
   -------------------------------------------------------------------------- */

.kc-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 14px;
}

.kc-label::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--silver);
}

.kc-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--white-pure);
    margin: 0 0 14px;
}

.kc-title span,
.kc-title em {
    background: var(--silver-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-style: italic;
    font-weight: 300;
}

.kc-body {
    font-size: 0.92rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.6);
    line-height: 1.8;
}

/* --------------------------------------------------------------------------
   4. HERO
   -------------------------------------------------------------------------- */

.kc-hero {
    position: relative;
    min-height: 52vh;
    padding: 140px 20px 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--black);
}

.kc-hero__bg {
    position: absolute;
    inset: 0;
    background-color: #0a0a0a;
    filter: brightness(0.22);
    transform: scale(1.05);
    animation: kcHeroBg 14s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes kcHeroBg {
    from { transform: scale(1.05); }
    to   { transform: scale(1.10); }
}

.kc-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 0%, rgba(10, 10, 10, 0.55) 100%),
        linear-gradient(135deg, rgba(10, 10, 10, 0.78) 0%, rgba(210, 209, 209, 0.04) 50%, rgba(10, 10, 10, 0.85) 100%);
    z-index: 1;
}

.kc-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
}

.kc-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--silver-light);
    margin-bottom: 20px;
    opacity: 0;
    animation: kcFadeUp 0.8s 0.3s ease forwards;
}

.kc-hero__eyebrow-line {
    display: block;
    width: 36px;
    height: 1px;
    background: var(--silver-light);
}

.kc-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--white-pure);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    opacity: 0;
    animation: kcFadeUp 0.9s 0.5s ease forwards;
}

.kc-hero__title em {
    font-style: italic;
    font-weight: 300;
    background: var(--silver-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.kc-hero__sub {
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    font-weight: 300;
    color: rgba(245, 240, 232, 0.7);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0;
    animation: kcFadeUp 0.9s 0.7s ease forwards;
}

.kc-hero__scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(245, 240, 232, 0.5);
    font-size: 0.66rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    z-index: 2;
    animation: kcBounce 2.2s ease-in-out infinite;
}

.kc-hero__scroll-line {
    width: 1px;
    height: 42px;
    background: linear-gradient(to bottom, var(--silver-light), transparent);
}

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

@keyframes kcFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   5. INFO CARDS (chevauchent le hero)
   -------------------------------------------------------------------------- */

.kc-infos {
    padding: 0 20px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.kc-infos__grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.kc-info-card {
    background: var(--black-card);
    border: 1px solid rgba(210, 209, 209, 0.15);
    padding: 36px 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-decoration: none;
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
}

.kc-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--silver-gradient);
    transition: opacity var(--t-base);
}

.kc-info-card:hover {
    background: rgba(210, 209, 209, 0.04);
    border-color: var(--silver);
    transform: translateY(-4px);
    text-decoration: none;
}

.kc-info-card__icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(210, 209, 209, 0.08);
    border: 1px solid rgba(210, 209, 209, 0.3);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--silver);
    font-size: 1.1rem;
    transition: all var(--t-base);
}

.kc-info-card:hover .kc-info-card__icon {
    background: var(--silver);
    color: var(--black);
    transform: rotate(-6deg);
}

.kc-info-card__body {
    flex: 1;
    min-width: 0;
}

.kc-info-card__label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 6px;
}

.kc-info-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white-pure);
    margin-bottom: 6px;
}

.kc-info-card__value {
    font-size: 0.88rem;
    color: rgba(245, 240, 232, 0.65);
    line-height: 1.5;
    word-break: break-word;
}

.kc-info-card:hover .kc-info-card__value {
    color: var(--silver-light);
}

@media (max-width: 767px) {
    .kc-infos { margin-top: 0; padding-top: 40px; }
    .kc-infos__grid { grid-template-columns: 1fr; gap: 1px; }
}

/* --------------------------------------------------------------------------
   6. MAIN (formulaire + map + socials)
   -------------------------------------------------------------------------- */

.kc-main {
    padding: 90px 20px 110px;
    background: var(--black);
}

.kc-main__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
}

.kc-form-header {
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    .kc-main__inner { grid-template-columns: 1fr; gap: 50px; }
}

/* --------------------------------------------------------------------------
   7. FORMULAIRE
   -------------------------------------------------------------------------- */

.kc-form {
    background: var(--black-card);
    border: 1px solid rgba(210, 209, 209, 0.12);
    padding: 44px 40px;
    border-radius: 2px;
}

/* Honeypot — caché visuellement mais accessible aux bots */
.kc-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.kc-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.kc-form__field {
    margin-bottom: 16px;
    position: relative;
}

.kc-form__field:last-of-type { margin-bottom: 0; }

/* Label visible pour accessibilité, masqué visuellement */
.kc-form__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.kc-form__input,
.kc-form__textarea,
.kc-form__select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(210, 209, 209, 0.15);
    border-radius: 2px;
    padding: 15px 18px;
    color: var(--white-pure);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--t-base), background var(--t-base);
}

.kc-form__input:focus,
.kc-form__textarea:focus,
.kc-form__select:focus {
    border-color: var(--silver);
    background: rgba(210, 209, 209, 0.04);
}

.kc-form__input::placeholder,
.kc-form__textarea::placeholder {
    color: rgba(245, 240, 232, 0.28);
}

.kc-form__textarea {
    resize: vertical;
    min-height: 140px;
}

/* Select : flèche custom */
.kc-form__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23d2d1d1' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-color: rgba(255, 255, 255, 0.04);
    padding-right: 44px;
    cursor: pointer;
}

.kc-form__select option {
    background: var(--black-card);
    color: var(--white-pure);
}

/* Erreurs de champs */
.kc-field-error {
    color: #fca5a5;
    font-size: 0.78rem;
    margin-top: 6px;
    padding-left: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kc-form__input.is-error,
.kc-form__textarea.is-error,
.kc-form__select.is-error {
    border-color: #ef4444;
}

/* Consent RGPD */
.kc-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0 20px;
    padding: 14px 16px;
    background: rgba(210, 209, 209, 0.03);
    border: 1px solid rgba(210, 209, 209, 0.08);
    border-radius: 2px;
}

.kc-form__consent input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--silver);
    cursor: pointer;
    flex-shrink: 0;
}

.kc-form__consent label {
    font-size: 0.82rem;
    color: rgba(245, 240, 232, 0.65);
    line-height: 1.55;
    cursor: pointer;
}

.kc-form__consent a {
    color: var(--silver);
    text-decoration: underline;
}

.kc-form__consent a:hover {
    color: var(--silver-light);
}

/* Bouton submit */
.kc-btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #000000;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 18px 36px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--t-base);
}

.kc-btn-submit:hover:not(:disabled),
.kc-btn-submit:focus-visible:not(:disabled) {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.18);
}

.kc-btn-submit:disabled {
    opacity: 0.65;
    transform: none;
    cursor: not-allowed;
}

.kc-spinner-text { display: none; }

.kc-btn-submit.is-loading .kc-spinner-text { display: inline; }
.kc-btn-submit.is-loading #kcSubmitLabel,
.kc-btn-submit.is-loading #kcSubmitArrow { display: none; }

/* Feedback success / error */
.kc-feedback {
    display: none;
    padding: 16px 20px;
    border-radius: 2px;
    font-size: 0.88rem;
    margin-top: 16px;
    line-height: 1.5;
}

.kc-feedback.is-visible { display: block; }

.kc-feedback.success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.kc-feedback.error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* --------------------------------------------------------------------------
   8. COLONNE DROITE — MAP + HORAIRES + RÉSEAUX
   -------------------------------------------------------------------------- */

.kc-map-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(210, 209, 209, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 32px;
}

.kc-map {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(0.5) contrast(1.1) invert(0.05);
}

/* Horaires */
.kc-hours {
    background: var(--black-card);
    border: 1px solid rgba(210, 209, 209, 0.12);
    border-radius: 2px;
    padding: 22px 24px;
    margin-bottom: 32px;
}

.kc-hours__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(210, 209, 209, 0.1);
}

.kc-hours__title i {
    font-size: 0.95rem;
}

.kc-hours__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kc-hours__list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.86rem;
    color: rgba(245, 240, 232, 0.7);
}

.kc-hours__list strong {
    color: var(--white-pure);
    font-weight: 600;
}

/* Socials */
.kc-socials-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white-pure);
    margin: 0 0 20px;
}

.kc-socials {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kc-social-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--black-card);
    border: 1px solid rgba(210, 209, 209, 0.08);
    border-radius: 2px;
    text-decoration: none;
    transition: all var(--t-base);
}

.kc-social-item:hover,
.kc-social-item:focus-visible {
    border-color: var(--silver);
    background: rgba(210, 209, 209, 0.04);
    transform: translateX(6px);
    text-decoration: none;
}

.kc-social-item__icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #fff;
}

.kc-social-item__icon--fb { background: #1877F2; }
.kc-social-item__icon--li { background: #0A66C2; }
.kc-social-item__icon--ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.kc-social-item__icon--wa { background: #25D366; }

.kc-social-item__name {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(245, 240, 232, 0.7);
    transition: color var(--t-base);
}

.kc-social-item:hover .kc-social-item__name {
    color: var(--silver-light);
}

.kc-social-item__arrow {
    color: var(--silver);
    font-size: 0.85rem;
    transition: transform var(--t-base);
}

.kc-social-item:hover .kc-social-item__arrow {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 575px) {
    .kc-hero { padding: 110px 18px 80px; min-height: 50vh; }
    .kc-hero__scroll { display: none; }
    .kc-main { padding: 60px 16px 80px; }
    .kc-form { padding: 28px 22px; }
    .kc-form__row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
    .kc-form__row .kc-form__field { margin-bottom: 16px; }
    .kc-info-card { padding: 28px 22px; }
    .kc-hours { padding: 18px 20px; }
    .kc-social-item { padding: 14px 16px; }
}
