/* ============================================================
   COMPONENTS.CSS — Garnazelle LP
   Boutons, badges, formulaire, cards, wip-zones
   ============================================================ */

/* --- BOUTONS --- */
.btn-primary {
    display: inline-block;
    background: var(--encre);
    color: var(--blanc);
    border: none;
    padding: 18px 40px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: var(--font-corps);
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: opacity var(--transition);
}
.btn-primary:hover { opacity: 0.82; }

.btn-primary-white {
    background: var(--blanc);
    color: var(--encre);
}
.btn-primary-white:hover { background: var(--creme); opacity: 1; }

.btn-secondary {
    display: inline-block;
    color: var(--encre);
    border-bottom: 1px solid var(--encre);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding-bottom: 4px;
    transition: color var(--transition), border-color var(--transition);
}
.btn-secondary:hover {
    color: var(--vert-ecrin);
    border-color: var(--vert-ecrin);
}

.btn-secondary-white {
    color: var(--blanc);
    border-color: rgba(255,255,255,0.5);
}
.btn-secondary-white:hover {
    color: var(--blanc);
    border-color: var(--blanc);
}

/* --- BADGE AUTORITÉ --- */
.badge {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-family: var(--font-corps);
    font-weight: 400;
    border-left: 2px solid var(--vert-ecrin);
    padding: 2px 0 2px 16px;
    color: var(--vert-ecrin);
    margin-bottom: 28px;
}

.badge-white {
    border-color: rgba(255,255,255,0.5);
    color: rgba(255,255,255,0.7);
}

/* --- AUTHORITY ITEM --- */
.authority-item span {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #999;
    margin-bottom: 6px;
    font-family: var(--font-corps);
}
.authority-item strong {
    display: block;
    font-family: var(--font-titre);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* --- DIVIDER GRENOUILLE --- */
.frog-divider {
    margin: 0 auto 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}

.frog-diamond {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.3);
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.frog-diamond-inner {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.6);
    transform: rotate(-45deg);
}

.frog-diamond-dark {
    border-color: rgba(26,48,33,0.25);
}
.frog-diamond-dark .frog-diamond-inner {
    background: rgba(26,48,33,0.25);
}

/* --- FORMULAIRE --- */
.form-card {
    background: var(--blanc);
    border: 1px solid var(--bordure);
    padding: 48px 40px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.07);
}

.form-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    letter-spacing: 0.2em;
}

.form-card .form-intro {
    font-size: 13px;
    color: #777;
    margin-bottom: 36px;
    font-style: italic;
    font-family: var(--font-titre);
    font-size: 16px;
}

.form-field {
    margin-bottom: 24px;
}

.form-field label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #999;
    margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--bordure);
    padding: 10px 0;
    color: var(--encre);
    font-size: 14px;
    font-weight: 300;
    outline: none;
    transition: border-color var(--transition);
    resize: none;
}

.form-field textarea {
    height: 72px;
    line-height: 1.6;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--encre);
}

.form-reassurance {
    margin-top: 18px;
    font-size: 11px;
    font-style: italic;
    color: #aaa;
    text-align: center;
    letter-spacing: 0.05em;
}

/* --- Honeypot anti-spam : champ piège masqué hors écran.
       Volontairement PAS display:none, pour que les bots le voient et le remplissent. --- */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- Message d'erreur de validation (apparait sous le bouton submit) ---
       Clairement lisible, en rouge franc mais sans criard. */
.form-error {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 400;
    color: #C0392B;
    text-align: center;
    letter-spacing: 0.02em;
    line-height: 1.5;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.3s ease-out, max-height 0.3s ease-out;
}

.form-error.visible {
    opacity: 1;
    max-height: 90px;
}

/* --- Champ en erreur : mise en évidence claire après tentative de submit ---
       Cadre rouge (via box-shadow inset pour ne pas bouger le layout),
       léger background rouge transparent, et un mini shake d'attention. */
.form-field.has-error input,
.form-field.has-error textarea {
    box-shadow: inset 0 0 0 1.5px #C0392B;
    background: rgba(192, 57, 43, 0.06);
    border-bottom-color: #C0392B;
    padding: 10px 12px;          /* on respire un peu pour que le cadre rouge ait du sens */
    transition: box-shadow 0.25s, background 0.25s;
}

.form-field.has-error label {
    color: #C0392B;
}

.form-field.has-error {
    animation: form-error-shake 0.32s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes form-error-shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-3px); }
    40%, 60% { transform: translateX(3px); }
}

.form-reassurance-emphase {
    font-style: normal;
    font-family: var(--font-corps);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 9px;
    color: var(--vert-ecrin);
    font-weight: 400;
}

/* --- CONFIRMATION FORMULAIRE (post-submit) --- */
.form-confirm {
    text-align: center;
    padding: 40px 20px;
}
.form-confirm-title {
    font-family: var(--font-titre);
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.form-confirm-text {
    font-size: 14px;
    color: #777;
    font-style: italic;
    font-family: var(--font-titre);
    font-size: 18px;
}

/* --- TÉMOIGNAGES --- */
.testi-text {
    font-family: var(--font-titre);
    font-style: italic;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 24px;
    color: var(--encre);
}

.testi-sig {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 400;
}

/* --- GRENOUILLE HERO --- */
.hero-right--frog {
    position: relative;
}

.frog-walker {
    position: absolute;
    top: 60px;
    left: 70%;
    width: 135px;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

/* --- WIP ZONES (placeholders) --- */
.wip-zone {
    background: #F0EDE8;
    border: 2px dashed #C8C4BE;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    font-family: var(--font-corps);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #B0AAA0;
    gap: 10px;
}

.wip-zone::before {
    content: '⬡';
    font-size: 20px;
    color: #C8C4BE;
}

.wip-hero     { width: 100%; aspect-ratio: 4/3; margin-top: 40px; }
.wip-portrait { width: 100%; aspect-ratio: 3/4; min-height: 400px; }
.wip-boutique { width: 100%; height: 100%; min-height: 560px; }
.wip-gallery  { width: 100%; aspect-ratio: 1/1; }
.wip-presse   { width: 100%; height: 60px; }

/* --- STICKY BAR --- */
.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--blanc);
    border-top: 1px solid var(--bordure);
    padding: 16px var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(100%);
    transition: transform var(--transition);
    z-index: 999;
}

.sticky-bar.show-bar {
    transform: translateY(0);
}

.sticky-bar-text {
    font-family: var(--font-titre);
    font-style: italic;
    font-size: 18px;
    letter-spacing: 0.05em;
}

.sticky-bar-cta {
    background: var(--encre);
    color: var(--blanc);
    padding: 12px 28px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    border: none;
    font-family: var(--font-corps);
    transition: opacity var(--transition);
    white-space: nowrap;
}
.sticky-bar-cta:hover { opacity: 0.82; }