/* ===========================
   THEME "MARIAGE" — Capsule 💍
   =========================== */

:root{
    /* Palette mariage: ivoire, blush, champagne, sauge */
    --bg: #fbf6f1;           /* fond ivoire */
    --card: rgba(255,255,255,.78); /* verre doux */
    --txt: #2a2430;          /* texte prune très foncé */
    --muted: #6f6573;        /* texte secondaire */
    --accent: #d7a86e;       /* doré champagne */
    --accent2: #e7b8c4;      /* rose poudré */
    --danger:#c84b4b;

    --ring: rgba(215,168,110,.35);
    --border: rgba(42,36,48,.10);
    --shadow: 0 22px 70px rgba(36, 26, 18, .18);

    --radius: 22px;
}

*{ box-sizing:border-box; }

body{
    margin:0;
    min-height: 100svh;
    min-height: 100dvh;

    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
    color: var(--txt);
    display:grid;
    place-items:center;
    padding: 24px;

    /* Fond mariage: dégradé doux + "bokeh" + motif très léger */
    background:
            radial-gradient(900px 500px at 15% 10%, rgba(231,184,196,.35), transparent 55%),
            radial-gradient(900px 600px at 85% 25%, rgba(215,168,110,.28), transparent 58%),
            radial-gradient(800px 600px at 50% 100%, rgba(175,196,171,.25), transparent 60%),
            linear-gradient(180deg, #fff 0%, var(--bg) 38%, #fff 100%);
}

/* petit motif "papeterie" subtil */
body::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    opacity:.20;
    background-image:
            radial-gradient(circle at 20px 20px, rgba(215,168,110,.18) 2px, transparent 2.5px),
            radial-gradient(circle at 70px 60px, rgba(231,184,196,.18) 2px, transparent 2.5px);
    background-size: 140px 140px, 170px 170px;
    mix-blend-mode:multiply;
}

.card{
    width:min(460px,100%);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position:relative;
    overflow:hidden;
}

/* légère “dorure” en coin */
.card::after{
    content:"";
    position:absolute;
    inset:-40% -40% auto auto;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(215,168,110,.22), transparent 60%);
    transform: rotate(25deg);
    pointer-events:none;
}

/* Titres plus “invitation” (sans dépendre d’une police externe) */
h1{
    margin:0 0 8px;
    font-size: 34px;
    letter-spacing: .2px;
    font-weight: 900;
}
h2{
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .2px;
}

p{ margin:0 0 18px; color: var(--muted); line-height: 1.55; }

label{
    display:block;
    margin:14px 0 6px;
    color: var(--muted);
    font-size:14px;
}

input{
    width:100%;
    padding:12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(42,36,48,.14);
    background: rgba(255,255,255,.70);
    color: var(--txt);
    font-size:15px;
    box-shadow: 0 8px 24px rgba(36,26,18,.06);
}

input::placeholder{ color: rgba(111,101,115,.75); }

input:focus{
    outline:none;
    border-color: rgba(215,168,110,.70);
    box-shadow: 0 0 0 4px var(--ring);
}

/* Bouton "doré/champagne" */
button{
    margin-top:18px;
    width:100%;
    padding:12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(215,168,110,.45);
    background:
            linear-gradient(135deg, rgba(215,168,110,.95), rgba(231,184,196,.90));
    color: #fff;
    font-weight: 900;
    letter-spacing:.2px;
    cursor:pointer;
    box-shadow: 0 14px 30px rgba(215,168,110,.18);
}

button:hover{ filter: brightness(1.03); transform: translateY(-1px); }
button:active{ transform: translateY(0px); }

/* Liens/boutons type "Se déconnecter" */
a, .btn-link{
    color: inherit;
}

.btn-link{
    display:inline-block;
    padding:10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(42,36,48,.14);
    background: rgba(255,255,255,.55);
    text-decoration:none;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(36,26,18,.08);
}

.btn-link:hover{
    background: rgba(255,255,255,.75);
}

/* Erreurs */
.error-slot{
    margin-top:14px;
    min-height: 20px;
}

.error{
    color: var(--danger);
    font-size:14px;
    text-align:center;
    visibility:hidden;
}

.error.is-visible{ visibility:visible; }

/* ======== BONUS: styles utiles pour la page index.php (liste vidéos) ======== */
/* Même si tes classes sont en inline <style>, celles-ci harmonisent le rendu. */
.wrap{ width:min(1100px,100%); }

.list{
    display:grid;
    gap: 12px;
    margin-top: 10px;
}

.item{
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(42,36,48,.10);
    background: rgba(255,255,255,.58);
    box-shadow: 0 14px 35px rgba(36,26,18,.08);
}

.title{
    font-weight: 900;
    font-size: 18px;
    letter-spacing: .2px;
}

.small{
    color: var(--muted);
    font-size: 13px;
}

.timer{
    display:grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap:0;
    width:100%;
    border-radius:16px;
    overflow:hidden;

    border:1px solid rgba(42,36,48,.10);
    background: rgba(255,255,255,.55);
    box-shadow: 0 10px 24px rgba(36,26,18,.08);
}

.pill{
    padding:12px 10px;
    display:grid;
    justify-items:center;
    align-content:center;
    border:0;
    background: transparent;
}

.pill:not(:last-child){
    border-right:1px solid rgba(42,36,48,.08);
}

.val{
    font-weight: 900;
    font-size: 26px;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    letter-spacing: .5px;
}

.lab{
    margin-top: 4px;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .12em;
    text-transform: uppercase;
}

@media (max-width: 520px){
    .timer{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pill{ padding: 12px 8px; }
    .val{ font-size: 22px; }
    .pill:not(:last-child){ border-right: 0; }
    .pill:nth-child(odd){ border-right:1px solid rgba(42,36,48,.08); }
    .pill:nth-child(-n+2){ border-bottom:1px solid rgba(42,36,48,.08); }
}

video{
    width:100%;
    border-radius: 18px;
    border: 1px solid rgba(42,36,48,.10);
    background:#000;
    max-height: 60vh;
    box-shadow: 0 16px 40px rgba(36,26,18,.12);
}
