/* Convishot — espace hôte (complète guest.css : variables, boutons, champs). */
.idf-host .idf-screen.idf-host-main { max-width: 860px; }
.idf-host a { color: var(--idf-fg); }
/* Liens présentés en bouton (ZIP, cartes…) : la couleur des liens ne doit pas l'emporter (texte noir sur fond noir). */
.idf-host a.idf-btn { color: var(--idf-bg); text-decoration: none; }
.idf-host a.idf-btn--ghost { color: var(--idf-fg); }
.idf-host a.idf-btn--danger { color: #a31d1d; }
.idf-host .idf-title { text-decoration: none; }

.idf-inline { display: flex; align-items: center; }
.idf-inline > * { margin-left: 12px; }
.idf-muted { color: var(--idf-muted); font-size: 15px; }
.idf-link-btn { background: none; border: 0; padding: 8px 0; min-height: 44px; color: var(--idf-fg); text-decoration: underline; font: inherit; cursor: pointer; }

.idf-card-box {
	background: var(--idf-surface);
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: var(--idf-radius);
	padding: 20px;
	margin: 0 0 16px;
}

.idf-host select,
.idf-host input[type="email"],
.idf-host input[type="password"],
.idf-host .idf-password input[type="text"],
.idf-host input[type="datetime-local"] {
	width: 100%;
	min-height: 52px;
	padding: 12px 14px;
	margin-bottom: 18px;
	border: 2px solid var(--idf-accent);
	border-radius: var(--idf-radius);
	background: var(--idf-surface);
	color: var(--idf-fg);
	font: inherit;
	font-size: 18px;
}

.idf-host fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.idf-host legend { font-weight: 600; margin-bottom: 8px; }
.idf-host .idf-check { margin-bottom: 8px; }

/* Champ piège anti-robots : hors écran, jamais rempli par un humain */
.idf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.idf-notice { padding: 12px 16px; border-radius: var(--idf-radius); background: #e7efe3; color: #1f3a17; }
.idf-notice--error { background: #f7e1df; color: #6e1410; }
.idf-notice--warn { background: #fff2c9; color: #4a3800; }

.idf-albums { list-style: none; margin: 0 0 24px; padding: 0; }
.idf-album-title { font-size: 20px; font-weight: 700; margin-right: 8px; }
.idf-badge { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 99px; background: #e9e5dc; color: #3b3832; }
.idf-badge--collecting { background: #fff2c9; color: #5a4300; }
.idf-badge--revealed { background: #dcefd6; color: #1f3a17; }

.idf-stats { display: flex; flex-wrap: wrap; margin: 0 -6px 16px; }
.idf-stats > div { flex: 1 1 160px; margin: 6px; padding: 14px; background: var(--idf-surface); border-radius: var(--idf-radius); }
.idf-stats strong { display: block; font-size: 20px; }
.idf-stats span { color: var(--idf-muted); font-size: 14px; }

.idf-host .idf-share-tools input[type="text"] { margin-bottom: 8px; }
.idf-host .button { min-height: 44px; padding: 8px 14px; margin: 4px 4px 4px 0; border: 2px solid var(--idf-fg); border-radius: var(--idf-radius); background: transparent; color: var(--idf-fg); font: inherit; cursor: pointer; }
.idf-host .button-primary { background: var(--idf-fg); color: var(--idf-bg); }
.idf-host .description { color: var(--idf-muted); font-size: 14px; }

.idf-offers { margin: 0 0 24px; }
.idf-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.idf-offer > div { margin: 4px 12px 4px 0; }
.idf-offer .idf-btn { width: auto; }
.idf-price { font-weight: 700; font-size: 20px; }

.idf-btn--ghost { background: transparent; color: var(--idf-fg); border: 2px solid var(--idf-fg); margin-top: 24px; }

.idf-host .idf-grid .idf-photo img { width: 100%; height: auto; display: block; border-radius: 6px; }

/* Choix du palier à la création de l'album */
.idf-tier { display: flex; align-items: center; padding: 14px 16px; margin: 0 0 8px; border: 2px solid rgba(0, 0, 0, .12); border-radius: var(--idf-radius); background: var(--idf-surface); cursor: pointer; }
.idf-tier input { margin: 0 12px 0 0; width: 20px; height: 20px; flex: 0 0 auto; }
.idf-tier-name { flex: 1 1 auto; font-weight: 600; }
.idf-tier-name small { display: block; font-weight: 400; color: var(--idf-muted); font-size: 14px; }
.idf-tier-price { font-weight: 700; margin-left: 12px; white-space: nowrap; }
.idf-tier:has(input:checked) { border-color: var(--idf-fg); }
.idf-tier.is-disabled { opacity: .55; cursor: not-allowed; }

@media print {
	.idf-noprint, .idf-top { display: none !important; }
}

/* « Mon espace » : organisateur et invité côte à côte */
.idf-host .idf-screen.idf-host-main { max-width: 980px; }
.idf-access { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.idf-access-card { flex: 1 1 320px; margin: 0 8px 16px; }
.idf-access-card h2 { margin-top: 0; }
.idf-social-btn { display: flex; align-items: center; justify-content: center; min-height: 52px; margin: 0 0 10px; padding: 12px 16px; border-radius: var(--idf-radius); font-weight: 600; text-decoration: none; }
.idf-social-btn svg { margin-right: 10px; flex: 0 0 auto; }
.idf-host .idf-social-btn--apple { background: #000; color: #fff; }
.idf-host .idf-social-btn--google { background: #fff; color: #1f1f1f; border: 1px solid #747775; }
.idf-or { display: flex; align-items: center; color: var(--idf-muted); font-size: 14px; margin: 16px 0; }
.idf-or::before, .idf-or::after { content: ""; flex: 1 1 auto; height: 1px; background: rgba(0, 0, 0, .15); }
.idf-or span { padding: 0 12px; }
.idf-host .idf-code-input { width: 100%; min-height: 52px; padding: 12px 14px; margin-bottom: 12px; border: 2px solid var(--idf-accent); border-radius: var(--idf-radius); background: var(--idf-surface); font: inherit; font-size: 22px; letter-spacing: .18em; text-transform: uppercase; }
.idf-joined { margin-top: 18px; }
.idf-joined h3 { font-size: 16px; margin: 0 0 8px; }
.idf-joined-list { margin: 0; padding-left: 18px; }
.idf-joined-list li { margin-bottom: 6px; }
.idf-join-details summary { cursor: pointer; font-weight: 600; }
.idf-join-details[open] summary { margin-bottom: 12px; }

/* Mot de passe */
.idf-password { position: relative; }
.idf-password input { padding-right: 96px !important; }
.idf-reveal-pass { position: absolute; right: 12px; top: 4px; font-size: 15px; }
.idf-link-details { margin-top: 18px; }
.idf-link-details summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.idf-host input.idf-readonly { width: 100%; min-height: 44px; margin-bottom: 14px; padding: 8px 0; border: 0; background: none; font: inherit; color: var(--idf-muted); }

/* En-tête : panier et déconnexion regroupés à droite */
.idf-host .idf-top .idf-cart { margin-left: auto; margin-right: 12px; min-height: 40px; padding: 6px 12px; }
@media (max-width: 600px) {
	.idf-host .idf-top .idf-inline .idf-muted { display: none; }
}

/* Examen des photos et téléchargement */
.idf-download { margin: 0 0 16px; }
.idf-btn--inline { display: inline-block; width: auto; margin: 0 8px 8px 0; text-decoration: none; }
.idf-photo--select { position: relative; margin: 0; }
.idf-photo--select img { width: 100%; height: auto; display: block; border-radius: 6px; }
.idf-photo-check { display: flex; align-items: center; min-height: 40px; font-size: 14px; }
.idf-photo-check input { width: 20px; height: 20px; margin: 0 8px 0 0; }
.idf-photo-time { color: var(--idf-muted, #6b6b6b); font-size: 12px; white-space: nowrap; }
.idf-photo[hidden] { display: none; }
.idf-sortbar { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 14px; }
.idf-sortbar label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.idf-sortbar select { min-height: 40px; max-width: 100%; font: inherit; font-weight: 400; }
.idf-photo--select:has(input:checked) img { outline: 4px solid #a31d1d; outline-offset: -4px; opacity: .6; }
.idf-btn--danger { border-color: #a31d1d; color: #a31d1d; }
.idf-review-option { align-items: flex-start; margin: 4px 0 18px; }

/* Offre photographes */
.idf-pro-panel { margin: 0 0 24px; padding: 18px; border-radius: var(--idf-radius); background: #fff2c9; }
.idf-pro-panel h2 { margin-top: 0; }
.idf-pro-panel details summary, .idf-pro-teaser summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.idf-pro-panel details[open] summary { margin-bottom: 12px; }
.idf-client-row { display: flex; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.idf-client-row > * { margin: 4px 10px 4px 0; }
.idf-client-row .idf-inline > * { margin-left: 0; }
.idf-brand-preview { max-height: 60px; width: auto; vertical-align: middle; margin-right: 12px; }
.idf-pro-panel input[type="text"], .idf-pro-panel input[type="color"], .idf-pro-panel input[type="file"] { width: 100%; min-height: 48px; padding: 10px 12px; margin-bottom: 14px; border: 2px solid var(--idf-accent); border-radius: var(--idf-radius); background: var(--idf-surface); font: inherit; }
.idf-pro-panel input[type="color"] { width: 80px; padding: 4px; }

/* Date de révélation à la française : jour, mois, année, heure, minutes */
.idf-datefields { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.idf-datefields select { width: auto !important; min-width: 0; margin: 0 6px 6px 0 !important; }
.idf-datefields-sep { margin: 0 8px 6px 2px; }

/* Démonstration publique */
.idf-demo-note { margin: 0 16px 10px; padding: 10px 14px; border-radius: var(--idf-radius); background: #fff2c9; color: #4a3800; font-size: 15px; }
/* Test du réseau */
.idf-net-verdict { font-size: 19px; font-weight: 700; padding: 12px 14px; border-radius: var(--idf-radius); }
.idf-net-verdict--great, .idf-net-verdict--ok { background: #dcefd6; color: #1f3a17; }
.idf-net-verdict--weak { background: #fff2c9; color: #4a3800; }
.idf-net-verdict--bad { background: #f7e1df; color: #6e1410; }

.idf-print-form label { display: block; margin: 0 0 12px; font-weight: 600; }
.idf-print-form select { display: block; margin-top: 6px; }

/* Jeux photo de l'album : gratuits / Pack jeux, coupons */
.idf-game-option { margin-bottom: 12px; }
.idf-game-option.is-locked { opacity: .6; }
.idf-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--idf-fg); color: var(--idf-bg); font-size: 12px; font-weight: 700; vertical-align: middle; }
.idf-tag--free { background: #2e7d4f; color: #fff; }
.idf-coupon-form { display: grid; gap: 8px; margin-bottom: 16px; }
.idf-offer select { margin-top: 6px; max-width: 100%; }
.idf-game-option + .idf-game-desc { margin: -4px 0 16px 36px; }
.idf-game-desc-rules { margin: 0 0 6px; color: var(--idf-muted); font-size: 15px; }
.idf-game-desc-items summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.idf-game-desc-items ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; color: var(--idf-muted); }
.idf-game-list summary { cursor: pointer; }
.idf-game-list textarea { display: block; width: 100%; margin: 6px 0 10px; padding: 10px 12px; border: 2px solid var(--idf-fg); border-radius: var(--idf-radius); background: var(--idf-surface); color: var(--idf-fg); font: inherit; font-size: 16px; line-height: 1.5; resize: vertical; }
.idf-game-list ol { margin: 10px 0 0; padding-left: 22px; }
.idf-tag--reported { background: #b8401c; color: #fff; margin: 4px 0 0; }
/* Photo signalée : floutée dans l'espace hôte, avec la mention ; la photo nette s'ouvre d'un geste volontaire. */
.idf-photo-media { position: relative; display: block; overflow: hidden; border-radius: 6px; }
.idf-photo--flagged .idf-photo-media img { -webkit-filter: blur(18px); filter: blur(18px); transform: scale(1.15); }
.idf-reported-mark { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px; background: rgba(31, 42, 55, .45); color: #fff; text-align: center; line-height: 1.25; }
.idf-reported-mark strong { font-size: 15px; }
.idf-reported-mark small { font-size: 12px; opacity: .9; }
@media print { .idf-photo--flagged { display: none; } }

/* Remise des derniers jours de la galerie sur les tirages */
.idf-promo { margin: 8px 0 14px; padding: 10px 12px; border-radius: 8px; background: #fbe9e2; color: #8a2f12; font-weight: 600; }

/* Messages d'aide */
.idf-help textarea, .idf-help select { width: 100%; font: inherit; padding: 10px; border-radius: 8px; border: 1px solid var(--idf-muted); margin-bottom: 14px; }
.idf-help input[type="text"] { margin-bottom: 14px; }
.idf-threads { list-style: none; padding: 0; }
.idf-threads li { padding: 10px 0; border-bottom: 1px solid rgba(31, 42, 55, .12); }
.idf-thread { margin: 16px 0; }
.idf-msg { margin: 0 32px 12px 0; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid rgba(31, 42, 55, .12); }
.idf-msg--staff { margin: 0 0 12px 32px; background: #eef1f4; }
.idf-msg-meta { margin: 0 0 6px; font-size: 13px; color: var(--idf-muted); }
.idf-msg-body { white-space: pre-wrap; }

/* Questionnaire des bêta-testeurs */
.idf-beta fieldset { border: 0; margin: 0 0 18px; }
.idf-beta legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; }
.idf-beta legend h2 { margin: 0; }
.idf-beta legend + * { clear: both; }
.idf-beta .idf-q { margin: 0 0 18px; }
.idf-beta .idf-q label, .idf-beta .idf-q-label { display: block; font-weight: 600; margin: 0 0 6px; }
.idf-beta textarea { width: 100%; font: inherit; padding: 10px; border-radius: 8px; border: 1px solid var(--idf-muted); }
.idf-beta .idf-q-sub { font-weight: 400; color: var(--idf-muted); margin-top: 8px; }
.idf-beta .idf-choices { display: flex; flex-direction: column; gap: 6px; }
.idf-beta .idf-choices--row { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.idf-beta .idf-choice { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; }
.idf-beta .idf-choices--row .idf-choice { min-width: 44px; padding: 6px 8px; border: 1px solid var(--idf-muted); border-radius: 8px; justify-content: center; }
.idf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.idf-beta fieldset.idf-card-box { padding: 18px 16px 4px; }

/* Parrainage */
.idf-referral input { width: 100%; font: inherit; padding: 10px; border-radius: 8px; border: 1px solid var(--idf-muted); }

/* Préparez le jour J, statistiques */
.idf-checklist ol { padding-left: 20px; margin: 0; }
.idf-checklist li { margin: 0 0 12px; }
.idf-stats summary { cursor: pointer; list-style: none; }
.idf-stats summary h2 { display: inline; }
.idf-stats summary::after { content: " ▾"; }
.idf-bars { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
.idf-bars th { width: 38%; text-align: left; font-weight: 400; padding: 3px 8px 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idf-bars td { padding: 3px 0; }
.idf-bar { display: inline-block; height: 10px; min-width: 2px; border-radius: 4px; background: #E4572E; vertical-align: middle; max-width: 75%; }

/* Co-hôtes */
.idf-cohost-list { list-style: none; margin: 0 0 16px; padding: 0; }
.idf-cohost-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid rgba(31, 42, 55, .1); }
.idf-cohost-list li > span:first-child { flex: 1 1 100%; overflow-wrap: anywhere; font-weight: 600; }
.idf-cohost-list .idf-inline-form { margin: 0 0 0 auto; }
.idf-cohost-form .idf-btn--ghost { margin-top: 12px; }

/* Accueil personnalisé (option) */
.idf-welcome-preview { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.idf-welcome-form textarea { width: 100%; box-sizing: border-box; }
.idf-swatches { border: 0; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.idf-swatches legend { font-weight: 700; margin-bottom: 6px; }
.idf-swatch { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 1px solid rgba(31, 42, 55, .2); border-radius: 22px; cursor: pointer; }
.idf-swatch i { width: 18px; height: 18px; border-radius: 50%; display: inline-block; }
.idf-swatch:has(input:checked) { border-color: var(--idf-fg); box-shadow: 0 0 0 1px var(--idf-fg); }
.idf-welcome-form input[type=file] { display: block; width: 100%; margin: 6px 0 4px; min-height: 44px; font: inherit; }
.idf-welcome-form label[for] { display: block; font-weight: 700; margin-top: 12px; }
.idf-welcome-form .idf-hint { margin-top: 4px; }
.idf-welcome-form .idf-btn { margin-top: 12px; }
.idf-welcome-logo { display: block; max-height: 60px; max-width: 220px; margin: 8px 0; }
.idf-preview-box { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(31, 42, 55, .12); }
.idf-preview-box h3 { margin: 0 0 6px; }
.idf-preview-qr { width: 200px; max-width: 100%; margin: 10px 0; background: #fff; }
.idf-preview-qr svg { display: block; width: 100%; height: auto; }
.idf-colors { border: 0; padding: 0; margin: 16px 0; }
.idf-colors legend { font-weight: 700; margin-bottom: 6px; }
.idf-color-row { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px 34px; }
.idf-color-row input[type=color] { width: 56px; height: 44px; padding: 2px; border: 1px solid rgba(31, 42, 55, .3); border-radius: 10px; background: #fff; cursor: pointer; flex: 0 0 auto; }
.idf-color-row label { font-weight: 400 !important; margin: 0 !important; }

/* Concours */
.idf-contest .idf-kicker { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: 13px; color: #ad3b19; margin: 0 0 4px; }
.idf-prizes { margin: 0 0 8px; padding-left: 18px; }
.idf-prizes li { margin: 4px 0; }
.idf-contest-form label[for] { display: block; font-weight: 700; margin-top: 12px; }
.idf-contest-form input[type=text], .idf-contest-form input[type=email], .idf-contest-form textarea { width: 100%; box-sizing: border-box; }
.idf-contest-form .idf-btn { margin-top: 16px; }
.idf-rules p { margin: 0 0 12px; }
.idf-contest-form .idf-hint { margin-top: 12px; }
