@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/inter-latin-400.woff2") format("woff2");
}

:root {
    --texte: #111827;
    --texte-secondaire: #374151;
    --fond: #ffffff;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Page loader (verification — pas site-shell.css) */
.cdav-page-loader {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cdav-page-loader[hidden] {
    display: none !important;
}

.cdav-page-loader__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(255 255 255 / 86%);
    backdrop-filter: blur(2px);
}

.cdav-page-loader__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 32px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0 0 1px rgb(182 194 205 / 80%), 0 12px 32px rgb(41 56 71 / 12%);
}

.cdav-page-loader__spinner {
    font-size: 2.5rem;
    color: #3732ff;
}

.cdav-page-loader__label {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #293847;
}

body.cdav-page-loader-active {
    overflow: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: var(--fond);
    color: var(--texte);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-user-select: none;
    user-select: none;
}

h1, p {
    margin: 0;
}

.contenu {
    width: 100%;
    max-width: 672px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contenu > * + * {
    margin-top: 24px;
}

.logo {
    width: 100%;
    max-width: 384px;
    padding: 0 16px;
}

.logo__img {
    display: block;
    width: 100%;
    height: auto;
}

.titre {
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
    letter-spacing: -0.025em;
}

.zone-reservee {
    width: 100%;
    min-height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.zone-reservee .cf-turnstile {
    display: inline-block;
}

.texte {
    max-width: 448px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: var(--texte-secondaire);
}

.pied {
    width: 100%;
    height: 16px;
}

@media (min-width: 640px) {
    .titre {
        font-size: 20px;
    }

    .zone-reservee {
        min-height: 40px;
    }
}

.signalement {
    display: none;
    width: 100%;
    max-width: 448px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 12px;
    font-size: 14px;
    line-height: 20px;
    color: var(--texte-secondaire);
}

.signalement.visible {
    display: block;
    animation: apparition 0.4s ease-out;
}

@keyframes apparition {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.form-row {
    display: none;
}

.btn-mail {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 28px;
    background-color: #ff396a;
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn-mail:hover {
    background-color: #e12f5c;
}

.tech-line {
    margin-top: 12px;
    font-family: monospace;
    font-size: 11px;
    color: #9ca3af;
    word-break: break-all;
    -webkit-user-select: text;
    user-select: text;
}

.manual-report {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.manual-report .mail-address {
    font-family: monospace;
    font-weight: 600;
    color: var(--texte);
    -webkit-user-select: text;
    user-select: text;
}

.btn-copy {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background-color: #ffffff;
    color: #0061ff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #0061ff;
    border-radius: 8px;
    cursor: pointer;
}

.btn-copy:hover {
    background-color: #f0f6ff;
}

.btn-copy.copied {
    color: #1a9c56;
    border-color: #1a9c56;
}

.copy-hint {
    margin-top: 12px;
    font-size: 13px;
}

.report-text {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.4;
    color: #333333;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    resize: none;
    overflow: hidden;
    text-align: left;
    -webkit-user-select: text;
    user-select: text;
}
