/* ==================================================================
   Le bandeau des cookies (10 novembre 2026), dans la charte d'Airborne :
   Urbanist, bleu nuit et indigo. Une carte centree, le degrade de la marque,
   l'avion et sa trainee en pointilles (« Ciel, la trajectoire », choisi par
   Theo). Il flotte en bas de l'ecran jusqu'au choix, sans bloquer la page
   (exception voulue par Theo, CLAUDE.md). Code : inc/cookies.php.
   ================================================================== */

/* Cache tant qu'il n'y a rien a dire, montre des la premiere image sinon. */
.ck { display: none; font-size: 13.5px; line-height: 1.5; }
.ck-a-montrer .ck, .ck.ck-ouvert { display: block; }

/* Sans choix (aujourd'hui) ou avec choix (le jour d'un cookie facultatif). */
.ck-si-choix, .ck-si-choix-bloc { display: none; }
.ck-si-info { display: contents; }
.ck-avec-choix .ck-si-info { display: none; }
.ck-avec-choix .ck-si-choix { display: contents; }
.ck-avec-choix .ck-si-choix-bloc { display: block; }
.ck-avec-choix .ck-niveau2-pied .ck-si-choix { display: inline-flex; }

/* ---------- Le bandeau des cookies, flottant en bas jusqu'au choix ---------- */
.ck {
	position: fixed; z-index: 90;
	left: 16px; right: 16px; margin: 0 auto; max-width: 720px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	max-height: calc(100svh - 32px); overflow-y: auto; overscroll-behavior: contain;
	padding: 22px 24px 20px; border-radius: 20px;
	background: var(--degrade); color: #fff;
	box-shadow: 0 12px 32px rgba(31, 36, 46, 0.14), 0 2px 6px rgba(31, 36, 46, 0.08);
	animation: ck-monte 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes ck-monte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ck { animation: none; } }

/* La trajectoire : la trainee monte du pied de la carte jusqu'a l'avion, a droite du texte.
   Elle couvre le bloc du texte, marges comprises : le detail ouvert au-dessus reste net. */
.ck-dedans { position: relative; }
.ck-route { position: absolute; top: -22px; left: -24px; width: calc(100% + 48px); height: calc(100% + 42px); pointer-events: none; }
.ck-dedans > *:not(.ck-route) { position: relative; }
.ck-avion { display: none; }

.ck-titre { font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; color: #fff; margin-bottom: 6px; padding-right: 96px; text-wrap: balance; }
.ck-texte { color: #D9D8EE; max-width: 560px; margin-bottom: 16px; }
.ck-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ck-actions .btn { min-height: 40px; }
.ck-lien { color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; }
.ck-lien:hover { text-decoration: underline; }

/* Les boutons. Refuser et accepter ont la meme forme et la meme couleur. */
.ck-btn-clair { background: #fff; color: var(--nuit); }
.ck-btn-clair:hover { background: #E9E8F5; }
.ck-btn-contour { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.ck-btn-contour:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85); }
.ck-btn-contour[aria-expanded="true"] { background: rgba(255, 255, 255, 0.1); }

/* ---------- Le second niveau : le detail et les choix ---------- */
.ck-niveau2 { margin-bottom: 14px; }
.ck-ligne:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ck-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; overflow: hidden; }
.ck-ligne { padding: 10px 12px; background: rgba(20, 18, 59, 0.55); }
.ck-detail dt { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; color: #fff; }
.ck-detail dd { color: #C9C8E6; margin-top: 3px; font-size: 13px; }
.ck-duree { display: block; color: #C9C8E6; margin-top: 2px; }
.ck-etiquette { flex-shrink: 0; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, 0.14); border-radius: 4px; padding: 2px 6px; }
.ck-niveau2-pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

/* L'interrupteur d'une categorie facultative : eteint par defaut, cible de 40 px. */
.ck-interrupteur { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 40px; margin: -8px -6px -8px 0; flex-shrink: 0; }
.ck-interrupteur input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ck-interrupteur span { width: 38px; height: 22px; border-radius: 6px; background: #D5D8DC; transition: background var(--transition); position: relative; }
.ck-interrupteur span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 4px; background: #fff; transition: transform var(--transition); }
.ck-interrupteur input:checked + span { background: #7C86E8; }
.ck-interrupteur input:checked + span::after { transform: translateX(16px); }
.ck-interrupteur input:focus-visible + span { outline: 2.5px solid #fff; outline-offset: 2px; }

/* ---------- Telephone ---------- */
@media (max-width: 640px) {
	.ck { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-height: calc(100svh - 24px); padding: 18px 16px 16px; }
	/* La meme idee en petit, au-dessus du titre centre. */
	.ck-route { display: none; }
	.ck-avion { display: block; width: 140px; height: 36px; margin: 0 auto 8px; pointer-events: none; }
	.ck-titre { font-size: 18px; text-align: center; padding-right: 0; }
	.ck-actions .btn { flex: 1 1 calc(50% - 4px); }
	.ck-actions [data-ck-niveau2] { flex-basis: 100%; }
	.ck-detail { grid-template-columns: 1fr; }
}
