/* =========================================================
   ✅ BASE — MOBILE FIRST
========================================================= */
body {
	max-width: 470px;
	margin: 0 auto;
	overflow-x: hidden;
	background: #fafafa;
	color: #1e1e1e;
	font-family: "Roboto", sans-serif;
}




/*Orientation paysage : on masque le site */
 @media screen and (orientation: landscape) {
  body::before {
    content: "📱 Veuillez orienter votre appareil en mode portrait.";
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.1rem;
    background: white;
    color: #333;
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 24px;
  }

  header, main, footer {
    display: none !important;
  }
}
 
/* =========================================================
   🎨 THEME — VARIABLES
========================================================= */
:root {
	--primary: #0a5894;
  /* BLEU */
	--secondary: #ce2d1c;
  /* ROUGE */
	--surface: #ffffff;
  /* BLANC */
	--text-dark: #1e1e1e;
	--text-light: #ffffff;
	--shadow: 0 2px 6px rgba(0,0,0,.08);
}

/* 🔥 Harmonisation Material → couleurs du site */
:root {
  /* Boutons, liens, icônes Material */
	--md-sys-color-primary: var(--primary);
	--md-sys-color-on-primary: #ffffff;
	--md-sys-color-secondary: var(--secondary);
	--md-sys-color-on-secondary: #ffffff;
  /* Bouton tonal (clair) */
	--md-sys-color-primary-container: color-mix(in srgb, var(--primary) 12%, white);
	--md-sys-color-on-primary-container: var(--primary);
  /* Bordures, lignes, séparateurs (au lieu du violet Material) */
	--md-sys-color-outline: color-mix(in srgb, var(--primary) 60%, #999);
  /* Surface claire */
	--md-sys-color-surface: var(--surface);
	--md-sys-color-on-surface: var(--text-dark);
	--md-sys-color-on-surface-variant: #555;
}

/* ===============================================
   ✅ Uniformisation CTA Agenda (buttons)
   =============================================== */

/* Bouton tonal (site / téléphone) */
md-filled-tonal-button {
	--md-filled-tonal-button-container-color: color-mix(in srgb, var(--primary) 12%, white);
 /* bleu très clair */
	--md-filled-tonal-button-label-text-color: var(--primary);
 /* texte bleu */
	--md-sys-color-on-primary-container: var(--primary);
}

/* Effet au survol */
md-filled-tonal-button:hover {
	--md-filled-tonal-button-container-color: color-mix(in srgb, var(--primary) 20%, white);
}


/* Liens */
a {
	color: var(--secondary);
	text-decoration: none;
}

a:hover {
	text-decoration: none;
}

/* =========================================================
   🧭 HEADER — LOGO + HIDE ON SCROLL
========================================================= */

/* ✅ Supprime toute influence de md-top-app-bar (ancien header Material) */

/* =========================================================
   🧭 HEADER — LOGO + ICÔNES LATERALES
   ========================================================= */


.logo-link {
	flex: 1;
	display: flex;
	justify-content: center;
}

.app-logo {
	height: 66px;
	width: auto;
}

.header-icon-btn {
	background: none;
	border: 0;
	padding: 15px;
	display: flex;
	align-items: center;
}

.material-symbols-outlined {
	font-size: 30px;
	line-height: 1;
	color: var(--primary);
}

.social-icon {
	height: 28px;
	width: auto;
	display: block;
}

.hide-on-scroll.header-hidden {
	transform: translateY(-100%);
}

.app-logo {
	height: 60px;
                  /* ✅ taille demandée */
	width: auto;
}

/* Effet "hide on scroll" */
.hide-on-scroll {
	transition: transform 0.3s ease;
}

.hide-on-scroll.header-hidden {
	transform: translateY(-100%);
}

/* =========================================================
   HEADER — LOGO + ICÔNES LATERALES (ajustable)
========================================================= */

.app-header {
	position: sticky;
	top: 0;
	width: 100%;
	height: 80px;
                  /* 🔧 hauteur totale du header */
	background: rgba(255, 255, 255, 0.9);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 0px;
               /* 🔧 marge intérieure gauche/droite (icônes plus éloignées du bord) */
	border-bottom: 1px solid #ddd;
	z-index: 1000;
	backdrop-filter: blur(8px);
	transition: transform 0.3s ease;
}

/* --- logo central --- */
.logo-link {
	flex: 1;
	display: flex;
	justify-content: center;
}

.app-logo {
	height: 66px;
                  /* 🔧 taille du logo — ajuste ici selon ton visuel */
	width: auto;
}

/* --- boutons d’icônes gauche/droite --- */
.header-icon-btn {
	background: none;
	border: none;
	padding: 15px;
                  /* 🔧 espace “tappable” autour du picto */
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.header-icon-btn:hover {
	opacity: 0.75;
}

/* --- icône menu Material --- */
.material-symbols-outlined {
	font-size: 30px;
               /* 🔧 taille du picto menu */
	line-height: 1;
	color: var(--primary);
}

/* --- icône Facebook SVG --- */
.social-icon {
	height: 28px;
                  /* 🔧 taille du picto Facebook */
	width: auto;
	display: block;
}

/* --- effet hide-on-scroll déjà présent --- */
.hide-on-scroll.header-hidden {
	transform: translateY(-100%);
}


/* =========================================================
   📄 CONTENU GLOBAL (<main>)
========================================================= */
.page-content {
	padding: 16px;
	margin-top: 16px;
}

.page-title {
	font-size: 1.4rem;
	font-weight: 600;
	margin-bottom: 20px;
}

/* =========================================================
   📰 PAGE : LISTE DES ACTUALITÉS
========================================================= */
#liste-actualites {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.actu-item {
	background: var(--surface);
	border-radius: 12px;
	padding: 16px;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.actu-item h3 {
	font-size: 1.2rem;
	font-weight: 600;
	margin: 0;
}

.actu-item .date {
	font-size: .8rem;
	color: #666;
}

.actu-photo {
	width: 100%;
	max-width: 260px;
	margin: 0 auto;
	border-radius: 8px;
}

.actu-description {
	font-size: .95rem;
	line-height: 1.45;
	color: #333;
}

.btn-lire-suite {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	font-size: .9rem;
	color: var(--primary);
	font-weight: 500;
}

.btn-lire-suite::after {
	content: "→";
	transition: transform .2s;
}

.btn-lire-suite:hover::after {
	transform: translateX(3px);
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: center;
	margin: 24px 0 36px;
}

.pager-inner {
	display: flex;
	gap: 8px;
}

.pager-button, .pager-page {
	padding: 6px 10px;
	border-radius: 6px;
	font-size: .85rem;
	color: var(--primary);
}

.pager-page.current {
	background: var(--primary);
	color: white;
	font-weight: 600;
}

.pager-button.disabled {
	opacity: .4;
	pointer-events: none;
}

/* =========================================================
   📰 PAGE : FICHE ACTUALITÉ
========================================================= */
.page-actualite-fiche {
	padding-bottom: 0;
}

.page-actualite-fiche .date-fiche {
	font-size: .85rem;
	color: #666;
	margin-bottom: 12px;
}

.page-actualite-fiche .actu-photo-fiche {
	width: 100%;
	max-width: 300px;
	border-radius: 10px;
	display: block;
	margin: 6px auto 14px;
}

.page-actualite-fiche .actu-content {
	font-size: .95rem;
	line-height: 1.55;
	color: #222;
}

.retour-actus {
	font-size: .9rem;
	color: var(--primary);
}

/* Section actus similaires */
.section-same-theme {
	padding: 1.5rem;
	margin-top: 0 !important;
}

.same-theme-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.actus-same-theme-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.actus-same-theme-list .actu-card {
	background: #fff;
	border-radius: 14px;
	padding: 18px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.10);
	display: flex;
	flex-direction: column;
	gap: 6px;
	animation: fadeInUp .25s ease forwards;
	opacity: 0;
}

.actus-same-theme-list .actu-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--primary);
}

.actus-same-theme-list .actu-date-sm {
	font-size: .82rem;
	color: #777;
}

/* Divider */
.divider-actu {
	width: 90%;
	margin: 32px auto 0;
	border: none;
	height: 2px;
	background: linear-gradient(to right, transparent, rgba(0,0,0,.25), transparent);
	border-radius: 2px;
}

/* Animation */
@keyframes fadeInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* =========================================================
   ⭐ SECTION ACTUALITÉS HOME (index.php)
========================================================= */
.section-actualites {
	padding: 1.5rem;
}

.actus-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.actu-card {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 0.9rem;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 3px 12px rgba(0,0,0,0.08);
	opacity: 0;
	transform: translateY(12px);
	transition: transform .25s, opacity .4s;
}

/* Animation progressive (mise en avant des 3 actus) */
.actus-list .actu-card:nth-child(1) {
	animation: fadeInUp .35s .05s forwards;
}

.actus-list .actu-card:nth-child(2) {
	animation: fadeInUp .35s .15s forwards;
}

.actus-list .actu-card:nth-child(3) {
	animation: fadeInUp .35s .25s forwards;
}

.actu-thumb {
	width: 110px;
	height: 110px;
	object-fit: cover;
	border-radius: 10px;
}

.actu-info {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.actu-title {
	font-size: 1rem;
	font-weight: 600;
	color: #222;
	margin-bottom: 4px;
}

.actu-date-sm {
	font-size: .85rem;
	color: #666;
}

/* =========================================================
   🗓️ SECTION AGENDA
========================================================= */
.agenda-card {
	background: #fff;
	border-radius: 16px;
	padding: 16px;
	margin-bottom: 16px;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	box-shadow: 0 2px 6px rgba(0,0,0,.08);
	transition: transform .15s, box-shadow .15s;
}

.agenda-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,.14);
}

.agenda-left {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.agenda-title {
	font-size: 1rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
}

.event-icon {
	font-size: 22px;
	color: #0a5894;
}

.agenda-dates,
.agenda-lieu {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.90rem;
	color: #555;
}

.info-icon {
	font-size: 20px;
	color: #757575;
}

.agenda-action {
	margin-left: auto;
}




/* =========================================================
   💬 PETITES ANNONCES — Habillage du logo (wrap text)
   Remplacez toute la section annonces existante par ce bloc
========================================================= */

#annonces {
	padding: 1.5rem;
        /* même largeur que Actualités / Agenda */
	margin-top: 1.5rem;
}

/* Carte */
#annonces .annonce-item {
	background: var(--surface);
	border-radius: 14px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
	margin-bottom: 1.5rem;
	padding: 1.2rem;
  /* on garde display:block pour le flux normal */
	display: block;
	animation: fadeInUp .35s ease forwards;
	opacity: 0;
	position: relative;
	overflow: visible;
 /* laisse l'image flotter sans couper le contenu */
}

/* Contenu (logo + texte) : en flux normal (pas de flex pour habillage) */
#annonces .annonce-content {
  display: block;
}

/* Cas sans logo : on garde l'affichage en colonne */
	#annonces .annonce-content.no-logo {
  display: block;
}

/* Logo — float pour permettre l'habillage du texte */
#annonces .annonce-logo {
  float: left;
  width: 100px;            /* ← ajuste si tu veux plus petit/grand (ex: 90px) */
  margin: 0 14px 8px 0;    /* espace entre image et texte */
  flex: none;              /* neutralise d'éventuelles règles flex précédentes */
}

/* image */
#annonces .annonce-logo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	object-fit: contain;
}

/* Zone texte : texte en flux normal qui habille l'image */
#annonces .annonce-text {
  /* pas de flex ici : laisse le texte s'écouler autour de l'image */
  color: #222;
  line-height: 1.45;
  overflow: visible;
}

/* Métadonnées : catégorie + date */
#annonces .annonce-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 6px;
}

#annonces .annonce-famille {
  font-weight: 600;
  color: var(--primary);
}

#annonces .annonce-sep { opacity: 0.7; }

/* Description */
#annonces .annonce-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #222;
}

/* liens cliquables dans le texte (tel, mail, url) */
#annonces .annonce-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
#annonces .annonce-link:hover { text-decoration: underline; }

/* CTA générique (annonces + actualités) */


/* Clear float after each card (sécurise l'affichage) */
#annonces .annonce-item::after {
	content: "";
	display: block;
	clear: both;
}

/* Responsive uniquement si écran très étroit (< 350px) */
@media (max-width: 350px) {
	#annonces .annonce-logo {
		float: none;
		width: 100%;
        /* logo en pleine largeur */
		margin: 0 0 10px 0;
	}
}




/* CTA "Voir toutes" (Actualités + Annonces) */

/* Hover (optionnel) */

.annonce-zone {
	font-size: 0.85rem;
	color: var(--primary);
	margin-top: 4px;
}

.cta-container {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
}

.cta {
	flex: 1;
	padding: 12px;
	border: none;
	border-radius: 8px;
	background: #004aad;
	color: white;
	font-size: 15px;
}

.region-btn {
	width: 100%;
	margin: 4px 0;
	padding: 8px;
	border-radius: 6px;
	border: 1px solid #ccc;
}

.annonce-zone {
	display: flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
	margin-bottom: 6px;
}

.hidden {
	display: none;
}

/* ===== CTA Familles (Fonds / Emploi / Formation) ===== */
.cta-container {
	display: flex;
	gap: 8px;
	justify-content: space-between;
	margin-bottom: 20px;
}

.cta {
	flex: 1;
	padding: 14px 10px;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	border-radius: 18px;
	background: var(--md-sys-color-surface-container-high, #f4f3f7);
	color: var(--md-sys-color-primary, #004AAD);
	text-decoration: none;
	border: 1px solid transparent;
	transition: 0.25s ease;
}

.cta:hover {
	background: var(--md-sys-color-primary-container, #dbe7ff);
	border-color: var(--md-sys-color-primary, #004AAD);
}

.cta.active {
	background: var(--md-sys-color-primary, #004AAD);
	color: white;
}

/* ===== Sélecteur de régions (2 par ligne propre) ===== */
#regions-select {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
  /* ✅ corrige l'overflow */
    gap: 8px;                                          /* ✅ espace entre boutons */
    padding: 0 8px;                                    /* ✅ évite contact bord écran */
    width: 100%;
    box-sizing: border-box;
}

/* Pills Material Design */
.region-btn {
    padding: 10px 6px;                                 /* ✅ réduit largeur effective */
    width: 90%;                                       /* ✅ bouton = toute la colonne */
    border-radius: 22px;
    border: 1px solid var(--md-sys-color-outline, #c3c3c3);
    background: var(--md-sys-color-surface-container-highest, #fff);
    color: var(--md-sys-color-on-surface, #333);
    font-size: 14px;
    text-align: center;
    white-space: nowrap;                               /* ✅ évite retour à la ligne sur long nom */
    overflow: hidden;
    text-overflow: ellipsis;                           /* ✅ coupe proprement si trop long */
    cursor: pointer;
    transition: all 0.25s ease;
}

.region-btn:hover {
    background: var(--md-sys-color-primary-container, #eaf2ff);
    border-color: var(--md-sys-color-primary, #004AAD);
}

.region-btn.active {
    background: var(--md-sys-color-primary, #004AAD);
    color: white;
    border-color: var(--md-sys-color-primary, #004AAD);
}

/* Encadrement / annonce premium */
.annonce-premium {
    border: 2px solid var(--primary);
    border-radius: 14px;
    box-shadow: 0 0 12px rgba(0,0,0,0.15);
    padding: 6px;
}

/* Mise en gras */
.annonce-bold {
    font-weight: 600;
}


/* --- CARD CTA : Poster une annonce ---------------------------------------- */
.annonce-submit-card {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 18px;
    border-radius: 16px;
    overflow: hidden;

    background: var(--md-sys-color-primary-container, #e8ecff);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow:
        0 1px 2px rgba(0,0,0,0.10),
        0 2px 6px rgba(0,0,0,0.08);

    transition: transform .15s ease, box-shadow .15s ease;
}

.annonce-submit-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(0,0,0,0.18);
}

.annonce-submit-content {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    gap: 14px;
}

.annonce-submit-icon {
    font-size: 36px;
    color: var(--primary);
}

.annonce-submit-text h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.annonce-submit-text p {
    margin: 2px 0 0;
    font-size: 0.9rem;
    opacity: 0.75;
}

.annonce-submit-arrow {
    font-size: 28px;
    margin-left: auto;
    opacity: .6;
}

/* Page poster.php — Material Design */
.annonce-submit-page {
    padding: 20px;
}

.help-card {
    background: var(--md-sys-color-surface, #fff);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.10),
        0 4px 12px rgba(0,0,0,0.08);
}

.help-card h2 {
    margin-top: 0;
    font-size: 1.4rem;
}

.contact-block {
    margin: 18px 0;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.contact-row a {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.hours-list {
    list-style: none;
    padding-left: 0;
}

.warning {
    background: #fff3cd;
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 0.85rem;
}

/* Bouton CTA */
.cta-post {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    background: var(--primary);
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    /* suppression du hover */
    transition: none;
}

/* Hover désactivé */
.cta-post:hover {
    background: var(--primary);   /* reste bleu */
    transform: none;              /* pas de mouvement */
}


/* ----------------------------------------------------------
   CARD TARIFS — même style que help-card
---------------------------------------------------------- */
.tarifs-card {
    background: var(--md-sys-color-surface);
    border-radius: 16px;
    padding: 22px;
    margin: 22px 0;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.12); /* identique à help-card */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Titre */
.tarifs-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
}

/* Texte intro */
.tarifs-intro {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Titres de sections */
.tarifs-section {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 14px;
    color: var(--primary);
}

/* Liste tarifs */
.tarifs-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Texte de précisions */
.tarifs-options {
    font-size: 0.82rem;
    opacity: 0.6;
}

.tarifs-plus {
    font-size: 0.78rem;
    opacity: 0.78;
    margin-top: -6px;
}


/* Lien retour discret */
.return-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    opacity: 0.65;
    text-decoration: none;
    color: var(--primary);
    margin: 0 auto 16px auto; /* centré */
}
.return-link:hover {
    opacity: 1;
}



/* === ANNURAIRE / CARD MATERIAL STYLE === */

.card-annuaire {
    background: white;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 24px;
    box-shadow: 0px 4px 14px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* mise en avant */
.annuaire-premium {
    border-left: 5px solid var(--primary); gap: 4px;;
}

.annuaire-premium .annuaire-logo {
     max-width: 50%;
    height: auto;
    border-radius: 8px;
	margin: 0 auto;
}

/* logo / photo */
.annuaire-logo {
    display: flex;
    justify-content: center;
}
.annuaire-logo img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
	margin: 0 auto;
}

/* =============================================================
   CARD ANNUAIRE – INFOS (Nom, adresse, téléphone, etc.)
   Modifie gap pour régler l'espace entre les lignes
   ============================================================= */
	.annuaire-info {
    display: flex;
	flex-direction: column;
	gap: 2px;
 /* <<< MODIFIER ICI pour changer l'espace entre lignes */
}

	.annuaire-info .annuaire-title{
    margin:0 ; text-align:left;
}


/* =============================================================
   ADRESSE (ligne avec icône adresse)
   ============================================================= */
.annuaire-address {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0; /* Supprime l'espace natif du <p> */;
}

/* =============================================================
   CP + VILLE + DÉPARTEMENT (collé à l'adresse)
   Tu peux jouer avec margin-top pour rapprocher ou espacer
   ============================================================= */
.annuaire-location {
    font-size: 0.90rem;
    color: #555;
    margin: 0 0 4px 40px; /* <<< modifie le premier nombre pour rapprocher encore */
}

/* =============================================================
   LIGNES ICONES (téléphone, site web)
   ============================================================= */
.annuaire-phone,
.annuaire-site {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px; /* aucune marge entre les lignes */
}

/* Style des liens */
.annuaire-site a,
.annuaire-phone a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* Grille des régions */
.annuaire-regions {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* ✅ 3 par ligne */
    gap: 10px;
    margin-bottom: 22px;
}

/* Boutons style Material */
.region-btn {
    padding: 10px 8px;
    display: block;
    text-align: center;
    text-decoration: none;
    border-radius: 40px;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 15px;
}

/* Actif + hover */
.region-btn.active,
.region-btn:hover {
    background: var(--primary);
    color: white;
}

/* ✅ Grille des régions : 3 boutons par ligne */
#regions-select.annuaire-regions {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
}

.dep-title {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

/* =============================== */
/* CTA CARD - ANNUAIRES MOBILE    */
/* =============================== */

/* =============================== */
/* CTA CARD - ANNUAIRES MOBILE    */
/* =============================== */

.annuaire-cta-wrapper {
    text-decoration: none;
    width: 100%;
    display: block;
}

.annuaire-cta-card {
    background: #E8EEF8; /* bleu clair */
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    /*gap: 14px;*/
    box-shadow: 0px 4px 12px rgba(0,0,0,0.10);
    margin: 28px auto;
}

.annuaire-cta-icon {
  font-size: 50px; /* Augmente la taille du pictogramme pour le rendre un peu plus gros (modifie selon besoin) */
  color: #2A4E8A;
  transform: rotate(-25deg); /* Rotation anti-horaire */
  align-self: center; /* Centre le pictogramme verticalement par rapport au texte */
}

.annuaire-cta-btn {
  background: var(--primary); /* BLEU site */
  border: none;
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap; /* évite les retours à la ligne */
  align-self: flex-end; /* Aligne le bouton à droite (verticalement) */
  margin: auto; /* Centre le bouton horizontalement par rapport au texte */
}


.annuaire-cta-content {
    display: flex;
    flex-direction: column; /* Empile les éléments de droite (texte + bouton) */
    flex: 1;
}

.annuaire-cta-texts {
    color: #12243A;
    font-size: 0.92rem;
    text-align: center;
    margin-bottom: 14px; /* Un peu d'espace entre le texte et le bouton */
}

.annuaire-cta-texts strong {
    font-size: 1rem;
    font-weight: 600;
}

/* bouton "Contactez-nous" */
.annuaire-cta-btn {
  background: var(--primary); /* BLEU site */
  border: none;
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap; /* évite les retours à la ligne */
  align-self: flex-end; /* Aligne le bouton à droite (verticalement) */
  margin: auto; /* Centre le bouton horizontalement par rapport au texte */
}





/* ---------- annuaire : layout image / contenu ---------- */
/* .annuaire-card-row englobe chaque card en ligne */
.annuaire-card-row {
	display: flex;
	flex-direction: row;
	gap: 16px;
                /* espace entre image et contenu */
	align-items: flex-start;
  /* commencer en haut */
    /* si tu veux que la carte ait le look material existant, laisse la .card-annuaire / .card-annuaire déjà définie */;
}

/* colonne image : ~1/3 de la largeur */
.annuaire-col--media {
	flex: 0 0 33%;
            /* largeur fixe ~33% */
	max-width: 33%;
	display: flex;
	align-items: center;
	justify-content: center;
  /* centre l'image horizontalement */
}

/* colonne contenu : prend le reste */
.annuaire-col--content {
    flex: 1 1 67%;
    min-width: 0;             /* important pour permettre le truncation du texte */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* style du bloc image */
.annuaire-logo {
    display: block;
    width: 100%;
    text-align: center;
}

/* image : occupe au maximum la largeur de sa colonne tout en gardant ratio */
.annuaire-logo img {
    display: block;
    width: 100%;              /* occupe la colonne (≈33%) */
    height: auto;
    max-height: 250px;        /* limite la hauteur si tu veux éviter des images gigantesques */
    object-fit: contain;      /* préserve l'image entière, la centre à l'intérieur */
    border-radius: 8px;       /* arrondir légèrement */
}

/* Responsive : sur petits écrans, empiler verticalement */
@media (max-width: 720px) {
    .annuaire-card-row {
        flex-direction: column;
    }
    .annuaire-col--media,
    .annuaire-col--content {
        flex: 1 1 auto;
        max-width: 100%;
    }
    .annuaire-logo img { max-height: 180px; }
}

/* Si tu veux réduire le gap entre lignes dans la colonne contenu */
.annuaire-col--content p { margin: 0 0 6px 0; }

/* Layout image + contenu */
.annuaire-card-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.annuaire-col--media {
    flex: 0 0 30%;
}

.annuaire-col--media img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}


/* =========================================================
   ✅ CTA Nouveautés (bannière en bas de page)
   ========================================================= */


/* ------------------------------------------------------------
   NOUVEAUTÉS — Forcer titre à droite de l'image (centré vertical)
   Scope : .nouveaute-card uniquement → n'affecte pas les annuaires
   Colle ce bloc à la fin de ton CSS nouveautés (après les rules existantes)
   ------------------------------------------------------------ */

/* Wrapper ligne (image + contenu) : force ligne et alignement central */
.nouveaute-card .annuaire-card-row {
  display: flex !important;            /* s'assurer que c'est du flex */
  flex-direction: row !important;      /* forcer horizontal (image à gauche) */
  align-items: center !important;      /* centre verticalement le titre par rapport à l'image */
	gap: 16px;
}

/* Colonne média (image) : ~30% largeur, centrée */
.nouveaute-card .annuaire-col--media {
	flex: 0 0 30%;
	max-width: 30%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Image : occupe la colonne mais garde ratio, limite hauteur */
.nouveaute-card .annuaire-col--media .annuaire-logo img {
	width: 100%;
	height: auto;
	max-height: 140px;
   /* ajustable : augmenter ↓ diminuer */
	object-fit: contain;
	display: block;
	border-radius: 8px;
	border: lightgrey 1px solid;
}

/* Colonne contenu (titre) : prend le reste, centre verticalement */
.nouveaute-card .annuaire-col--content {
	flex: 1 1 70%;
	min-width: 0;
                    /* essentiel pour le truncation du texte */
	display: flex;
	flex-direction: column;
          /* titre en haut, extrait en bottom (voir ordre) */
	justify-content: center;
         /* centre verticalement le bloc titre par rapport à l'image */
  gap: 6px;
}

/* Titre : taille légèrement réduite et sans débordement */
.nouveaute-card .annuaire-title {
  margin: 0;
  font-size: 1.05rem;   /* ajuste si tu veux le diminuer/agrandir */
  line-height: 1.15;
  font-weight: 600;
  /* évite que le titre pousse la mise en page */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Extrait et bouton : placer SOUS la ligne image+titre (s'étend sur toute la largeur) */
	.nouveaute-card .nouveaute-bottom {
  width: 100%;
	margin-top: 10px;
	display: block;
	order: 2;
 /* s'assure que cet élément suit la ligne principale */
}

/* Si extrait était dans la colonne titre, réduire le gap avec le titre */
.nouveaute-card .nouveaute-extrait {
  margin: 0 0 10px 0;
  color: #333;
  line-height: 1.45;
}

/* Bouton "Lire la suite" : aligné à droite de l'extrait si tu veux */
	.nouveaute-card .btn-annuaire-more {
  color: var(--primary);
	font-weight: 600;
	text-decoration: none;
	display: inline-block;
	margin-top: 8px;
}

/* ----- override éventuel du media query existant (pour petits écrans)
   Si tu veux conserver le stacking sur très petits écrans, supprime ce bloc.
   Ici on force le layout horizontal même sur <520px ; retire si tu préfères */
@media (max-width: 420px) {
	.nouveaute-card .annuaire-card-row {
		flex-direction: row !important;
	}

	.nouveaute-card .annuaire-col--media {
		flex: 0 0 34%;
		max-width: 34%;
	}

	.nouveaute-card .annuaire-col--content {
		flex: 1 1 66%;
	}
}

/* =========================================================
   ✅ Page Nouveauté — fiche
   ========================================================= */

.page-nouveaute-fiche .fiche-title {
	font-size: 1.45rem;
	font-weight: 700;
	margin-bottom: 12px;
}

.nouveaute-photo-fiche {
	width: 100%;
	max-width: 300px;
	display: block;
	margin: 10px auto 20px;
	border-radius: 12px;
}

.nouveaute-content-fiche {
	font-size: .95rem;
	line-height: 1.55;
	color: #222;
}

.retour-link {
	display: inline-block;
	margin-bottom: 20px;
	color: var(--primary);
	text-decoration: none;
	font-weight: 600;
}

.retour-bottom {
	margin-top: 32px;
	display: block;
	text-align: center;
}

/* =========================================================
   ✅ Page Nouveauté — fiche
   ========================================================= */

.page-nouveaute-fiche .fiche-title {
	font-size: 1.45rem;
	font-weight: 700;
	margin-bottom: 12px;
}

.nouveaute-photo-fiche {
	width: 100%;
	max-width: 300px;
	display: block;
	margin: 10px auto 20px;
	border-radius: 12px;
	border: lightgrey 1px solid;
}

.nouveaute-content-fiche {
	font-size: .95rem;
	line-height: 1.55;
	color: #222;
}

.retour-link {
	display: inline-block;
	margin-bottom: 20px;
	color: var(--primary);
	text-decoration: none;
	font-weight: 600;
}

.retour-bottom {
	margin-top: 32px;
	display: block;
	text-align: center;
}


/* ==========================================================================
   ✅ Blog (accueil + liste + cards Questions/Réponses)
   ========================================================================== */

/* === Conteneur général === */
.page-content {
	padding: 16px;
}

.page-title {
	font-size: 1.4rem;
	margin-bottom: 14px;
}

/* === Familles (grandes catégories couleur) === */
.blog-family {
	padding: 12px;
	border-radius: 10px;
	margin-bottom: 18px;
	color: #fff;
}

/* === Rubriques (sous-catégories cliquables) === */
.blog-rubrique {
	background: rgba(255,255,255,0.12);
	padding: 8px 10px;
	border-radius: 6px;
	margin: 8px 0;
}

.blog-rubrique a {
	color: #fff;
	text-decoration: none;
	display: block;
}

/* ==========================================================================
   ✅ Cards : Questions / Réponses (sur la page d’accueil Blog)
   ========================================================================== */

.blog-question-card {
	background: #fff;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 18px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Bandeau Famille (couleur principale) */
.blog-question-path strong {
	display: inline-block;
	width: fit-content;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 700;
}

/* Couleurs des familles (SET_ID renvoyé par PHP) */
.blog-fam-2 {
	background: #f3e9f5;
	color: #825387;
}   /* Formation & réseaux */
.blog-fam-4 {
	background: #e9f2e4;
	color: #4f6b3b;
}   /* Gestion */
.blog-fam-1 {
	background: #f7e8ea;
	color: #92535B;
}   /* Droit & réglementations */


/* Rubrique */
.blog-question-path .rubrique {
	color: rgba(0,0,0,0.55);
	font-size: 0.85rem;
	margin-top: 4px;
	display: block;
}

/* Sous-rubrique */
.blog-question-path em {
	font-style: italic;
	font-size: 0.85rem;
}

/* Question */
.blog-question-title {
	font-size: 1.05rem;
	margin: 10px 0 6px 0;
	font-weight: 600;
}

/* Extrait réponse */
.blog-question-reponse {
	margin-bottom: 8px;
	line-height: 1.45;
	color: #444;
}

/* Auteur + date */
.blog-question-meta {
	font-size: 0.8rem;
	color: #666;
}

/* CTA */
.blog-question-link {
  display: block; /* Le lien devient un bloc */
  margin: 12px 8px 6px 0;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  text-align: right; /* Aligne le texte à droite dans le bloc */
}

/* ===== Bouton de retour / CTA ===== */
.btn-primary {
	background: var(--primary);
	color: white;
	padding: 8px 18px;
	border-radius: 8px;
	display: inline-block;
	text-decoration: none;
	font-weight: 600;
}

/* ===== CTA discret en bas des pages blog ===== */
.blog-cta {
	margin-top: 16px;
	padding: 16px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.blog-cta-btn {
	display: block;
	background: var(--primary);
	padding: 12px;
	border-radius: 10px;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

.blog-cta-btn:hover {
	filter: brightness(1.05);
}

.blog-cta-link {
	font-size: 0.85rem;
	color: #666;
	text-decoration: underline;
	margin-top: 10px;
}

/* ===== Page Conditions / CTA ===== */

.blog-card {
	background: #fff;
	border-radius: 12px;
	padding: 18px;
	margin-bottom: 20px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.blog-cta {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 32px;
	text-align: center;
}

.blog-cta a {
	display: block;
	padding: 12px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
}

/* Bouton retour */
.cta-secondary {
	border: 1px solid rgba(0,0,0,0.18);
	background: #f7f7f7;
	color: #444;
}

/* Bouton poser une question */

/* Titre question sur blog-fiche.php */
.blog-question-title-full {
	font-size: 1.2rem;
        /* ⬅️ taille réduite */
	line-height: 1.45;
	font-weight: 600;
	margin: 12px 0 16px 0;
}


/* --- Profession (onglets) --- */
.profession-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
}




/* ============================================================
   profession.php — Styles Material Design (mobile first)
   ============================================================ */

/* --- Navigation / Filtres (onglets) --- */
.profession-tabs {
	display: flex;
	gap: 8px;
	margin: 20px 0;
}

.profession-tabs button {
	flex: 1;
	padding: 12px 14px;
	border-radius: 12px;
	border: none;
	background: #eceff1;
	color: #333;
	font-weight: 600;
	cursor: pointer;
	transition: 0.25s ease-in-out;
}

.profession-tabs button.active {
	background: var(--primary);
	color: #fff;
	box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

/* --- Sections (contenu par onglet) --- */
.profession-content {
	display: none; line-height: 25px;
}

.profession-content.active {
	display: block;
}

.intro-text {
	margin-bottom: 20px;
	color: #333;
	line-height: 1.55;
	font-size: 0.95rem;
}


/* ============================================================
   CARDS GÉNÉRIQUES (Métier / Formation)
   ============================================================ */

.profession-card {
	background: #fff;
	border-radius: 14px;
	padding: 18px 20px;
	margin-bottom: 22px;
	box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.profession-card-title {
	margin-top: 0;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--primary);
}


/* ============================================================
   CARDS SALAIRES — Lecture via BDD
   ============================================================ */

.salary-card {
	background: #fff;
	border-radius: 14px;
	padding: 16px 20px;
	margin-bottom: 34px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
	border-left: 5px solid var(--primary);
}

/* Titre du niveau */
.salary-level {
	font-size: 1.20rem;
	font-weight: 700;
	color: var(--primary);
	margin: 0 0 10px 0;
}

/* Fonction / catégorie */
.salary-function {
	font-size: 0.95rem;
	font-weight: 600;
	margin-top: 14px;
	margin-bottom: 6px;
	padding: 6px 8px;
	background: rgba(0, 0, 0, 0.04);
	border-radius: 6px;
}

/* Liste des échelons */
.salary-list {
	list-style: none;
	margin: 0;
	padding: 0 4px;
}

.salary-list li {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	font-size: 0.95rem;
	border-bottom: 1px dashed rgba(0,0,0,0.06);
}

.salary-list li strong {
	color: #222;
}


/* Animation légère apparition */
.salary-card {
	animation: fadeInUp .25s ease forwards;
	opacity: 0;
	transform: translateY(8px);
}

/* Effet hover discret */
.salary-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}

/* Petite animation réutilisable */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}





/* =========================================================
   🦶 FOOTER
========================================================= */
/* --- Footer harmonisé --- */
.app-footer {
	background: var(--primary);
	color: var(--text-light);
	text-align: center;
	padding: 14px 8px;
	font-size: 0.9rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.app-footer .footer-links {
	display: flex;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.app-footer .footer-links a {
	color: var(--text-light);
	text-decoration: none;
	font-weight: 500;
	opacity: 0.9;
	transition: opacity 0.2s;
}

.app-footer .footer-links a:hover {
	opacity: 1;
	text-decoration: underline;
}


/* =========================================================
   🧭 MENU LATÉRAL (Drawer)
========================================================= */

.side-drawer {
	position: fixed;
	top: 0;
	left: 0;
	width: 300px;
                  /* 🔧 largeur du menu */
	height: 100vh;
	background: #fff;
	box-shadow: 3px 0 14px rgba(0, 0, 0, 0.15);
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	z-index: 2000;
	overflow-y: auto;
	padding-bottom: 30px;
}

.side-drawer.open {
	transform: translateX(0);
}

/* --- zone du logo --- */
.drawer-header {
	padding: 24px 16px 12px;
	text-align: center;
	border-bottom: 1px solid #eee;
}

.drawer-logo {
	height: 66px;
                  /* 🔧 taille du logo dans le menu */
	width: auto;
}

/* --- liens et sections --- */
.drawer-content {
	padding: 10px 0 30px;
}

.drawer-section {
	margin-bottom: 16px;
	padding: 0 16px;
}

.drawer-section h4 {
	margin: 12px 0 6px;
	font-size: 1rem;
	color: var(--secondary);
	font-weight: 700;
}

.drawer-section a {
	display: block;
	padding: 8px 0 8px 8px;
	color: #222;
	text-decoration: none;
	font-size: 0.95rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	transition: color 0.2s ease, background 0.2s ease;
}

.drawer-section a:hover {
	color: var(--primary);
	background: rgba(10, 88, 148, 0.05);
	border-radius: 4px;
}

/* --- overlay sombre derrière le menu --- */
.drawer-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: rgba(0, 0, 0, 0.35);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
	z-index: 1500;
}

.drawer-overlay.active {
	opacity: 1;
	visibility: visible;
}

/*****************************/

/* 🔒 LIEN VERROUILLÉ */
.drawer-section a.locked,
.drawer-section a.unlocked {
    position: relative;
    padding-left: 32px; /* marge pour icônes visibles */
}

.drawer-section a.locked::before,
.drawer-section a.unlocked::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 1;
}

/* 🔒 icône cadenas fermé */
.drawer-section a.locked::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%230a5894' viewBox='0 0 24 24'><path d='M12 1a5 5 0 00-5 5v3H6a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V11a2 2 0 00-2-2h-1V6a5 5 0 00-5-5zm3 8H9V6a3 3 0 016 0v3z'/></svg>");
}



/* ✓ icône check visible (accès autorisé) */
.drawer-section a.unlocked::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%230a5894' viewBox='0 0 24 24'><path d='M9 16.17l-3.88-3.88L3.7 13.7 9 19l12-12-1.41-1.42z'/></svg>");
}






/* =========================================================
   ✉️ PAGE INSCRIPTION NEWSLETTER
========================================================= */

.btn-submit {
	background: var(--primary);
	color: white;
	border: none;
	border-radius: 10px;
	padding: 12px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: 0.25s ease;
}

.btn-submit:hover {
	opacity: 0.9;
}

/* Messages */
.success-msg {
	background: #e6f7ec;
	color: #1a7f37;
	padding: 10px 14px;
	border-radius: 8px;
	margin-top: 16px;
	font-weight: 600;
}

.error-msg {
	background: #fdecea;
	color: #c0392b;
	padding: 10px 14px;
	border-radius: 8px;
	margin-top: 16px;
	font-weight: 600;
}

.info-msg {
	background: #fff7e6;
	color: #ad7d00;
	padding: 10px 14px;
	border-radius: 8px;
	margin-top: 16px;
	font-weight: 600;
}

/* =========================================================
   💳 PAGE ABONNEMENTS — version finale
========================================================= */

/* --- Liste des avantages en haut --- */
.benefits-list {
	list-style: none;
	padding: 0;
	margin: 12px 0 22px;
}

.benefits-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	font-size: 0.95rem;
	color: #333;
}

.benefits-list li::before {
	content: "✔";
	color: var(--primary);
	font-weight: bold;
	font-size: 1rem;
	line-height: 1;
}

/* =========================================================
   💳 PAGE ABONNEMENTS — Mise en page 2 cartes / ligne
========================================================= */

.offers-grid {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin-top: 22px;
}

/* Chaque ligne */
.offer-row {
	display: flex;
	justify-content: center;
	gap: 14px;
}

/* Pour la ligne prélèvement = pleine largeur */
.offer-row.single {
	flex-direction: column;
}

/* Carte d'offre */
.offer-card {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  padding: 15px 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  text-align: center;
  animation: fadeInUp .3s ease forwards;
}

/* Empêche les cartes d’être trop étroites si l’écran est petit */
.offer-card {
  min-width: 40%;
}

/* Titres et textes inchangés */
.offer-card h2 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 6px;
  font-weight: 700;
  line-height: 1.3;
}

.offer-card h2 span {
  display: block;
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.offer-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin: 8px 0;
}

.offer-card .subtitle {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 6px;
}

.note {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #777;
  font-style: italic;
}


/* --- Section contact avant CTA --- */
.contact-section {
  background: #f8faff; /* 💡 fond léger bleu-gris */
  border-radius: 18px;
  margin-top: 32px;
  padding: 0;
}

/* --- Help card (reprise stylisée) --- */
.help-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  margin: 0px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.help-icon {
  font-size: 40px;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}

/* --- CTA global (unique) --- */
.cta-container {
  display: flex;
  justify-content: center;
  margin: 28px 0 18px;
}

.cta-post {
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.cta-post:hover {
  opacity: 0.9;
}

.cta-post .material-symbols-outlined {
  font-size: 24px;
  line-height: 1;
}
.cta-post .material-symbols-outlined {
  color: white; /* ✅ rend le picto visible sur bouton bleu */
  font-size: 24px;
  line-height: 1;
  font-variation-settings:
    'FILL' 1,      /* 💡 version "pleine" du picto pour plus de contraste */
    'wght' 500,
    'GRAD' 0,
    'opsz' 24;
}

/* ===== Specimen (papier) ===== */
/* ===== Liste rubriques (papier) — lignes égales, sans zébrures ===== */
.icon-list{
  list-style:none;
  padding:0;
  margin:10px 0 18px 0;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:12px;
  overflow:hidden;                 /* évite “zébrures” sur hauteurs variables */
}
.icon-list li{
  display:flex;
  align-items:center;              /* ✅ verticalement centré → hauteur uniforme */
  gap:10px;
  padding:4px 4px;
  min-height:40px;                 /* ✅ même hauteur visuelle pour chaque ligne */
}
.icon-list li + li{
  border-top:1px solid rgba(0,0,0,.08);  /* séparateur propre (plus de pointillés) */
}
.icon-list .material-symbols-outlined{
  font-size:22px;
  color:var(--primary);
  flex:0 0 22px;
}

/* bloc texte (titre + description sur une seule ligne) */
.icon-list .icon-text{
  display:flex;
  align-items:center;
  gap:6px;
  width:100%;
  min-width:0;                     /* autorise l’ellipsis */
  white-space:nowrap;              /* ✅ une seule ligne → hauteurs identiques */
}
.icon-list .icon-text strong{
  color:#12243A;
  font-weight:700;
}
/* tiret fin insécable automatiquement entre titre et description */
.icon-list .icon-text strong::after{
  content:" \2014\00A0";           /* — + espace insécable */
  opacity:.55;
}
.icon-list .icon-text .desc{
  color:#4b5563;
  overflow:hidden;
  text-overflow:ellipsis;          /* ✅ coupe proprement si trop long */
}

.specimen-viewer { margin: 10px 0 0; }
.specimen-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 12px;
  background: var(--md-sys-color-surface, #fff);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.specimen-bar .material-symbols-outlined { font-size: 20px; color: var(--primary); }
.specimen-counter { margin-left: auto; font-weight: 600; color:#333; }

.specimen-strip {
  margin-top: 10px;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 8px;
  border-radius: 12px;
}
.specimen-page {
  flex: 0 0 100%;
  scroll-snap-align: center;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  background: #fff;
}





/* =========================================================
   🏠 HOME (index.php) — source unique & propre
   - Place ce bloc APRÈS tous les autres styles.
   - Supprime les anciens blocs .home pour éviter les doublons.
   - N'affecte que la page d'accueil (scopé à .home).
   ---------------------------------------------------------
   Réglages rapides :
     --home-gutter        : marge G/D (mets la même valeur que .app-header padding)
     --home-title-gap     : espace entre le titre et la 1re carte
     --home-divider-gap   : espace avant/après le diviseur
     --home-thumb         : taille des vignettes Actus
========================================================= */
.home{
  --home-gutter: 20px;
  --home-title-gap: 10px;
  --home-thumb: 120px;
}

/* 1) Gouttières globales de la page d’accueil (alignées au header) */
.home.page-content{
  padding-left:  var(--home-gutter) !important;
  padding-right: var(--home-gutter) !important;
}

/* 2) Reset des sections incluses (on neutralise paddings/margins internes
      pour éviter les cumuls et “rétrécissements”). */
.home > section{ padding:0 !important; margin:0 !important; }
.home section.home-section,
.home #agenda,
.home #annonces,
.home .section-actualites,
.home .section-agenda{
  padding:0 !important; margin:0 !important;
}

/* 3) Bandeau “Titre + Tout voir” */
.home .section-header{
  display:flex; align-items:center; justify-content:space-between;
  margin:0; height: 56px;
}
.home .section-header .section-title{ font-size:1.25rem; font-weight:700; }
.home .section-header .section-action{
  display:inline-flex; gap:6px; align-items:center;
  color:var(--primary); font-weight:600; text-decoration:none;
}
.home .section-header .material-symbols-outlined{ font-size:18px; }



/* 4) Les cards occupent toute la largeur + gap vertical uniforme */
.home{
  --home-card-gap: 24px;         /* ↔️ espace entre deux cards (ajuste ici) */
}


.home #agenda .agenda-card,
.home #annonces .annonce-item{
  width:100%;
  max-width:none !important;
  margin:0 0 var(--home-card-gap);   /* ✅ garde un espace entre les cards */
  box-sizing:border-box;
}


/* pas d’espace inutile après la dernière card d’une section */

.home #agenda .agenda-card:last-child
{
  margin-bottom:0;
}

/* 5) Actus : vignettes + colonne texte fluides */



/* Réglages globaux (valeurs par défaut) */
.home{
  --home-divider-gap-top: 40px;
  --home-divider-gap-bottom: 32px;
}

/* Diviseur : gère top/bottom séparément */
.home .section-divider{
  border: 0;
  height: 2px;
  margin-block-start: var(--home-divider-gap-top, 24px);
  margin-block-end:   var(--home-divider-gap-bottom, 24px);
  border-radius: 5px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,.12), transparent);
}











/* (on laisse l’espacement piloté par les marges des cards) */


/* =========================================================
   📰 HOME — Dernière parution (scopé, ne casse rien ailleurs)
   ========================================================= */
.home #home-parution.parution-card{
  width:100%;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px 14px;           /* même rythme que tes autres cards */
  border-radius:14px;
  box-shadow:0 4px 14px rgba(0,0,0,0.10);
}

/* Couverture (à gauche) */
.home #home-parution .parution-media{
  flex:0 0 96px;               /* ajuste si tu veux plus grand/petit */
}
.home #home-parution .parution-media img{
  display:block;
  width:96px;
  height:auto;
  border-radius:4px;
  border:1px solid grey;
  border-left: 3px solid var(--primary);
  border-bottom: 3px solid var(--primary);

}

/* Texte (à droite) */
.home #home-parution .parution-body{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* Ligne N° + date (même rendu que parution.php) */
.home #home-parution .parution-meta{
  display:flex;
  align-items:center;
  gap:10px;
}
.home #home-parution .parution-badge{
  background:var(--primary);
  color:#fff;
  padding:6px 10px;
  border-radius:10px;
  font-weight:700;
  font-size:.95rem;
}
.home #home-parution .parution-date{
  font-weight:700;
  color:#12243A;
}

/* Accroche */
.home #home-parution .parution-lead{
  margin:0;
  color:#344;
  line-height:1.4;
}

/* CTA ferré à droite + icône bien alignée */
.home #home-parution .parution-cta{
  margin-top:2px;
  display:flex;
  justify-content:flex-end;    /* 👉 collé à droite */
}
.home #home-parution .cta-inline{
  display:inline-flex;         /* 👉 aligne le picto avec le texte */
  align-items:center;
  gap:6px;
  font-weight:700;
  color:var(--primary);
  text-decoration:none;
}
.home #home-parution .cta-inline .material-symbols-outlined{
  font-size:20px;
  line-height:1;
}

/* =========================================================
   📨 HOME — Newsletter (CTA full-width sous la carte)
   ========================================================= */

/* La carte devient une grille 2 colonnes : [icône] [contenu]  */
.home #home-newsletter.newsletter-card{
  display: grid;
  grid-template-columns: 52px 1fr; /* 52 = 44px pastille + respirations */
  column-gap: 14px;
  align-items: start;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.10);
}

/* Pastille icône (colonne 1) */
.home #home-newsletter .newsletter-icon{
  grid-column: 1;
  grid-row: 1 / span 2;            /* reste en haut, sur la hauteur du texte */
  width: 44px; height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 8%, #fff);
  display: flex; align-items: center; justify-content: center;
}
.home #home-newsletter .newsletter-icon .material-symbols-outlined{
  font-size: 24px; color: var(--primary);
}

/* On "aplatit" .newsletter-body pour que ses enfants participent à la grille */
.home #home-newsletter .newsletter-body{ display: contents; }

/* Titre + lead alignés dans la colonne 2 */
.home #home-newsletter .newsletter-title{
  grid-column: 2; grid-row: 1;
  margin: 0 0 6px 0; font-size: 1.05rem; font-weight: 700;
}
.home #home-newsletter .newsletter-lead{
  grid-column: 2; grid-row: 2;
  margin: 0 0 12px 0; line-height: 1.45; color: #2a2a2a;
}

/* 👉 CTA : occupe TOUTE la largeur de la carte (colonne 1 → 2) */
.home #home-newsletter .newsletter-cta{
  grid-column: 1 / -1;              /* span sur les 2 colonnes de la grille */
  grid-row: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;   /* deux boutons = 50/50 */
  gap: 30px;
  width: 100%;
}

/* Boutons (pills) */
.home #home-newsletter .btn-tonal,
.home #home-newsletter .btn-primary{
  display: inline-flex; align-items: center; justify-content: center;
  gap: 70px; text-decoration: none; font-weight: 700;
  border-radius: 8px; padding: 1px 1px; min-height: 30px; line-height: 1;                       /* ← chaque bouton remplit sa cellule */
}

/* Styles visuels */
.home #home-newsletter .btn-tonal{
  background: var(--md-sys-color-primary-container, #e8ecff);
  color: var(--md-sys-color-primary, #004AAD);
}
.home #home-newsletter .btn-primary{
  background: var(--primary); color: #fff;
}
.home #home-newsletter .btn-primary .material-symbols-outlined{
  color: #fff; font-variation-settings: 'FILL' 1;
}
.home #home-newsletter .newsletter-cta .material-symbols-outlined{
  font-size: 20px; line-height: 1;
}



/* =========================================================
   HOME — Nouveautés : card cliquable (image gauche / titre droite)
   Colle ce bloc à la fin de /mobile/css/styles.css
   ========================================================= */

.home #home-nouveautes { margin-top: 0; margin-bottom: 0; }

/* wrapper cliquable : force le rendu « card » */
.home #home-nouveautes .nouveaute-card.surface,
.home #home-nouveautes a.nouveaute-card.surface {
  display: flex !important;            /* ligne : image + contenu */
  gap: 14px !important;
  align-items: center !important;
  text-decoration: none !important;
  color: inherit !important;
  background: #fff !important;
  border-radius: 14px !important;
  padding: 14px !important;
  box-shadow: 0 6px 18px rgba(12,25,42,0.07) !important;
  transition: transform .12s ease, box-shadow .12s ease;
  margin-bottom: 18px !important;
  -webkit-tap-highlight-color: transparent;
}

/* Hover / active (mobile will see ripple from material web, but still nice on desktop) */
.home #home-nouveautes .nouveaute-card.surface:focus,
.home #home-nouveautes .nouveaute-card.surface:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(12,25,42,0.10);
}

/* Image colonne — fixe et cadrée */
.home #home-nouveautes .nouveaute-img {
  flex: 0 0 84px !important;           /* largeur fixe */
  width: 84px !important;
  height: 84px !important;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #f6f7fb;
}

.home #home-nouveautes .nouveaute-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 10px !important;
}

/* Contenu à droite — prend le reste */
.home #home-nouveautes .nouveaute-content {
  flex: 1 1 auto !important;
  min-width: 0; /* important pour ellipsis */
}

/* Titre — visible, gras, coupe si trop long */
.home #home-nouveautes .nouveaute-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary, #12243A);
  display: -webkit-box;
/*  -webkit-line-clamp: 2;       /* coupe à 2 lignes */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Si tu veux la card entière accessible au clavier */
.home #home-nouveautes .nouveaute-card:focus { outline: 3px solid rgba(0,90,200,0.08); }

/* petits réglages responsive (si besoin) */
@media (max-width: 360px) {
  .home #home-nouveautes .nouveaute-img { flex: 0 0 72px; width:72px; height:72px; }
  .home #home-nouveautes .nouveaute-title { font-size: 0.95rem; }
}


/* =========================================================
   HOME — SECTION ABONNEMENT
 ========================================================= */

#home-abonnement .abo-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  background: #fff;
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(12,25,42,0.08);
  transition: transform .15s ease, box-shadow .15s ease;
  color: inherit;
}

/* hover / focus */
#home-abonnement .abo-card:hover,
#home-abonnement .abo-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(12,25,42,0.12);
}

#home-abonnement .abo-icon {
  width: 70px;
  height: 120px;
  border-radius: 14px;
  background: #e9f1ff;                 /* bleu doux */
  display: flex;
  justify-content: center;
  align-items: center;
}

#home-abonnement .abo-icon .material-symbols-outlined {
  font-size: 36px;
  color: #0059c0;                      /* bleu marque */
}

#home-abonnement .abo-content {
  flex: 1;
}

#home-abonnement .abo-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #0d2038;
}

#home-abonnement .abo-text {
  margin: 4px 0 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #445064;
}

@media (max-width: 360px) {
  #home-abonnement .abo-icon {
    width: 60px;
    height: 60px;
  }
  #home-abonnement .abo-title {
    font-size: 1rem;
  }
}




/* ======== PUBLICITÉS ======== */

.pub {
  display: block;
  width: 100%;
  max-width: 100%;
  /*margin: var(--home-card-gap, 24px) 0;*/
  margin: 12px 0 24px 0;
}

.pub img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;

  /*border-radius: var(--radius-card, 12px);*/

  /* Pour bannière + carré sans distorsion */
  object-fit: cover;
}

/* ===========================
   POPUP PUBLICITÉ
=========================== */
.pub-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.pub-overlay.hidden {
  display: none;
}

.pub-popup {
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  max-width: 90%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  position: relative;
  animation: popup-zoom 0.25s ease-out;
}

.pub-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.pub-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

@keyframes popup-zoom {
  from { transform: scale(0.8); opacity: 0;}
  to   { transform: scale(1); opacity: 1;}
}


/* =========================================================
   📰 ARTICLES — Cards liste + suggestions en fiche
   ========================================================= */

.article-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  display: block;
  color: inherit;
  text-decoration: none;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}

/* Bandeau infos (thème + date + icône) */
.article-meta {
  font-size: 14px;
  color: #777;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.article-meta .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

/* Titre */
.article-title {
  font-size: 17px;
  font-weight: 700;
  margin: 2px 0 6px;
}

/* Résumé */
.article-resume {
  font-size: 14px;
  color: #444;
  line-height: 1.45;
}


/* ==========================================================
   🔎 FILTRE ARTICLES (Design Material + clean)
   ========================================================== */

/* Carte du formulaire */
.filter-card {
    background: #eef4ff;            /* bleu très léger */
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Ligne : barre de recherche + bouton OK */
.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Champ de recherche (loupe + input) */
.filter-field {
    flex: 1;
    display: flex;
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid #dcdcdc;
    align-items: center;
    gap: 8px;
}

.filter-field input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 15px;
    background: transparent;
}

.filter-field .material-symbols-outlined {
    font-size: 20px;
    color: #5b6f82;
}

/* Bouton OK — même hauteur que le champ */
.filter-submit {
    background: #2196f3;
    color: #fff;
    border: none;
    height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.filter-submit:hover {
    background: #0b7dd8;
}

/* Select Thème (pleine largeur sous la recherche) */
.filter-select {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #dcdcdc;
    font-size: 15px;
    appearance: none;
    cursor: pointer;
}

/* ✅ Cacher les nombres entre parenthèses dans les options */
.filter-select option {
    unicode-bidi: plaintext; /* masque visualement (123) */
}

/* Responsive */
@media (max-width: 600px) {
    .filter-group {
        flex-direction: row;
    }
}



/* ======================================= */
/* LIENS DES CARDS (désactive soulignement) */
/* ======================================= */
.article-card,
.article-card:visited,
.article-card:hover,
.article-card:active {
    text-decoration: none !important;
}

/* Empêche underline dans les cards */
.article-card * {
    text-decoration: none !important;
}
/* ============================================================
   🔎 FILTRE ARTICLES — Style Material propre et unifié
   ============================================================ */

/* Empêche soulignements */
.filter-card select,
.filter-card input,
.filter-submit {
    text-decoration: none !important;
}

/* Carte du filtre */
.filter-card {
    background: rgba(33, 150, 243, 0.08); /* bleu très léger Material */
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Groupe : champ + bouton OK */
.filter-group {
    display: flex;
    align-items: stretch;     /* ✅ même hauteur champ + bouton */
    gap: 10px;
    width: 100%;
}

/* Champ recherche */
.filter-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    padding: 0 12px;
    height: 42px;             /* ✅ hauteur unique */
}

.filter-field input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
}

.filter-field .material-symbols-outlined {
    font-size: 20px;
    color: #5b6f82;
}

/* Bouton OK */
.filter-submit {
    background: var(--primary) !important;
    color: var(--text-light);
    border-radius: 8px;
    border: none;
    padding: 0 18px;
    height: 42px;             /* ✅ même hauteur que le champ */
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.filter-submit:hover {
    background: #084a78 !important;
}

/* Select thème */
.filter-select {
    width: 100%;
    background: var(--surface);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #dcdcdc;
    font-size: 15px;
}

/* ✅ masque visuellement le (XXX) dans les <option> */
.filter-select option {
    unicode-bidi: plaintext;
}

/* Responsive */
@media (max-width: 600px) {
    .filter-group {
        flex-direction: row;
    }
}

/* ===========================================
   🔎 FORMULAIRE — Champ + bouton sur une ligne
   =========================================== */

.filter-group {
    display: flex;
    align-items: stretch;         /* ✅ même hauteur champ + bouton */
    gap: 8px;
    width: 100%;
}

/* Champ de recherche */
.filter-field {
    flex: 1;                      /* ✅ prend tout l'espace disponible */
display: flex;
    align-items: center;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    padding: 0 12px;              /* ✅ hauteur gérée via input */
    height: 42px;                 /* ✅ hauteur définie */;
}

.filter-field input {
border: none;
outline: none;
width: 100%;
font-size: 15px;
background: transparent;
}

.filter-field .material-symbols-outlined {
font-size: 20px;
color: #5b6f82;
}

/* Bouton OK */
.filter-submit {
background: var(--primary) !important;
color: var(--text-light);
border: none;
border-radius: 8px;
height: 42px;
                 /* ✅ même hauteur que le champ */
padding: 0 16px;
font-size: 15px;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
white-space: nowrap;
          /* ✅ empêche le bouton de passer à la ligne */;
}

.filter-submit:hover {
background: #084a78 !important;
}

/* Select thème */
.filter-select {
width: 100%;
background: var(--surface);
border-radius: 8px;
padding: 12px;
border: 1px solid #dcdcdc;
font-size: 15px;
}

/* Mobile : on garde l'arrangement vertical */
@media (max-width: 600px) {
    .filter-group {
        flex-direction: row;
    }
}


/* menu déroulant (augmenté légèrement en hauteur) */
.filter-select {
    width: 100%;
    padding: 12px 12px;      /* ✅ augmentation de la hauteur */
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #d6d6d6;
    background: #fff;
    margin-top: 8px;
}

/* style carte formulaire */
.filter-card {
    background: #eef4ff;     /* bleu très léger */
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 18px;
}




/* ===============================
   OBSERVATOIRE DES PRIX
   =============================== */
.obs-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Bloc ville */
.obs-card {
  background: var(--md-sys-color-surface, #fff);
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom:24px;
}
.obs-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.obs-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 8px;
  padding-bottom: 4px;
}
.obs-ville {
  font-weight: 600;
  color: var(--md-sys-color-primary, #0a5894);
  font-size: 1.1rem;
}
.obs-date {
  color: var(--md-sys-color-outline-variant, #777);
  font-size: 0.9rem;
}

.obs-meta {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}
.obs-meta strong {
  color: #000;
}

.obs-cols {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.obs-col {
  flex: 1;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
}

.obs-col h4 {
  margin: 0 0 6px 0;
  font-size: 1rem;
  color: var(--md-sys-color-primary, #0a5894);
}

/* Carte France */
.carte-france-wrapper {
     /* Ajuste ici la hauteur visible */
    overflow: hidden;   /* Masque tout le vide du viewBox */
    max-width: 100%;
    margin-bottom:0px;
}
.carte-france svg {
  max-width: 300px;
  height: auto;
}
.carte-france .region {
  cursor: pointer;
  fill: #e0e0e0;
  transition: fill 0.25s ease;
}
.carte-france .region:hover {
  fill: #0a5894;
}
.carte-france .region.active {
  fill: #1976d2;
}

/* Région courante */

/* Selecteur région (si ajouté plus tard) */


.obs-liste-titre {
    margin-top: -10px;
}

/* =========================================================
   Observatoire – Note de méthodologie (Material style)
========================================================= */

.obs-method-link {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  margin-left: 4px;
}

.obs-method-link::after {
  content: "▾";
  font-size: 0.8em;
  margin-left: 2px;
}

.obs-method-link:hover {
  text-decoration: underline;
}

/* Carte note de bas de page */
.obs-method-card {
  margin-top: 10px;
  margin-bottom: 14px;
  padding: 14px 14px 10px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.10);
  font-size: 0.88rem;
  color: #333;
}

/* En mode visible : on enlève .hidden en JS */
.obs-method-card.hidden {
  display: none;
}

/* Header de la note */
.obs-method-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.obs-method-header .material-symbols-outlined {
  font-size: 22px;
  color: var(--primary);
}

.obs-method-title strong {
  display: block;
  font-size: 0.95rem;
}

.obs-method-title span {
  display: block;
  font-size: 0.78rem;
  color: #777;
}

/* Corps de la note */
.obs-method-body p {
  margin: 4px 0;
  line-height: 1.45;
}

/* Bouton Fermer */
.obs-method-close {
  margin-top: 8px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #f5f5f5;
  color: #555;
}

.obs-method-close:hover {
  background: #ececec;
}

/* Card Moyennes mises en valeur */
.obs-card.moyennes {
    background: #e8f1fe;                 /* bleu très léger */
    border-left: 6px solid #1976d2;       /* Material Primary */
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    margin-top: -10px;
}

/* === Couleurs régionales élégantes (pastels subtils) === */
/* ============================
   Couleurs pastel par région
   ============================ */

   .region[data-region="Auvergne-Rhône-Alpes"]      { fill: #a1c4fd; } /* bleu ciel plus vif */
   .region[data-region="Bourgogne-Franche-Comté"]   { fill: #fdd7aa; } /* abricot chaleureux */
   .region[data-region="Bretagne"]                  { fill: #8ed1c6; } /* vert d’eau/marin */
   .region[data-region="Centre-Val de Loire"]       { fill: #ffe69c; } /* jaune sable doux */
   .region[data-region="Corse"]                     { fill: #f9b3c1; } /* rose corail léger */
   .region[data-region="Grand Est"]                 { fill: #d8b4f2; } /* mauve lavande vif */
   .region[data-region="Hauts-de-France"]           { fill: #b3f6d6; } /* vert menthe un peu plus saturé */
   .region[data-region="Île-de-France"]             { fill: #e2e8f0; } /* gris bleuté pâle */
   .region[data-region="Normandie"]                 { fill: #ffdda3; } /* jaune doré léger */
   .region[data-region="Nouvelle-Aquitaine"]        { fill: #ffb7ce; } /* rose doux vif */
   .region[data-region="Occitanie"]                 { fill: #ffd1b3; } /* pêche doux */
   .region[data-region="Pays de la Loire"]          { fill: #a6f6e2; } /* turquoise pastel */
   .region[data-region="Provence-Alpes-Côte d’Azur"]{ fill: #a3d8ff; } /* bleu azur doux */
   

.carte-france .region {
  filter:
      drop-shadow(0px 1px 1px rgba(0,0,0,0.10))
      brightness(1.06)
      url(#grain-mask);
}



/* Ligne icône + valeur */
.obs-row {
    display: flex;
    align-items: center;

    /* 👉 compact : icône + valeur côte-à-côte */
    justify-content: flex-start;

    /* 👉 règle l’écart entre icône et chiffre :
          mets 8 / 12 / 16 / 20 px selon ton goût */
    gap: 14px;

    padding: 3px 0;
}

.obs-row .obs-ico {
    font-size: 20px;
    color: var(--md-sys-color-primary, #0a5894);
    width: 18px;          /* 👉 garantit un alignement stable */
    text-align: center;   /* 👉 caractères +, −, = centrés */
	padding-left: 30px;
}


/* =========================================================
   🔐 PAGE CONNEXION — MATERIAL DESIGN (mobile-first)
   Tous les styles sont préfixés "connexion-"
========================================================= */

/* ---------------------------------------------------------
   📦 CARD — Conteneur Material principal
--------------------------------------------------------- */
.connexion-card {
  background: var(--surface);
  padding: 24px;

  /* Centrage + largeur mobile optimisée */
  margin: 48px auto;
  width: 92%;              /* évite tout débordement même avec header / body max-width */
  max-width: 420px;        /* largeur Material idéale pour mobile */

  border-radius: 16px;
  box-shadow: var(--shadow);
  box-sizing: border-box;
  overflow: hidden;        /* empêche les inputs d'accrocher sur les bords */
}

/* ---------------------------------------------------------
   📝 Titre
--------------------------------------------------------- */
.connexion-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
  text-align: center;
}

/* ---------------------------------------------------------
   🔤 Groupe Input (structure Material)
--------------------------------------------------------- */
.connexion-input-group {
  position: relative;
  margin-bottom: 22px;
  width: 100%;
  box-sizing: border-box;
}

/* ---------------------------------------------------------
   ✏️ Champ Material (bord arrondi + focus colorisé)
--------------------------------------------------------- */
.connexion-input {
  width: 100%;
  max-width: 100%;
  padding: 16px 14px 10px 14px;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: 12px;
  background: var(--surface);
  font-size: 1rem;

  display: block;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.connexion-input:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent);
}

/* ---------------------------------------------------------
   🏷️ Label flottant Material Design
--------------------------------------------------------- */
.connexion-label {
  position: absolute;
  left: 14px;
  top: 16px;
  padding: 0 4px;

  background: var(--surface);
  font-size: 1rem;
  color: #666;
  pointer-events: none;
  transition: 0.2s ease;
}

/* Label flotte au focus ou si champ rempli */
.connexion-input:focus + .connexion-label,
.connexion-input:not(:placeholder-shown) + .connexion-label {
  top: -9px;
  left: 10px;
  font-size: 0.75rem;
  color: var(--md-sys-color-primary);
}

/* ---------------------------------------------------------
   🔘 Bouton principal Material
--------------------------------------------------------- */
.connexion-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;

  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border: none;

  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.connexion-btn:active {
  transform: scale(0.97);
  background: color-mix(in srgb, var(--primary) 85%, black);
}

/* ---------------------------------------------------------
   ⚠️ Message d’erreur
--------------------------------------------------------- */
.connexion-error {
  background: #ffe6e6;
  border-left: 4px solid var(--secondary);
  color: #b30000;

  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.connexion-help {
    margin-top: 20px;
    text-align: center;
    color: #444;
    font-size: 0.9rem;
    line-height: 1.4;
}

.connexion-help-icon {
    vertical-align: middle;
    font-size: 20px;
    color: #666;
    margin-bottom: 6px;
}

.connexion-help-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--md-sys-color-primary, #0066cc);
    text-decoration: none;
    font-weight: 500;
    margin-top: 4px;
}

.connexion-help-link:hover {
    text-decoration: underline;
}