/* ==========================================================================
   Deuxième Tasse : CSS de l'identité. Version 0.3.1 (24-11-26).
   Référence : ROOIBOS/Site/02 - Système de design v0.2.
   Uniquement des couleurs de la palette Blocksy :
    1 cognac (achat)        2 cognac foncé (survol)  3 encre (texte)
    4 brun doux             5 filets                 6 crème
    7 blanc cassé (fond)    8 blanc                  9 vert feuillage
   10 miel (La pause)      11 pistache (Glacé)      12 rose (Offrir)
   13 à 16 fonds doux des moments (pause, soir, glacé, offrir)
   17 encre fixe (texte sur fonds de couleur)       18 clair fixe (texte sur vert et cognac)
   ========================================================================== */

/* --- 1. Liens et focus ---------------------------------------------------- */

.entry-content a:not(.wp-element-button):not(.wp-block-button__link) {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

/* Titres cliquables (cartes, guide) : couleur du titre, souligné au survol seulement */
.entry-content :is(h1, h2, h3, h4) a:not(.wp-element-button) {
	color: inherit;
	text-decoration: none !important;
}
.entry-content :is(h1, h2, h3, h4) a:not(.wp-element-button):hover {
	text-decoration: underline !important;
	text-underline-offset: 4px;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--theme-palette-color-3);
	outline-offset: 3px;
	box-shadow: 0 0 0 3px var(--theme-palette-color-18);
}

/* --- 2. En-tête : liseré rayé sous le bandeau, logo souligné ------------- */

/* Le liseré vert et blanc cassé pend sous le bandeau, comme un store. */
#header [data-row*="top"]::after {
	content: "";
	display: block;
	height: 10px;
	background: repeating-linear-gradient(90deg,
		var(--theme-palette-color-9) 0 22px,
		var(--theme-palette-color-7) 22px 44px);
}

/* Logo (titre du site) souligné d'une rayure verte */
#header .site-title a {
	padding-bottom: 9px;
	background-image: repeating-linear-gradient(90deg,
		var(--theme-palette-color-9) 0 8px,
		transparent 8px 16px);
	background-size: 100% 5px;
	background-repeat: no-repeat;
	background-position: 0 100%;
}

/* --- 3. Titres ------------------------------------------------------------ */

.is-style-dt-titre-vitrine {
	font-size: clamp(40px, 5vw, 68px) !important;
	line-height: 1.02 !important;
}

/* --- 4. Pastilles de moment (Paragraphe) ---------------------------------- */

p[class*="is-style-dt-pastille-"] {
	display: inline-block;
	width: fit-content;
	margin-block: 0;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--theme-palette-color-17);
}
.is-style-dt-pastille-pause  { background: var(--theme-palette-color-10); }
.is-style-dt-pastille-glace  { background: var(--theme-palette-color-11); }
.is-style-dt-pastille-offrir { background: var(--theme-palette-color-12); }
.is-style-dt-pastille-soir   { background: var(--theme-palette-color-9); color: var(--theme-palette-color-18) !important; }

/* --- 5. Surtitre et clin d'œil (Paragraphe) ------------------------------- */

.is-style-dt-surtitre {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.is-style-dt-surtitre:not(.has-text-color) { color: var(--theme-palette-color-9); }

.is-style-dt-clin-oeil {
	font-family: 'Rubik', sans-serif;
	font-weight: 700;
	font-size: 22px;
	line-height: 1.2;
}

/* --- 6. Rayures (Séparateur) ---------------------------------------------- */

hr[class*="is-style-dt-rayure-"] {
	--dt-rayure: var(--theme-palette-color-9);
	width: 100% !important;
	max-width: none !important;
	height: 12px !important;
	margin-block: 0;
	border: none !important;
	border-radius: 6px;
	opacity: 1;
	background: repeating-linear-gradient(90deg,
		var(--dt-rayure) 0 14px,
		transparent 14px 28px) !important;
}
.is-style-dt-rayure-pause  { --dt-rayure: var(--theme-palette-color-10) !important; }
.is-style-dt-rayure-soir   { --dt-rayure: var(--theme-palette-color-9) !important; }
.is-style-dt-rayure-glace  { --dt-rayure: var(--theme-palette-color-11) !important; }
.is-style-dt-rayure-offrir { --dt-rayure: var(--theme-palette-color-12) !important; }

/* --- 7. Groupes ------------------------------------------------------------ */

/* Carte : coins arrondis, dernier élément poussé en bas */
.is-style-dt-carte {
	display: flex;
	flex-direction: column;
	border-radius: 20px;
	overflow: hidden;
}
.is-style-dt-carte > :last-child { margin-top: auto; }

/* Grand encadré : vitrine, tableau du comptoir, coffret */
.is-style-dt-encadre {
	border-radius: 28px;
	overflow: hidden;
}

/* Emplacement photo : en attendant les vraies photos */
.is-style-dt-emplacement-photo {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 280px;
	padding: 18px !important;
	border-radius: 20px;
	font-size: 14px;
	line-height: 1.45;
}
.is-style-dt-emplacement-photo:not(.has-background) { background: var(--theme-palette-color-6); }

/* Les quatre temps du parfum : un filet de couleur au-dessus de chaque colonne,
   comme sur la maquette (rose, miel, cognac, vert), choix de Silia du 24-11-26 */
.is-style-dt-quatre-temps > * {
	padding-top: 16px;
	border-top: 4px solid var(--theme-palette-color-9);
}
.is-style-dt-quatre-temps > :nth-child(4n+1) { border-top-color: var(--theme-palette-color-12); }
.is-style-dt-quatre-temps > :nth-child(4n+2) { border-top-color: var(--theme-palette-color-10); }
.is-style-dt-quatre-temps > :nth-child(4n+3) { border-top-color: var(--theme-palette-color-1); }
.is-style-dt-quatre-temps > :nth-child(4n+4) { border-top-color: var(--theme-palette-color-9); }

/* Mentions réglementaires */
.is-style-dt-reglementaire {
	font-size: 14px;
	line-height: 1.55;
	color: var(--theme-palette-color-4);
}
.is-style-dt-reglementaire:not(.has-background) { background: var(--theme-palette-color-6); }

/* --- 8. Bouton secondaire --------------------------------------------------- */

.is-style-dt-secondaire .wp-block-button__link {
	background: var(--theme-palette-color-3) !important;
	color: var(--theme-palette-color-18) !important;
}
.is-style-dt-secondaire .wp-block-button__link:hover {
	background: var(--theme-palette-color-4) !important;
}

/* --- 9. Questions fréquentes (bloc Détails natif) --------------------------- */

.entry-content .wp-block-details {
	border-bottom: 1px solid var(--theme-palette-color-5);
	padding-block: 4px;
}
.entry-content .wp-block-details summary {
	cursor: pointer;
	padding-block: 14px;
	font-weight: 600;
	font-size: 18px;
}

/* --- 10. Mobile : marges des sections pleine largeur ------------------------ */

@media (max-width: 689.98px) {
	.entry-content > .wp-block-group.alignfull {
		padding-top: 64px !important;
		padding-bottom: 64px !important;
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
}

/* --- 11. Pied de page (bloc de contenu « Pied de page ») ------------------- */

/* Liseré miel et vert en haut du pied de page */
#footer::before {
	content: "";
	display: block;
	height: 10px;
	background: repeating-linear-gradient(90deg,
		var(--theme-palette-color-10) 0 22px,
		var(--theme-palette-color-9) 22px 44px);
}

/* Listes de liens sans puces */
.dt-liste-liens {
	list-style: none;
	margin: 0;
	padding-left: 0 !important;
}
.dt-liste-liens li { margin-bottom: 6px; }
.dt-pied-de-page a { text-decoration: none !important; }
.dt-pied-de-page a:hover { text-decoration: underline !important; }
