/*
 * Styles du thème.
 *
 * Le rendu reprend celui de gozem-revamp-theme (mêmes couleurs, tailles et
 * espacements, relevés sur le site en ligne), écrit en CSS moderne, sans Bootstrap.
 * Les couleurs et polices viennent de theme.json :
 * var(--wp--preset--color--primary), var(--wp--preset--font-size--large)…
 *
 * Sommaire : 1. Base  2. En-tête  3. Page d'accueil  4. Pages et articles  5. Pied de page  6. Mobile
 */

/* =========================================================
   1. Base
   ========================================================= */

/* Anciens noms de couleurs de gozem-revamp-theme, reliés à la charte v2 (theme.json).
   Les CSS repris tels quels (coworking, demande de visite) les utilisent. */
:root {
	--color-white: var(--wp--preset--color--white);
	--color-green-100: var(--wp--preset--color--primary);
	--color-green-120: var(--wp--preset--color--primary-dark);
	--color-green-200: var(--wp--preset--color--primary-deep);
	--color-green-40: var(--wp--preset--color--primary-light);
	--color-grey-100: var(--wp--preset--color--text);
	--color-grey-80: var(--wp--preset--color--text-muted);
	--color-grey-40: var(--wp--preset--color--border);
	--color-grey-10: var(--wp--preset--color--surface);
	--font-sans: var(--wp--preset--font-family--body);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding-top: 85px; /* Hauteur de l'en-tête, qui reste fixé en haut de l'écran. */
}

/* Boutons et champs prennent la police de la page (sinon le navigateur les met en 13px),
   comme avec Bootstrap dans l'ancien thème. */
button,
input,
select,
textarea {
	margin: 0;
	font: inherit;
	line-height: inherit;
}

label {
	display: inline-block;
}

img {
	max-width: 100%;
	height: auto;
}

/* Conteneur centré : 1176px de contenu + 20px de marge de chaque côté. */
.container {
	max-width: calc(var(--wp--style--global--wide-size) + 40px);
	margin-inline: auto;
	padding-inline: 20px;
}

/* Texte lu par les lecteurs d'écran mais invisible à l'écran. */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Lien « Aller au contenu » : invisible, apparaît au clavier (touche Tab). */
.skip-link {
	position: absolute;
	left: -9999px;
}

.skip-link:focus {
	left: 16px;
	top: 16px;
	z-index: 100;
	padding: 8px 16px;
	background: var(--wp--preset--color--white);
}

/* Contour visible quand on navigue au clavier. */
:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary-dark);
	outline-offset: 2px;
}

/* Formulaires écrits dans l'éditeur (.entry-content). Les gabarits qui ont
   leurs propres formulaires (demande de visite…) gardent leur style. */
.entry-content input:not([type="checkbox"], [type="radio"], [type="submit"]),
.entry-content select,
.entry-content textarea {
	width: 100%;
	padding: 12px 16px;
	font: inherit;
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
}

.entry-content input:focus,
.entry-content select:focus,
.entry-content textarea:focus {
	border-color: var(--wp--preset--color--primary-dark);
}

.entry-content label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
}

/* Bouton bordé vert (ex. « Afficher plus d'actualités »). */
.button-outline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	text-decoration: none;
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 999px;
	transition: background-color 0.15s, color 0.15s;
}

.button-outline:hover {
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--primary);
}

/* Boutons des stores (App Store, Google Play). */
.app-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.app-buttons img {
	display: block;
	width: auto;
}

.app-buttons--icon img {
	height: 40px;
}

.app-buttons--icon a + a,
.app-buttons--badge-light a + a {
	padding-left: 12px;
	border-left: 1px solid var(--wp--preset--color--white);
}

.app-buttons--badge img {
	height: 60px;
}

/* Pied de page : badges dans un cadre de 150×48, comme l'ancien thème. */
.app-buttons--badge-light img {
	width: 150px;
	height: 48px;
	object-fit: contain;
}

/* =========================================================
   2. En-tête
   ========================================================= */

.site-header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 50;
	background: var(--wp--preset--color--white);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Quand la barre d'administration WordPress est affichée. */
.admin-bar .site-header {
	top: 32px;
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: 85px;
}

.site-header__brand {
	color: var(--wp--preset--color--primary);
	font-size: 1.5rem;
	font-weight: 800;
	text-decoration: none;
}

.site-header__brand img {
	display: block;
	width: auto;
	height: 32px;
}

.site-nav {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	display: block;
	padding: 6px 0;
	color: #000;
	font-weight: 600;
	line-height: 20px;
	text-decoration: none;
}

.site-nav__list a:hover {
	color: var(--wp--preset--color--primary-dark);
}

/* Page en cours : lien vert souligné, comme l'ancien thème. */
.site-nav__list .current-menu-item > a {
	color: var(--wp--preset--color--primary);
	box-shadow: inset 0 -2px 0 currentColor;
}

/* Sous-menus : cachés, affichés au survol ou au clavier. */
.site-nav__list li {
	position: relative;
}

.site-nav__list .sub-menu {
	display: none;
	position: absolute;
	z-index: 10;
	min-width: 220px;
	margin: 0;
	padding: 8px 16px;
	list-style: none;
	background: var(--wp--preset--color--white);
	border-radius: 16px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.site-nav__list li:hover > .sub-menu,
.site-nav__list li:focus-within > .sub-menu {
	display: block;
}

/* Pays et langue : deux boutons « pilule » avec liste déroulante. */
.site-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.switcher {
	position: relative;
}

.switcher summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	color: #000;
	font-weight: 600;
	line-height: 20px;
	list-style: none;
	cursor: pointer;
	border: 2px solid var(--wp--preset--color--text);
	border-radius: 32px;
}

/* Sélecteur de langue : sans bordure, avec une icône. */
.switcher--plain summary {
	padding-inline: 4px;
	border-color: transparent;
}

.switcher__icon {
	flex-shrink: 0;
}

.switcher summary::-webkit-details-marker {
	display: none;
}

/* Petite flèche après le libellé. */
.switcher summary::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-left: 4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

.switcher[open] summary::after {
	transform: translateY(2px) rotate(-135deg);
}

.flag {
	display: block;
	flex-shrink: 0;
	width: 20px;
	height: 15px;
	border-radius: 2px;
}

/* Globe du site global : carré, de la couleur du texte. */
.flag--globe {
	height: 20px;
	border-radius: 0;
}

.switcher__list {
	position: absolute;
	right: 0;
	z-index: 10;
	min-width: 220px;
	margin: 8px 0 0;
	padding: 8px;
	list-style: none;
	background: var(--wp--preset--color--white);
	border-radius: 16px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Chaque choix est arrondi lui aussi : le fond gris du survol ne touche pas les bords de la liste. */
.switcher__list a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	color: var(--wp--preset--color--text);
	text-decoration: none;
	border-radius: 16px;
}

/* Choix en cours : en gras sur fond gris. */
.switcher__list a[aria-current] {
	background: var(--wp--preset--color--surface);
	font-weight: 600;
}

/* Survol (et focus clavier) : fond vert clair, texte vert, comme l'ancien thème. */
.switcher__list a:hover,
.switcher__list a:focus-visible {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	background: #e8f4eb;
}

/* Bouton « hamburger » : visible seulement sur mobile (voir 6. Mobile). */
.menu-toggle {
	display: none;
	margin-left: auto;
	padding: 8px;
	background: none;
	border: 0;
	cursor: pointer;
}

/* Trois traits verts dessinés en CSS. */
.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
	display: block;
	width: 30px;
	height: 3px;
	background: var(--wp--preset--color--primary);
	border-radius: 2px;
}

.menu-toggle__icon {
	position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0;
}

.menu-toggle__icon::before {
	top: -9px;
}

.menu-toggle__icon::after {
	top: 9px;
}

/* =========================================================
   3. Page d'accueil
   ========================================================= */

/* ---------- Hero : grande image, titre blanc ---------- */
/* Comme l'ancien thème : l'image glisse de droite à gauche, la fin du titre s'écrit
   lettre par lettre et la barre de la diapositive se remplit en 5 s (assets/js/home.js). */

.home-hero {
	position: relative;
	display: grid;
	align-items: center;
	min-height: 576px;
	overflow: hidden;
	background: #b3b3b3; /* Couleur affichée tant que l'image n'est pas chargée. */
}

.home-hero__slides,
.home-hero__slide {
	position: absolute;
	inset: 0;
}

/* Images en attente à droite (à gauche quand on revient en arrière). */
.home-hero__slide {
	transform: translateX(100%);
}

.home-hero__slide.is-active,
.home-hero__slide.is-leaving {
	transition: transform 0.6s ease-in-out;
}

.home-hero__slide.is-active {
	transform: none;
}

.home-hero__slide.is-leaving,
.home-hero[data-direction="prev"] .home-hero__slide {
	transform: translateX(-100%);
}

.home-hero[data-direction="prev"] .home-hero__slide.is-leaving {
	transform: translateX(100%);
}

.home-hero[data-direction="prev"] .home-hero__slide.is-active {
	transform: none;
}

.home-hero__slide picture {
	display: block;
	height: 100%;
}

.home-hero__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Voile sombre sur l'image pour que le titre blanc reste lisible. */
.home-hero__slide:has(img)::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.3);
}

.home-hero__content {
	position: relative;
	width: 100%;
	padding-block: 36px;
}

.home-hero__title {
	margin: 0;
	color: var(--wp--preset--color--white);
	font-size: clamp(2.5rem, 5vw, 4.25rem); /* 68px sur grand écran. */
	font-weight: 700;
	line-height: 1.2;
}

/* Titre sur 3 lignes : le début sur les 2 premières, la fin écrite lettre par lettre
   toujours sur la 3e. Elle garde sa hauteur même vide, pour que le titre ne bouge pas. */
.home-hero__title {
	min-height: 3.6em; /* 3 lignes de 1,2. */
	/* Largeur en « em » pour couper au même endroit à toutes les tailles :
	   « Gozem, votre super » / « app tout-en-un pour » / fin écrite lettre par lettre. */
	max-width: 11.8em;
}

.home-hero__nowrap {
	white-space: nowrap;
}

.home-hero__rotating {
	display: block;
	min-height: 1.2em;
}

/* Curseur « | » qui clignote pendant l'écriture (seulement avec JavaScript). */
.home-hero.is-playing .home-hero__rotating::after {
	content: "|";
	margin-left: -5px;
	animation: home-hero-blink 1s step-end infinite;
}

@keyframes home-hero-blink {
	50% {
		opacity: 0;
	}
}

/* Barres de 64 × 3 px ; le bouton est plus haut (23 px) pour être facile à cliquer. */
.home-hero__indicators {
	position: absolute;
	right: 0;
	bottom: 6px;
	left: 0;
	display: flex;
	gap: 8px;
}

.home-hero__indicators button {
	position: relative;
	width: 64px;
	height: 23px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}

.home-hero__indicators button::before,
.home-hero__indicators button::after {
	content: "";
	position: absolute;
	top: 10px;
	left: 0;
	height: 3px;
}

.home-hero__indicators button::before {
	right: 0;
	background: rgba(255, 255, 255, 0.42);
}

.home-hero__indicators button::after {
	width: 0;
	background: var(--wp--preset--color--white);
}

.home-hero__indicators .is-done::after,
.home-hero__indicators .is-active::after {
	width: 100%;
}

.home-hero.is-playing .home-hero__indicators .is-active::after {
	animation: home-hero-progress 5s linear forwards;
}

@keyframes home-hero-progress {
	from {
		width: 0;
	}

	to {
		width: 100%;
	}
}

/* ---------- Bandeau vert « Téléchargez l'application » ---------- */

.download-band {
	background: var(--wp--preset--color--primary);
}

.download-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px 48px;
	min-height: 88px;
	padding-block: 16px;
}

.download-band__text {
	margin: 0;
	color: var(--wp--preset--color--white);
	font-size: 1.5rem;
	font-weight: 600;
}

/* ---------- Services en onglets ---------- */

.home-services {
	padding-block: 96px;
}

.section-title {
	max-width: 800px;
	margin: 0 auto 48px;
	padding-top: 20px;
	font-size: clamp(2rem, 4vw, 3rem); /* 48px sur grand écran. */
	font-weight: 800;
	text-align: center;
}

/* Onglets et panneaux empilés ; un panneau caché ne prend aucune place. */
.tabs {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* Cadre arrondi autour du contenu des onglets. */
.tabs__panels {
	padding: 48px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 40px;
}

.tabs__list {
	display: flex;
	align-self: center;
	gap: 4px;
	max-width: 100%;
	padding: 16px;
	overflow-x: auto;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 100px;
}

.tabs__tab {
	padding: 16px 32px;
	color: var(--wp--preset--color--text);
	font: inherit;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 20px;
	white-space: nowrap;
	cursor: pointer;
	background: transparent;
	border: 0;
	border-radius: 999px;
}

.tabs__tab[aria-selected="true"] {
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--primary);
}

.tabs__panel {
	display: flex;
	flex-direction: column;
	gap: 64px;
}

/* Sans JavaScript (pas de classe is-ready), les panneaux s'affichent les uns sous les autres. */
.tabs:not(.is-ready) .tabs__panel + .tabs__panel {
	margin-top: 64px;
}

.tabs__panel[hidden] {
	display: none;
}

.service-group {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding-bottom: 64px;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.service-group__title {
	margin: 0;
	font-size: 2rem;
	font-weight: 800;
}

.service-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 48px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.service-card {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.service-card__icon {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 5px;
}

.service-card__title {
	margin: 0 0 8px;
	font-size: 1.5rem;
	font-weight: 600;
}

.service-card__body p {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 300;
	line-height: 1.5;
}

.download-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	align-self: center;
	gap: 24px;
	width: min(539px, 100%);
	padding: 24px;
	text-align: center;
	background: var(--wp--preset--color--surface);
	border-radius: 16px;
}

.download-box__title {
	margin: 0 0 8px;
	font-size: 2rem;
	font-weight: 800;
}

/* ---------- Actualités ---------- */

.home-news {
	padding-block: 120px;
	background: var(--wp--preset--color--surface-alt);
}

.home-news__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.home-news__title {
	margin: 0;
	font-size: clamp(1.75rem, 3.5vw, 2.375rem); /* 38px sur grand écran. */
	font-weight: 800;
}

.home-news__text {
	margin: 0 0 10px;
	color: var(--wp--preset--color--text-muted);
	font-size: 1.125rem;
	font-weight: 500;
}

.home-news__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
}

.news-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.news-card__image {
	width: 100%;
	aspect-ratio: 12 / 9;
	object-fit: cover;
	border-radius: 8px;
}

/* Titre sur 2 lignes maximum, terminé par « … ». */
.news-card__title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.2;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.news-card:hover .news-card__title {
	color: var(--wp--preset--color--primary-dark);
}

/* Date • temps de lecture, puis un trait et « En savoir plus ». */
.news-card__meta {
	display: flex;
	gap: 10px;
	margin: 0;
	padding-bottom: 16px;
	color: var(--wp--preset--color--text-muted);
	font-size: 0.875rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.news-card__meta span::before {
	content: "•";
	margin-right: 10px;
}

/* Étiquette verte de catégorie (articles). */
.post-chip {
	display: inline-flex;
	align-self: flex-start;
	padding: 4px 8px;
	color: var(--wp--preset--color--white);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: normal;
	text-decoration: none;
	background: var(--wp--preset--color--primary);
	border-radius: 4px;
}

.news-card__more {
	color: var(--wp--preset--color--primary-dark);
	font-weight: 600;
}

/* La page d'accueil gère ses propres espacements, section par section. */
.home .site-main {
	padding-block: 0;
}

/* =========================================================
   4. Pages et articles
   ========================================================= */

.site-main {
	padding-block: 40px;
}

.entry-content {
	max-width: var(--wp--style--global--content-size);
}

.post-date,
.post-card__date {
	display: block;
	margin-bottom: 16px;
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--small);
}

/* Liste d'articles : grille qui passe à une colonne sur mobile. */
.post-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 32px;
}

.post-card img {
	display: block;
	border-radius: 8px;
}

.post-card__title {
	margin-block: 16px 8px;
	font-size: var(--wp--preset--font-size--x-large);
}

.post-card__title a {
	color: inherit;
	text-decoration: none;
}

/* =========================================================
   5. Pied de page
   ========================================================= */

.site-footer {
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--primary);
}

.site-footer a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

.site-footer__top {
	padding-block: 120px 48px;
}

/* Logo, colonnes, trait, puis réseaux / apps / langue, espacés de 48px. */
.site-footer__top > .container {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.site-footer__logo {
	display: block;
}

.site-footer__main {
	display: grid;
	grid-template-columns: 360px 1fr;
	gap: 60px;
}

.site-footer__tagline p {
	margin: 0 0 10px;
	font-weight: 500;
}

.site-footer__columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 24px;
}

.site-footer__columns > *,
.site-footer__extras > * {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.site-footer__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.2;
}

.site-footer address {
	font-style: normal;
}

.site-footer ul {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.button-whatsapp {
	display: inline-block;
	padding: 10px 20px;
	color: var(--wp--preset--color--primary-dark) !important; /* Texte vert sur fond blanc, dans le pied de page vert. */
	font-weight: 600;
	text-decoration: none;
	background: var(--wp--preset--color--white);
	border-radius: 68px;
}

.site-footer__separator {
	margin: 0 0 16px;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--white);
}

.site-footer__extras {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.social-links {
	display: flex;
	gap: 12px;
}

.social-links a {
	display: grid;
	place-items: center;
	width: 45px;
	height: 45px;
	color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--white);
	border-radius: 50%;
}

/* Pilules pays et langue en blanc sur fond vert ; la liste s'ouvre vers le haut. */
.site-footer .switcher summary,
.site-footer .switcher--plain summary {
	padding-inline: 16px;
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--border);
}

.site-footer .switcher__list {
	top: auto;
	right: auto;
	bottom: 100%;
	left: 0;
	margin: 0 0 8px;
	padding: 8px; /* Sinon « .site-footer ul » le remet à 0. */
}

.site-footer .switcher__list a {
	color: var(--wp--preset--color--text);
}

.site-footer .switcher__list a:hover,
.site-footer .switcher__list a:focus-visible {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.site-footer__bottom {
	padding-block: 28px;
	background: var(--wp--preset--color--primary-dark);
}

.site-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-footer__copyright {
	margin: 0;
	font-weight: 700;
}

.site-footer__bottom ul {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 16px;
}

.site-footer__bottom a {
	text-decoration: none;
}

/* =========================================================
   6. Mobile et tablette (en dessous de 992px, comme l'ancien thème)
   ========================================================= */

@media (max-width: 991px) {
	body {
		padding-top: 70px;
	}

	.site-header__inner {
		flex-wrap: wrap;
		min-height: 70px;
	}

	.menu-toggle {
		display: block;
	}

	/* Menu replié ; il s'ouvre sous le logo avec le bouton « hamburger ». */
	.site-nav {
		display: none;
		flex-basis: 100%;
		flex-direction: column;
		align-items: flex-start;
		padding-bottom: 24px;
	}

	.site-nav.is-open {
		display: flex;
	}

	.site-nav__list {
		flex-direction: column;
		gap: 8px;
	}

	.site-nav__list .sub-menu {
		position: static;
		display: block;
		box-shadow: none;
	}

	.switcher__list {
		right: auto;
		left: 0;
	}

	.home-hero {
		min-height: 420px;
	}

	.home-services,
	.home-news {
		padding-block: 64px;
	}

	.tabs__panels {
		padding: 24px;
		border-radius: 24px;
	}

	.tabs__list {
		align-self: stretch;
		padding: 8px;
	}

	.tabs__tab {
		padding: 12px 20px;
		font-size: 1rem;
	}

	.service-group__title,
	.download-box__title {
		font-size: 1.5rem;
	}

	.site-footer__top {
		padding-block: 64px 32px;
	}

	.site-footer__main,
	.site-footer__extras {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

/* Téléphone : même disposition que l'ancien thème. */
@media (max-width: 767px) {
	/* Hero : l'image en haut, le titre en noir en dessous. */
	.home-hero {
		display: block;
		min-height: 0;
		background: none;
	}

	.home-hero__slides {
		position: relative;
		height: 273px;
		background: #b3b3b3;
	}

	.home-hero__content {
		padding-block: 26px;
	}

	.home-hero__title {
		color: var(--wp--preset--color--text);
		/* Texte plus gras sur mobile, donc un peu plus large : 12em, et une taille réduite
		   sur les petits téléphones pour que ces 12em tiennent dans l'écran (marges de 20px). */
		max-width: 12em;
		font-size: min(2rem, calc((100vw - 40px) / 12));
		font-weight: 800;
	}

	.home-hero__indicators {
		top: 244px;
		bottom: auto;
	}

	/* Bandeau vert : texte et logos sur une ligne. */
	.download-band__inner {
		flex-wrap: nowrap;
		gap: 24px;
		min-height: 80px;
		padding-block: 20px;
	}

	.download-band__text {
		font-size: 1rem;
	}

	/* Services : titre à gauche, onglets sans cadre qui défilent horizontalement. */
	.home-services {
		padding-block: 0 64px;
	}

	.section-title {
		margin: 0 0 24px;
		font-size: 1.75rem;
		text-align: left;
	}

	.tabs {
		gap: 24px;
	}

	.tabs__list {
		justify-content: flex-start;
		padding: 16px 0;
		border: 0;
		border-radius: 0;
	}

	.tabs__panels {
		padding: 0;
		border: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-hero__slide.is-active,
	.home-hero__slide.is-leaving {
		transition: none;
	}
}
