/* --- POLICE SIGNATURE --- */
@font-face {
    font-family: 'AntoineSignature';
    src: url('fonts/font-av-01-webfont.woff2') format('woff2'),
        url('fonts/font-av-01-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ================= VARIABLES ================= */
:root {
    --bg-main: #fbf9f5;
    --bg-alt: #f5efe6;
    --brand-dark: #132023;
    --brand-light: #20373B;
    --text-main: #132023;
    --text-muted: #5a6b6e;
    --accent: #C9A050;
    --white: #ffffff;
    --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-soft: 0 10px 30px rgba(19, 32, 35, 0.06);
    --shadow-medium: 0 15px 40px rgba(19, 32, 35, 0.12);
}

/* ================= RESET ================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-main);
    background: var(--bg-main);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ================= SIGNATURE FONT ================= */
.sig-char {
    font-family: 'AntoineSignature', cursive;
    font-size: 1.5em;
    line-height: 1;
}

/* ================= ANIMATIONS ================= */
@keyframes dotWave {
    0%, 60%, 100% { opacity: 0.2; transform: scale(1); }
    30% { opacity: 1; transform: scale(1.3); }
}

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

.anim-fade {
    opacity: 0;
    animation: fadeUp 0.7s var(--ease-premium) forwards;
}

.anim-d1 { animation-delay: 0.2s; }
.anim-d2 { animation-delay: 0.5s; }

/* ================= BOUTONS ================= */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.9rem;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s var(--ease-premium),
                box-shadow 0.35s var(--ease-premium),
                background-color 0.35s ease,
                color 0.35s ease,
                border-color 0.35s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -42%;
    width: 34%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.42) 52%, rgba(255,255,255,0) 100%);
    transform: translateX(-180%) skewX(-22deg);
    opacity: 0;
    transition: transform 0.85s var(--ease-premium), opacity 0.35s ease;
    pointer-events: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:hover::after {
    opacity: 0.7;
    transform: translateX(420%) skewX(-22deg);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--brand-dark);
    border-color: var(--accent);
    box-shadow: 0 16px 34px rgba(201, 160, 80, 0.18);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent);
    box-shadow: 0 18px 36px rgba(19, 32, 35, 0.12);
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.74;
    cursor: wait;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

/* ============================================================
   PAGE WIP
   ============================================================ */
.page-wip {
    background: var(--bg-main);
}

.wip-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- EN-TETE : nom + métier ---------- */
.wip-header {
    text-align: center;
    padding: 44px 20px 0;
}

.wip-logo-name {
    display: block;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    letter-spacing: 7px;
    text-transform: uppercase;
    color: var(--brand-dark);
}

.wip-logo-role {
    display: block;
    margin-top: 8px;
    font-size: clamp(0.82rem, 1.6vw, 0.92rem);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ---------- ZONE CENTRALE : status + formulaire ---------- */
.wip-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(40px, 15vh, 150px) 20px 50px;
    gap: 0;
}

.wip-status {
    text-align: center;
    margin-bottom: clamp(40px, 15vh, 150px);
}

.wip-status-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 500;
    color: var(--brand-dark);
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.wip-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.wip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.2;
    animation: dotWave 1.8s ease-in-out infinite;
}

.wip-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.wip-dot:nth-child(3) {
    animation-delay: 0.6s;
}

/* ---------- FORMULAIRE ---------- */
.wip-form-wrap {
    width: min(100%, 540px);
}

.wip-form-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-align: center;
    text-transform: none;
}

.wip-form,
.wip-success {
    width: 100%;
    padding: 36px;
    background: var(--white);
    box-shadow: var(--shadow-medium);
}

.wip-form-row {
    display: flex;
    gap: 14px;
}

.wip-form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--brand-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    background: #fafafa;
    color: var(--text-main);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(201, 160, 80, 0.12);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.stealth-field {
    opacity: 0;
    position: absolute;
    top: 0; left: 0;
    height: 0; width: 0;
    z-index: -1;
    overflow: hidden;
}

.wip-turnstile {
    display: flex;
    justify-content: center;
    margin: 2px 0 14px;
}

.wip-feedback {
    margin: 0 0 14px;
    padding: 10px 14px;
    border: 1px solid rgba(19, 32, 35, 0.12);
    background: rgba(255, 255, 255, 0.66);
    color: var(--brand-dark);
    font-size: 0.88rem;
    line-height: 1.5;
    text-align: center;
}

.wip-feedback.is-error {
    border-color: rgba(146, 41, 41, 0.18);
    color: #7b2323;
    background: rgba(123, 35, 35, 0.06);
}

.wip-feedback[hidden],
.wip-success[hidden] {
    display: none !important;
}

/* ---------- CONFIRMATION ---------- */
.wip-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.wip-success-icon {
    color: var(--accent);
}

.wip-success-title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    letter-spacing: 2px;
    text-transform: none;
}

.wip-success-text {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.wip-success-text strong {
    color: var(--brand-dark);
}

/* ---------- FOOTER ---------- */
.wip-footer {
    padding: 28px 20px;
    text-align: center;
    background: var(--brand-dark);
    color: var(--white);
}

.wip-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.wip-footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.wip-footer-links a:hover {
    color: var(--accent);
}

.wip-footer-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   PAGE MERCI
   ============================================================ */
.page-merci {
    background: var(--bg-main);
}

.merci-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.merci-home-link {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.merci-body {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px 60px;
}

.merci-card {
    width: min(100%, 660px);
    padding: 44px clamp(24px, 5vw, 52px);
    text-align: center;
    background: var(--white);
    box-shadow: var(--shadow-medium);
}

.merci-card h1 {
    margin-bottom: 16px;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    text-transform: none;
    letter-spacing: 1px;
}

.merci-card p {
    max-width: 36rem;
    margin: 0 auto 14px;
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.98rem;
}

.merci-card p strong {
    color: var(--brand-dark);
}

/* ---------- BOUTONS AVIS ---------- */
.review-buttons {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn-review {
    min-width: 210px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
}

.btn-review svg {
    flex: none;
}

.btn-mariage {
    background: #e64a5d;
    color: var(--white);
    border-color: #e64a5d;
    box-shadow: 0 12px 28px rgba(230, 74, 93, 0.2);
}

.btn-mariage:hover {
    background: transparent;
    color: #e64a5d;
    border-color: #e64a5d;
}

.btn-google {
    background: var(--white);
    color: var(--brand-dark);
    border-color: rgba(19, 32, 35, 0.12);
    box-shadow: 0 12px 28px rgba(19, 32, 35, 0.08);
}

.btn-google:hover {
    background: #f5f5f5;
    color: var(--brand-dark);
}

.review-button-label {
    display: inline-flex;
    align-items: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .wip-main {
        padding-top: clamp(20px, 6vh, 75px);
    }

    .wip-status {
        margin-bottom: clamp(20px, 6vh, 75px);
    }

    .wip-form-row {
        flex-direction: column;
        gap: 0;
    }

    .wip-form,
    .wip-success {
        padding: 24px 18px;
    }

    .wip-footer-sep {
        display: none;
    }

    .wip-footer-links {
        gap: 10px;
    }

    .merci-card {
        padding: 30px 20px;
    }

    .btn-review {
        width: 100%;
        min-width: 0;
    }

    .merci-logo {
        letter-spacing: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .anim-fade { opacity: 1; animation: none; }
    .wip-dot { animation: none; opacity: 0.5; }
    .btn::after { display: none; }
}
