/* ============================================================================
   PAGE — Contact
   Formulaire, coordonnées directes, bouton Envoyer.
   ============================================================================ */

/* Contact — Page Contact pleine largeur : le formulaire démarre en haut de la page, sous un espace blanc (le
   titre « Contact » et ses deux filets ont été retirés) */

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 72px 28px 80px;          /* espace blanc entre la barre de navigation et le formulaire */
    text-align: center;
}

.cf-icon-btn:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    a.cf-icon-btn {
        transition: none;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 40px 20px 55px;
    }
}

/* Contact — Formulaire pleine largeur : champs soulignés, zone de message encadrée */

/* ==========================================================================
   Page Contact : formulaire (adresse mail, statut, titre, description)
   Pleine largeur (910 px max) ; champs à simple soulignement, zone de message encadrée
   d'un filet fin ; ligne d'actions : coordonnées directes à gauche, bouton Envoyer à droite
   ========================================================================== */

.contact-form {
    max-width: 910px;
    margin: 0 auto;
    padding: 56px 64px 48px;
    border: 1px solid #d9d9de;        /* cadre fin autour du formulaire (même filet que la zone de message) */
    text-align: left;
}

.cf-field {
    margin-bottom: 40px;
}

.cf-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-color);
}

.cf-input {
    display: block;
    width: 100%;
    padding: 20px 8px 18px;
    font: inherit;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-color);
    background: transparent;
    border: 0;
    border-bottom: 1px solid #d2d2d7;
    border-radius: 0;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

.cf-input::placeholder {
    color: #a8a8ad;
    opacity: 1;
    transition: color 0.2s ease;
}

.cf-input:focus::placeholder {
    color: transparent;              /* l'exemple disparaît dès que l'on clique dans le champ */
}

.cf-input:hover {
    border-color: #a8a8ad;
}

.cf-input:focus {
    outline: none;
    border-color: var(--text-color);
    box-shadow: none;
}

/* Liste déroulante « Statut » : même aspect que les champs, avec une flèche à droite */

.cf-select {
    padding-right: 44px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8'%3E%3Cpolyline points='1.5 1.5 7 6.5 12.5 1.5' fill='none' stroke='%230d0d0d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px 8px;
}

/* Zone de message : encadrée d'un filet fin */

.cf-textarea {
    min-height: 240px;
    margin-top: 14px;
    padding: 22px 24px;
    line-height: 1.7;
    resize: vertical;
    border: 1px solid #d9d9de;
}

.cf-textarea:focus {
    box-shadow: none;
}

/* Champ piège anti-robots du formulaire de contact : hors écran, invisible, ignoré par les lecteurs d'écran et le clavier */

.cf-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Contact — Erreurs, ligne d'actions (coordonnées directes + bouton Envoyer) */

.cf-input[aria-invalid="true"] {
    border-color: #b3261e;
}

.cf-error {
    margin-top: 6px;
    padding-left: 8px;
    font-size: 0.78rem;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: #b3261e;
}

.cf-error:empty {
    display: none;
}

/* Ligne d'actions : coordonnées directes (icône, trait, phrase, e-mail, Instagram) à gauche, bouton Envoyer à droite */

.cf-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 56px;
}

.cf-direct {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.cf-icon-wrap {
    position: relative;
    flex: none;
}

.cf-icon-btn {
    flex: none;
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    background: transparent;
    border: 1px solid #cfcfd4;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

.cf-icon-btn[hidden] {
    display: none;
}

.cf-icon-btn svg {
    display: block;
    width: 20px;
    height: 20px;
}

@media (hover: hover) {
    .cf-icon-btn:hover {
        border-color: var(--text-color);
    }
}

/* Petite bulle « Copié » au-dessus de l'enveloppe */

.cf-tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    padding: 6px 14px;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fdffff;
    background: var(--text-color);
    border-radius: 0;
    opacity: 0;
    transform: translate(-50%, 4px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cf-tip.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.cf-direct-text {
    min-width: 0;
    margin-left: 14px;
    padding-left: 28px;
    border-left: 1px solid #c8c8cd;
}

.cf-direct-label {
    margin: 0;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    line-height: 1.8;
    text-transform: uppercase;
    color: var(--text-muted-aa);
}

.cf-submit {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-width: 256px;
    height: 75px;
    padding: 0 44px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #fdffff;
    background: var(--text-color);
    border: 1px solid var(--text-color);
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

.cf-submit svg {
    flex: none;
    display: block;
    width: 28px;
    height: 10px;
}

@media (hover: hover) {
    .cf-submit:hover:not(:disabled) {
        color: var(--text-color); background: #fdffff;
    }
}

/* Contact — Formulaire de contact */

.cf-submit:disabled {
    opacity: 0.5; cursor: default;
}

.cf-status {
    margin-top: 24px;
    font-size: 0.82rem;
    line-height: 1.6;
    text-align: right;
    color: var(--text-muted-strong);
}

.cf-status:empty {
    display: none;
}

.cf-status[data-kind="error"] {
    color: #b3261e;
}

.cf-status[data-kind="success"] {
    color: #1b6e3a;
}

/* Mobile : coordonnées au-dessus, bouton Envoyer pleine largeur */

@media (max-width: 768px) {
    .contact-form {
        padding: 32px 18px 28px;
    }
    .cf-field {
        margin-bottom: 32px;
    }
    .cf-textarea {
        padding: 18px 16px;
    }
    .cf-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
        margin-top: 44px;
    }
    .cf-direct-text {
        margin-left: 6px;
        padding-left: 20px;
    }
    .cf-submit {
        width: 100%;
        min-width: 0;
        height: 64px;
    }
    .cf-status {
        text-align: center;
    }
}
