/**
 * Espace propriétaire (EP1, lecture seule) — feuille scopée sous `.cip-espace`.
 *
 * Chargée UNIQUEMENT sur la page espace, APRÈS le thème via `$deps` (reset Hello
 * Elementor neutralisé à égalité de spécificité — §31/§33.6 : d'où les ré-affirmations
 * `.cip-espace button/input`). Charte de la maquette remappée sur les variables `--cip-*`
 * du thème avec repli neutre EN DUR (aucune couleur de marque codée en dur dans les
 * règles — §3). Chrome (header/footer) au thème : pas de header/footer ici (Option A).
 */

.cip-espace {
	--cip-primary: var(--cip-marine, #1a3c5e);
	--cip-accent: var(--cip-or, #c5a656);
	--cip-accent-light: var(--cip-or-pale, #f7f1e3);
	--cip-light: var(--cip-bleu-pale, #eef2f7);
	--cip-text: var(--cip-anthracite, #2c2c2c);
	--cip-grey: var(--cip-gris, #777777);
	--cip-border: var(--cip-gris-bordure, #dddddd);
	--cip-bg: #f5f3ef;
	--cip-white: var(--cip-blanc, #ffffff);
	--cip-success: #4caf50;
	--cip-warning: #ff9800;
	--cip-danger: #e53935;

	--cip-font-titre: 'Cormorant Garamond', Georgia, serif;
	--cip-font-corps: 'Montserrat', sans-serif;

	background: var(--cip-bg);
	color: var(--cip-text);
	font-family: var(--cip-font-corps);
	font-size: 14px;
	line-height: 1.5;
}

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

/* Reset Hello Elementor neutralisé : ré-affirmer les éléments de formulaire ------ */
.cip-espace button,
.cip-espace input {
	font-family: inherit;
	font-size: 14px;
	margin: 0;
}

.cip-espace svg {
	opacity: 1; /* leçon PhotoSwipe §31 : icônes visibles malgré le reset. */
}

/* Pleine largeur : neutralise le plafond `max-width:1140px` que Hello Elementor pose sur
   `.site-main` pour les pages non-Elementor. Gated par la classe de body `cip-espace-page`
   (ajoutée par le shortcode uniquement sur la page espace) → AUCUN impact sur les autres
   pages. Chargé après le thème (`$deps`) → gagne à égalité de spécificité (§33.6). */
body.cip-espace-page main.site-main {
	max-width: none;
	width: 100%;
	padding: 0; /* flush : la sidebar marine colle vraiment au bord gauche. Le sélecteur
	               inclut `main` pour battre la règle 1140px du thème même à égalité de
	               source-order (spécificité supérieure), à tous les breakpoints. */
}

/* Titre de page du thème (« Mon espace », `.page-header > .entry-title`) masqué :
   redondant avec le « Bonjour, … » du dashboard et occuperait une bande en tête. Gated. */
body.cip-espace-page .page-header {
	display: none;
}

/* Layout général -------------------------------------------------------------- */
.cip-space-layout {
	/* Modèle maquette : le layout colle aux bords (aucun padding/gap/max-width) ; c'est
	   le CONTENU (`.cip-main`) qui porte le padding. La sidebar marine touche donc le
	   bord gauche, le contenu le bord droit. Hauteur pleine sous le header du thème. */
	display: flex;
	min-height: calc(100vh - 72px); /* 72px = hauteur du header du thème (.cip-header). */
}

.cip-main {
	flex: 1;
	min-width: 0;
	padding: 36px 40px; /* le padding vit ici (maquette `.main-content`), pas sur le layout. */
}

.cip-section {
	margin-bottom: 48px;
	scroll-margin-top: 90px; /* l'ancre ne passe pas sous le header du thème. */
}

.cip-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.cip-section-title {
	position: relative;
	margin: 0;
	padding-left: 14px;
	font-family: var(--cip-font-titre);
	font-size: 26px;
	font-weight: 600;
	color: var(--cip-primary);
}

.cip-section-title::before {
	content: '';
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	width: 4px;
	background: var(--cip-accent);
}

/* Sidebar --------------------------------------------------------------------- */
.cip-sidebar {
	flex: 0 0 260px;
	min-width: 260px;
	background: var(--cip-primary); /* colonne MARINE pleine hauteur (maquette). */
	padding: 32px 0; /* vertical uniquement → colle aux bords gauche/haut. */
	position: sticky;
	top: 72px; /* démarre juste sous le header du thème (72px). */
	height: calc(100vh - 72px);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cip-sidebar-user {
	text-align: center;
	padding: 0 24px 28px;
	margin-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cip-user-avatar {
	width: 64px;
	height: 64px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: var(--cip-accent);
	color: var(--cip-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--cip-font-titre);
	font-size: 24px;
	font-weight: 600;
}

.cip-user-name {
	font-family: var(--cip-font-titre);
	font-size: 20px;
	font-weight: 600;
	color: var(--cip-white);
}

.cip-user-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: rgba(255, 255, 255, 0.4);
	margin-top: 2px;
}

.cip-sidebar-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 0 12px;
}

.cip-sidebar-link,
.cip-sidebar-logout {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-radius: 4px;
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	font-size: 12px;
	font-weight: 500;
	transition: background 0.15s, color 0.15s;
}

.cip-sidebar-link:hover {
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.9);
}

.cip-sidebar-link.is-active {
	background: rgba(197, 166, 86, 0.15); /* fond doré translucide (charte accent). */
	color: var(--cip-accent);
}

.cip-sidebar-link.is-active .cip-sidebar-icon {
	color: var(--cip-accent);
	opacity: 1;
}

.cip-sidebar-icon {
	flex-shrink: 0;
	color: currentColor;
	opacity: 0.7;
}

.cip-sidebar-label {
	flex: 1;
}

.cip-sidebar-count {
	margin-left: auto; /* pousse la pastille à droite du lien. */
	min-width: 20px;
	padding: 2px 7px;
	border-radius: 10px;
	background: var(--cip-accent); /* pastille DORÉE, texte marine. */
	color: var(--cip-primary);
	font-size: 10px;
	font-weight: 700;
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cip-sidebar-badge {
	margin-left: auto; /* pousse la pastille à droite du lien. */
	min-width: 20px;
	padding: 2px 7px;
	border-radius: 10px;
	background: var(--cip-danger); /* pastille ROUGE, texte blanc (non-lus). */
	color: var(--cip-white);
	font-size: 10px;
	font-weight: 700;
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cip-sidebar-logout {
	margin-top: auto; /* poussé en bas de la colonne pleine hauteur. */
	margin-inline: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding-top: 16px;
	color: rgba(255, 255, 255, 0.3);
	font-size: 11px;
}

.cip-sidebar-logout:hover {
	color: var(--cip-danger);
}

/* Dashboard ------------------------------------------------------------------- */
.cip-page-title {
	margin: 0;
	font-family: var(--cip-font-titre);
	font-size: 32px;
	font-weight: 400;
	color: var(--cip-primary);
}

.cip-page-title em {
	font-style: italic;
	color: var(--cip-accent);
}

.cip-page-subtitle {
	margin: 4px 0 24px;
	color: var(--cip-grey);
	font-size: 14px;
}

.cip-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.cip-stat-card {
	position: relative;
	background: var(--cip-white);
	border: 1px solid var(--cip-border);
	border-radius: 4px;
	padding: 22px 20px;
	overflow: hidden;
}

.cip-stat-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--cip-accent);
}

.cip-stat-card.cip-success::before {
	background: var(--cip-success);
}

.cip-stat-card.cip-danger::before {
	background: var(--cip-danger);
}

.cip-stat-card.cip-warning::before {
	background: var(--cip-warning);
}

.cip-stat-value {
	font-family: var(--cip-font-titre);
	font-size: 34px;
	font-weight: 600;
	color: var(--cip-primary);
	line-height: 1.1;
}

.cip-stat-label {
	margin-top: 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--cip-text);
}

.cip-stat-detail {
	margin-top: 2px;
	font-size: 11px;
	color: var(--cip-grey);
}

/* Détail coloré selon la carte (assorti à la barre supérieure). « Vues totales » n'a pas
   de classe couleur → détail gris, correct. */
.cip-stat-card.cip-success .cip-stat-detail {
	color: var(--cip-success);
	font-weight: 600;
}

.cip-stat-card.cip-danger .cip-stat-detail {
	color: var(--cip-danger);
	font-weight: 600;
}

.cip-stat-card.cip-warning .cip-stat-detail {
	color: var(--cip-warning);
	font-weight: 600;
}

/* Barre d'onglets (mode ancres, partage le scrollspy de la sidebar) ----------- */
.cip-content-tabs {
	display: flex;
	gap: 2px;
	margin-bottom: 28px;
	border-bottom: 2px solid var(--cip-border);
}

.cip-content-tab {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	margin-bottom: -2px; /* chevauche la bordure basse du conteneur (souligné actif). */
	border-bottom: 2px solid transparent;
	color: var(--cip-grey);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s;
}

.cip-content-tab:hover {
	color: var(--cip-primary);
}

.cip-content-tab.is-active {
	color: var(--cip-primary);
	border-bottom-color: var(--cip-accent); /* actif = souligné doré. */
}

.cip-tab-icon {
	flex-shrink: 0;
	opacity: 0.8;
}

.cip-tab-count {
	padding: 1px 6px;
	border-radius: 10px;
	background: var(--cip-accent); /* pastille dorée (nombre d'annonces). */
	color: var(--cip-primary);
	font-size: 9px;
	font-weight: 700;
}

.cip-tab-count--red {
	background: var(--cip-danger); /* pastille rouge (non-lus). */
	color: var(--cip-white);
}

/* Boutons — ré-affirmés sous `.cip-espace` pour battre le reset Hello Elementor sur
   [type=button] (qui laissait passer un rose pâle). Fond blanc par défaut → jamais de
   rose. Variantes : primary (doré), outline (blanc/marine), ghost, danger (bordure
   rouge), une. Le style change ; les boutons d'action restent INERTES (aria-disabled). */
.cip-espace .cip-btn {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 18px;
	border-radius: 2px;
	border: 1px solid transparent;
	background: var(--cip-white);
	color: var(--cip-text);
	font-family: var(--cip-font-corps);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cip-espace .cip-btn-primary {
	background: var(--cip-accent);
	color: var(--cip-primary);
	border-color: var(--cip-accent);
}

.cip-espace .cip-btn-primary:hover {
	background: #b8963f;
	border-color: #b8963f;
}

.cip-espace .cip-btn-outline {
	background: var(--cip-white);
	color: var(--cip-primary);
	border-color: var(--cip-border);
}

.cip-espace .cip-btn-outline:hover {
	border-color: var(--cip-accent);
	color: var(--cip-accent);
}

.cip-espace .cip-btn-ghost {
	background: var(--cip-white);
	border-color: var(--cip-border);
	color: var(--cip-text);
}

.cip-espace .cip-btn-ghost:hover {
	border-color: var(--cip-primary);
	color: var(--cip-primary);
}

.cip-espace .cip-btn-danger {
	background: var(--cip-white);
	color: var(--cip-danger);
	border-color: var(--cip-danger);
}

.cip-espace .cip-btn-danger:hover {
	background: var(--cip-danger);
	color: var(--cip-white);
	border-color: var(--cip-danger);
}

.cip-espace .cip-btn-une {
	background: var(--cip-white);
	border-color: var(--cip-accent);
	color: var(--cip-accent);
	width: 100%;
}

/* Un bouton inerte reste cliquable visuellement mais ne fait rien (curseur d'aide). */
.cip-espace .cip-btn[aria-disabled="true"] {
	cursor: help;
}

/* Cartes annonce -------------------------------------------------------------- */
.cip-annonce-card {
	background: var(--cip-white);
	border: 1px solid var(--cip-border);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 20px;
}

/* Carte en cours de retrait (requête EP2 en vol) : estompée + inerte (anti double-clic). */
.cip-annonce-card.is-removing {
	opacity: 0.55;
	pointer-events: none;
}

.cip-annonce-inner {
	display: flex;
	align-items: stretch;
}

.cip-annonce-photo {
	position: relative;
	flex: 0 0 180px;
	min-height: 160px;
	overflow: hidden;
	background: var(--cip-light);
}

.cip-annonce-photo-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cip-annonce-photo-fallback {
	width: 100%;
	height: 100%;
	min-height: 160px;
	background: var(--cip-light);
}

.cip-annonce-status {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 10px;
	border-radius: 2px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--cip-white);
	background: var(--cip-grey);
}

.cip-status--active {
	background: var(--cip-success);
}

.cip-status--warning {
	background: var(--cip-warning);
}

.cip-status--neutral {
	background: var(--cip-grey);
}

.cip-annonce-body {
	flex: 1;
	min-width: 0;
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
}

.cip-annonce-type {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--cip-accent);
	margin-bottom: 4px;
}

.cip-annonce-title {
	margin: 0 0 4px;
	font-family: var(--cip-font-titre);
	font-size: 20px;
	font-weight: 600;
	color: var(--cip-primary);
	line-height: 1.25;
}

.cip-annonce-loc {
	font-size: 12px;
	color: var(--cip-grey);
	margin-bottom: 14px;
}

.cip-annonce-stats {
	display: flex;
	gap: 28px;
	margin-bottom: 14px;
}

.cip-annonce-stat {
	display: flex;
	flex-direction: column;
}

.cip-annonce-stat-value {
	font-family: var(--cip-font-titre);
	font-size: 20px;
	font-weight: 600;
	color: var(--cip-primary);
}

.cip-annonce-stat-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--cip-grey);
}

.cip-annonce-bottom {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--cip-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.cip-annonce-expiry {
	font-size: 12px;
	color: var(--cip-grey);
}

.cip-annonce-expiry.cip-urgent {
	color: var(--cip-warning);
	font-weight: 600;
}

.cip-annonce-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.cip-annonce-right {
	flex: 0 0 170px;
	padding: 18px 18px;
	background: var(--cip-light);
	border-left: 1px solid var(--cip-border);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.cip-annonce-price {
	font-family: var(--cip-font-titre);
	font-size: 24px;
	font-weight: 600;
	color: var(--cip-primary);
}

.cip-annonce-une {
	padding: 5px 10px;
	background: var(--cip-accent);
	color: var(--cip-primary);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	border-radius: 2px;
}

.cip-annonce-une-until,
.cip-annonce-formule {
	font-size: 11px;
	color: var(--cip-grey);
}

/* État vide ------------------------------------------------------------------- */
.cip-empty {
	background: var(--cip-white);
	border: 1px dashed var(--cip-border);
	border-radius: 4px;
	padding: 40px 24px;
	text-align: center;
}

.cip-empty-text {
	margin: 0 0 16px;
	font-family: var(--cip-font-titre);
	font-size: 20px;
	color: var(--cip-primary);
}

/* Messages -------------------------------------------------------------------- */
.cip-message-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cip-message-item {
	display: flex;
	gap: 14px;
	background: var(--cip-white);
	border: 1px solid var(--cip-border);
	border-radius: 4px;
	padding: 16px 18px;
}

.cip-message-item.cip-unread {
	border-left: 3px solid var(--cip-accent);
	background: var(--cip-accent-light);
}

.cip-message-avatar {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--cip-primary);
	color: var(--cip-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--cip-font-titre);
	font-size: 16px;
	font-weight: 600;
}

.cip-message-body {
	flex: 1;
	min-width: 0;
}

.cip-message-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.cip-message-sender {
	font-weight: 600;
	color: var(--cip-primary);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.cip-sender-type {
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.cip-type-particulier {
	background: var(--cip-light);
	color: var(--cip-primary);
}

.cip-type-pro {
	background: var(--cip-accent);
	color: var(--cip-primary);
}

.cip-message-date {
	font-size: 11px;
	color: var(--cip-grey);
	white-space: nowrap;
}

.cip-message-bien {
	margin-top: 4px;
	font-size: 12px;
	color: var(--cip-accent);
}

.cip-message-preview {
	margin-top: 6px;
	font-size: 13px;
	color: var(--cip-text);
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.cip-message-badges {
	margin-top: 10px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.cip-badge {
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 500;
}

.cip-badge-financement {
	background: rgba(76, 175, 80, 0.12);
	color: var(--cip-success);
}

.cip-badge-pays {
	background: var(--cip-light);
	color: var(--cip-grey);
}

.cip-badge-unread {
	background: var(--cip-accent);
	color: var(--cip-primary);
	font-weight: 600;
}

.cip-link-inert {
	font-size: 12px;
	color: var(--cip-grey);
	cursor: help;
}

/* Profil ---------------------------------------------------------------------- */
.cip-profil-note {
	margin: 0 0 20px;
	padding: 10px 14px;
	background: var(--cip-accent-light);
	border-left: 3px solid var(--cip-accent);
	border-radius: 2px;
	font-size: 13px;
	color: var(--cip-text);
}

.cip-profil-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.cip-profil-section {
	background: var(--cip-white);
	border: 1px solid var(--cip-border);
	border-radius: 4px;
	padding: 24px;
}

.cip-profil-subtitle {
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--cip-primary);
}

.cip-field {
	margin-bottom: 16px;
}

.cip-field-label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 500;
	color: var(--cip-grey);
}

.cip-field-input {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--cip-border);
	border-radius: 2px;
	background: var(--cip-light);
	color: var(--cip-text);
	font-family: var(--cip-font-corps);
	font-size: 14px;
}

.cip-field-input:disabled {
	opacity: 1; /* lisible malgré disabled (lecture seule assumée). */
	cursor: not-allowed;
}

/* Select civilité : appearance déjà neutralisée par .cip-field-input (reset Hello) ;
   on rétablit un caret (SVG inline, aucun asset externe) et l'espace pour l'accueillir. */
.cip-field-select {
	cursor: pointer;
	padding-right: 34px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23777777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px;
}

/* Mention sous un champ (ex. renvoi contact pour l'email en lecture seule). */
.cip-field-hint {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--cip-grey);
}

.cip-field-hint a {
	color: var(--cip-accent);
}

/* Message de retour d'un formulaire (succès / erreur), rempli par espace.js. */
.cip-form-feedback {
	margin: 8px 0;
	font-size: 13px;
	min-height: 1em;
}

.cip-form-feedback--success {
	color: var(--cip-success);
}

.cip-form-feedback--error {
	color: var(--cip-danger);
}

.cip-profil-sep {
	border: none;
	border-top: 1px solid var(--cip-border);
	margin: 22px 0;
}

.cip-profil-delete {
	font-size: 12px;
	color: var(--cip-grey);
	line-height: 1.6;
}

.cip-profil-delete a {
	color: var(--cip-accent);
}

/* Suppression de compte (anonymisation, DEC-EP2-04) --------------------------- */
.cip-profil-subtitle--danger {
	color: var(--cip-danger);
}

.cip-account-delete-intro {
	margin: 0 0 16px;
	font-size: 12px;
	color: var(--cip-grey);
	line-height: 1.6;
}

/* Case de confirmation : libellé aligné sur la case, cliquable en entier. */
.cip-field-check {
	margin-bottom: 16px;
}

.cip-check-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	color: var(--cip-text);
	line-height: 1.5;
	cursor: pointer;
}

.cip-check-label input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
}

/* Message neutre (garde d'accès) ---------------------------------------------- */
.cip-espace-notice {
	max-width: 640px;
	margin: 60px auto;
	padding: 32px;
	background: var(--cip-white);
	border: 1px solid var(--cip-border);
	border-radius: 4px;
	text-align: center;
}

.cip-espace-notice__text {
	margin: 0 0 16px;
	font-family: var(--cip-font-titre);
	font-size: 20px;
	color: var(--cip-primary);
}

.cip-espace-notice__action {
	display: inline-block;
	padding: 10px 22px;
	background: var(--cip-accent);
	color: var(--cip-primary);
	text-decoration: none;
	border-radius: 2px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 900px) {
	.cip-space-layout {
		flex-direction: column;
		min-height: 0;
	}

	.cip-sidebar {
		position: static;
		height: auto;
		flex: 1 1 auto;
		width: 100%;
		padding: 20px 0; /* fond marine conservé, pleine largeur au-dessus du contenu. */
	}

	.cip-sidebar-nav {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.cip-sidebar-logout {
		margin-top: 8px;
	}

	.cip-main {
		padding: 24px 20px;
	}

	.cip-dashboard-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 720px) {
	.cip-content-tabs {
		overflow-x: auto; /* onglets défilables plutôt que cassés en étroit. */
	}

	.cip-annonce-inner {
		flex-direction: column;
	}

	.cip-annonce-photo {
		flex-basis: auto;
		height: 200px;
	}

	.cip-annonce-right {
		flex-basis: auto;
		border-left: none;
		border-top: 1px solid var(--cip-border);
	}

	.cip-profil-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.cip-dashboard-grid {
		grid-template-columns: 1fr;
	}
}
