/* v2/assets/css/mon-carnet.css — /carnet/ : la page du jour (chantier « carnet-vivant », 03/11). Le reste de la page : parcours.css. Rien que des jetons. */

.v2-cj { display: grid; gap: 14px; margin: 0 0 22px; min-width: 0; }
.v2-cj [hidden] { display: none; }
@media (min-width: 960px) { .v2-cj { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 22px; } .v2-cj-feuille, .v2-cj-sans { grid-column: 1; grid-row: 1; } .v2-cj-souci { grid-column: 2; grid-row: 1; } }

/* La feuille : une page réglée, sa marge au crayon. Le contenu ne suit pas les lignes : elles disent qu'on est dans un carnet, elles ne portent rien. */
.v2-cj-feuille, .v2-cj-sans { position: relative; padding: 20px 18px 18px 30px; border-radius: var(--v2-r-carte); background-color: var(--v2-papier); background-image: linear-gradient(to right, transparent 17px, var(--v2-abricot-doux) 17px, var(--v2-abricot-doux) 18px, transparent 18px); box-shadow: var(--v2-ombre-flotte); min-width: 0; }
@media (min-width: 720px) { .v2-cj-feuille, .v2-cj-sans { padding: 26px 30px 24px 48px; background-image: linear-gradient(to right, transparent 27px, var(--v2-abricot-doux) 27px, var(--v2-abricot-doux) 28px, transparent 28px); } }
.v2-cj h2 { margin: 0; font-size: var(--v2-h2-bloc); font-weight: 500; }
.v2-cj h3 { margin: 0 0 8px; font-size: 15px; font-family: var(--v2-texte); font-weight: 600; letter-spacing: 0; color: var(--v2-rouille); }

.v2-cj-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 0 0 14px; }
.v2-cj-tete h2 { flex: 1 1 0; min-width: 0; font-size: var(--v2-h2); line-height: 1.1; overflow-wrap: anywhere; }
.v2-cj-tete .v2-bouton--lien { flex: none; min-height: 44px; }
.cg-v2 .v2-cj-soleil { flex: 1 0 100%; margin: 6px 0 0; font-family: var(--v2-titre); font-style: italic; font-variation-settings: "SOFT" 100; font-size: 17px; line-height: 1.35; color: var(--v2-brun); }

.v2-cj-nouveau { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--v2-r-bloc); background: var(--v2-miel); color: var(--v2-sur-miel); }
.cg-v2 .v2-cj-nouveau h3 { color: inherit; }
.v2-cj-nouveau ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15.5px; line-height: 1.4; }
.cg-v2 .v2-cj-nouveau a { color: inherit; }
.v2-cj-nouveau .v2-bouton--lien { min-height: 44px; margin-left: 8px; color: inherit; }
.v2-cj-saison { margin: 0 0 16px; }

/* L'idée du jour. */
.cg-v2 .v2-cj-attente { margin: 0 0 14px; font-family: var(--v2-titre); font-style: italic; color: var(--v2-noisette); }
.v2-cj-idee { margin: 0 0 18px; }
.v2-cj-billet { position: relative; padding: 2px 56px 2px 0; }
.cg-v2 a.v2-cj-billet__nom { display: block; font-family: var(--v2-titre); font-variation-settings: "SOFT" 100; font-size: clamp(23px, 3vw, 30px); font-weight: 500; line-height: 1.12; color: var(--v2-encre); text-decoration: none; }
.cg-v2 a.v2-cj-billet__nom:hover { text-decoration: underline; }
.cg-v2 .v2-cj-billet p { margin: 5px 0 0; font-size: 15.5px; line-height: 1.35; }
.cg-v2 .v2-cj-billet__ou { color: var(--v2-noisette); }
.cg-v2 .v2-cj-billet__regle { font-weight: 600; color: var(--v2-sauge-fonce); }
.cg-v2 .v2-cj-billet__faits { color: var(--v2-brun); }
.v2-cj-billet .v2-garder { position: absolute; top: 0; right: 0; justify-content: center; width: 44px; min-width: 44px; height: 44px; padding: 0; }
.v2-cj-billet .v2-garder span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.v2-cj .v2-garder[aria-pressed="true"] { background: var(--v2-peche); color: var(--v2-rouille-fonce); }
.cg-v2 .v2-cj-idee__gestes { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.cg-v2 .v2-cj-idee__mien { margin: 12px 0 0; font-size: 15.5px; }
.cg-v2 .v2-cj-idee__note { margin: 10px 0 0; }
.cg-v2 .v2-cj-idee__note a { display: inline-block; min-height: 24px; }
.cg-v2 .v2-cj-idee__vide { margin: 0; }

/* Bientôt : des lignes courtes, la date d'abord. */
.v2-cj-rdv { padding-top: 14px; border-top: 2px dotted var(--v2-sable); }
.v2-cj-dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.v2-cj-date { position: relative; }
.cg-v2 a.v2-cj-date__lien { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 56px; padding: 4px 50px 4px 0; color: inherit; text-decoration: none; }
.v2-cj-date__jour { display: grid; justify-items: center; padding: 5px 2px 6px; border-radius: var(--v2-r-champ); background: var(--v2-sauge); color: var(--v2-sur-sauge); font-size: 12.5px; line-height: 1.1; }
.v2-cj-date.est-mien .v2-cj-date__jour { background: var(--v2-peche); color: var(--v2-rouille-fonce); }
.v2-cj-date__jour b { font-family: var(--v2-titre); font-size: 21px; font-weight: 500; line-height: 1.05; }
.v2-cj-date__texte { display: grid; gap: 1px; min-width: 0; }
.v2-cj-date__titre { font-weight: 600; font-size: 15.5px; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.v2-cj-date__meta { font-size: 14px; line-height: 1.3; color: var(--v2-noisette); }
.v2-cj-date__we { justify-self: start; font-size: 13px; font-weight: 600; color: var(--v2-rouille); }
.v2-cj-date .v2-garder { position: absolute; top: 6px; right: 0; justify-content: center; width: 44px; min-width: 44px; height: 44px; padding: 0; }
.v2-cj-date .v2-garder span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cg-v2 .v2-cj-suite { margin: 12px 0 0; font-size: 15px; }
.cg-v2 .v2-cj-suite a { display: inline-block; min-height: 24px; }

.v2-cj-rdv:first-child { padding-top: 0; border-top: 0; }
/* Sans commune : une question, et rien d'autre à lire. */
.cg-v2 .v2-cj-sans p { margin: 8px 0 14px; max-width: var(--v2-lecture); }

/* S'il y a un souci : toujours là, sans script, sans commune. */
.v2-cj-souci { padding: 18px; border-radius: var(--v2-r-carte); background: var(--v2-peche); color: var(--v2-brun); min-width: 0; }
.cg-v2 .v2-cj-souci h2 { color: var(--v2-encre); margin-bottom: 8px; }
.v2-cj-veto-liste { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.v2-cj-veto { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--v2-r-bloc); background: var(--v2-papier); color: var(--v2-encre); min-width: 0; }
.v2-cj-veto__qui { font-size: 13.5px; font-weight: 600; color: var(--v2-rouille-fonce); }
.cg-v2 a.v2-cj-veto__nom { font-weight: 600; line-height: 1.25; color: inherit; overflow-wrap: anywhere; }
.v2-cj-veto__etat .v2-pastille { white-space: normal; }
.cg-v2 a.v2-cj-veto__appel { justify-self: start; margin-top: 4px; max-width: 100%; }
.v2-cj-gestes { list-style: none; margin: 0; padding: 0; display: grid; }
.cg-v2 .v2-cj-gestes a { display: grid; gap: 1px; min-height: 44px; align-content: center; padding: 7px 0; color: inherit; text-decoration: none; }
.cg-v2 .v2-cj-gestes li + li a { border-top: 1px solid var(--v2-abricot-doux); }
.v2-cj-gestes strong { font-weight: 600; color: var(--v2-encre); }
.cg-v2 .v2-cj-gestes a:hover strong { text-decoration: underline; }
.v2-cj-gestes span { font-size: 14px; line-height: 1.35; }
.cg-v2 .v2-cj-souci > .v2-note { margin: 8px 0 0; color: inherit; }

/* Une ligne gardée dit ce qui vaut aujourd'hui. */
.v2-cj-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 0 62px 10px 16px; font-size: 14.5px; line-height: 1.35; }
.v2-cj-ligne__regle { color: var(--v2-brun); }
.cg-v2 .v2-cj-ligne a.v2-cj-ligne__tel { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; font-weight: 600; color: var(--v2-rouille); text-decoration: underline; }

/* Reçu d'un autre appareil. */
.v2-cn-recu { margin: 0 0 16px; padding: 16px 20px; border-radius: var(--v2-r-carte); background: var(--v2-miel); color: var(--v2-sur-miel); }
.v2-cn-recu[hidden] { display: none; }
.cg-v2 .v2-cn-recu p { margin: 0; }
.v2-cn-recu ul { margin: 6px 0 12px; padding-left: 20px; }
.cg-v2 .v2-cn-recu__gestes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }

/* Une seule page dans un rayon : toute la largeur, pas une demi-colonne vide. */
@media (min-width: 1180px) { .cg-v2 .v2-cn-rayon .v2-trouves:has(> li:only-child) { grid-template-columns: minmax(0, 1fr); } }
/* La marge : plus haute qu'un écran, elle défile avec la page. Les onglets restent dans leur colonne. */
@media (min-width: 960px) { .v2-cn-corps .v2-cn-marge { position: static; } .v2-cn-pages .v2-cn-onglets { margin-inline: 0; padding-inline: 0; } }
.v2-cn-pese { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 12px; padding: 16px 18px; border-radius: var(--v2-r-carte); background: var(--v2-papier); }
.v2-cn-pese label { font-family: var(--v2-titre); font-size: var(--v2-h3); font-weight: 500; }
.v2-cn-pese span { display: flex; align-items: center; gap: 6px; }
.cg-v2 .v2-cn-pese input { width: 86px; min-height: 44px; background: var(--v2-creme); border: 1px solid var(--v2-lin); border-radius: var(--v2-r-champ); padding: 6px 10px; font: inherit; color: inherit; box-sizing: border-box; }
.v2-cn-pese button { grid-column: 1 / -1; justify-self: start; }
.v2-cn-emporter { --v2-teinte: var(--v2-papier); padding: 18px 20px; border-radius: var(--v2-r-carte); background: var(--v2-sable); display: grid; gap: 12px; }
.v2-cn-emporter[hidden], .v2-cn-emporter [hidden] { display: none; }
.cg-v2 .v2-cn-emporter h2 { margin: 0; font-size: var(--v2-h2-bloc); font-weight: 500; }
.cg-v2 .v2-cn-emporter__ligne { display: grid; gap: 4px; justify-items: start; margin: 0; }
.cg-v2 .v2-cn-emporter .v2-note { margin: 0; color: var(--v2-brun); }

/* L'invitation : la race ne prend plus tout le téléphone. */
@media (max-width: 719px) {
	.cg-v2 .v2-cn-page--race .v2-trouve--tuile a.v2-trouve__lien { display: flex; align-items: center; gap: 12px; padding: 0 8px 0 0; }
	.cg-v2 .v2-cn-page--race .v2-trouve--tuile .v2-trouve__image { flex: none; width: 104px; aspect-ratio: 1; margin: 0; }
	.cg-v2 .v2-cn-page--race .v2-trouve--tuile .v2-trouve__texte { padding: 0; }
}

/* Une feuille pour le frigo : les numéros et ce qu'on garde, rien d'autre. */
@media print {
	.cg-v2 header.v2-entete, .cg-v2 footer, .cg-v2 .v2-barre, .v2-cj-feuille, .v2-cj-sans, .v2-cn-onglets, .v2-cn-amorce, .v2-cn-marge, .v2-cn-vider, .v2-cn-import, .v2-cn-recu, .v2-cn-tete__moi, .v2-cn-tete__nb, .v2-nouveautes, .v2-garder, .v2-cn-passes, .v2-cn-rayon__suite, .v2-cn-rayon--achats, .v2-cn-rayon--races, .v2-cn-rayon--lire, .v2-cn-rayon--sorties, .v2-cj-ligne__regle, .v2-cj-gestes li:not(:has(.v2-cj-tel)) { display: none !important; }
	.cg-v2 body, body.cg-v2 { background: none; }
	.v2-cj, .v2-cn-corps, .v2-cn-pages { display: block; }
	.v2-cj-souci, .v2-cn-rayon { padding: 0; margin: 0 0 14px; background: none; break-inside: avoid; }
	.v2-cj-veto { padding: 4px 0; background: none; }
	.cg-v2 a { color: inherit; text-decoration: none; }
	.cg-v2 a.v2-bouton, .cg-v2 a.v2-cj-veto__appel { padding: 0; border: 0; background: none !important; color: inherit !important; min-height: 0; font-weight: 600; }
	.v2-cn-rayon .v2-trouves { display: block; }
	.v2-trouve { padding: 0; margin: 0 0 4px; box-shadow: none; background: none; }
	.v2-trouve__vignette, .v2-trouve__image, .v2-pastille { display: none !important; }
}

/* De ce qu'on garde à une question. */
.v2-cn-question { padding: 18px 20px; border-radius: var(--v2-r-carte); background: var(--v2-papier); }
.v2-cn-question[hidden], .v2-cn-question [hidden] { display: none; }
.cg-v2 .v2-cn-question h2 { margin: 0 0 6px; font-size: var(--v2-h2-bloc); font-weight: 500; }
.cg-v2 .v2-cn-question .v2-note { margin: 0; }
.v2-cn-question ul { list-style: none; margin: 0; padding: 0; display: grid; }
.cg-v2 .v2-cn-question__idees a { display: block; padding: 8px 0; min-height: 44px; box-sizing: border-box; font-family: var(--v2-titre); font-style: italic; font-variation-settings: "SOFT" 100; font-size: 18px; line-height: 1.3; color: var(--v2-encre); text-decoration: none; }
.cg-v2 .v2-cn-question__idees a:hover { text-decoration: underline; }
.v2-cn-question__miennes li { display: grid; gap: 1px; padding: 6px 0 8px; }
.cg-v2 .v2-cn-question__miennes a { font-weight: 600; }
.v2-cn-question__miennes span { font-size: 14px; color: var(--v2-noisette); }
.cg-v2 .v2-cn-question__tout { margin: 4px 0 0; font-size: 15px; }
.cg-v2 .v2-cn-question__tout a { display: inline-block; min-height: 24px; }
@media (max-width: 599px) { .cg-v2 .v2-cj-suite a { display: inline-flex; align-items: center; min-height: 44px; } }
