/* Annuaire des etablissements, refonte 2026 : accueil, categories, fiche, classements, recherche.
   Toutes les regles sont limitees a .ann pour ne rien changer au reste du site.
   css/mobile.css transforme tous les tableaux de #body en blocs sous 990 px : cette mise en page n'utilise pas de tableaux. */

.ann {
	--ann-bleu: #1a73b8;
	--ann-bleu-fonce: #0f4f86;
	--ann-bleu-pale: #eaf3fb;
	--ann-orange: #f28c1e;
	--ann-orange-fonce: #d9730a;
	--ann-texte: #1f2933;
	--ann-gris: #5b6773;
	--ann-bord: #dde3ea;
	--ann-fond: #f6f8fb;
	--ann-rayon: 10px;
	color: var(--ann-texte);
	font: 15px/1.5 "Helvetica Neue", Arial, sans-serif;
	max-width: 1100px;
	margin: 0 auto;
	padding: 4px 0 24px;
	box-sizing: border-box;
}
.ann *, .ann *::before, .ann *::after { box-sizing: border-box; }
.ann a { color: var(--ann-bleu); text-decoration: none; }
.ann a:hover { text-decoration: underline; }
.ann h1, .ann h2, .ann h3 { font-family: inherit; text-transform: none; letter-spacing: 0; }
.ann-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ----- boutons ----- */
.ann .ann-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px;
	border-radius: 8px; border: 1.5px solid transparent; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; text-decoration: none; white-space: nowrap; }
.ann .ann-btn:hover { text-decoration: none; }
.ann .ann-btn-primaire { background: var(--ann-orange); color: #fff; }
.ann .ann-btn-primaire:hover { background: var(--ann-orange-fonce); }
.ann .ann-btn-secondaire { background: #fff; color: var(--ann-bleu); border-color: var(--ann-bleu); }
.ann .ann-btn-secondaire:hover { background: var(--ann-bleu-pale); }
.ann .ann-btn:focus-visible, .ann a:focus-visible, .ann input:focus-visible, .ann summary:focus-visible { outline: 3px solid #9cc7ec; outline-offset: 2px; }

/* ----- bandeau d'accueil avec recherche ----- */
.ann-hero { background: linear-gradient(135deg, #eaf3fb 0%, #fdf3e7 100%); border: 1px solid var(--ann-bord); border-radius: 14px;
	padding: 28px 28px 22px; margin: 0 0 28px; }
.ann-hero h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; font-weight: 700; color: var(--ann-bleu-fonce); }
.ann-hero-texte { margin: 0 0 18px; font-size: 16px; color: var(--ann-gris); max-width: 46em; }
.ann-hero-texte strong { color: var(--ann-texte); }
.ann-recherche { display: flex; gap: 10px; max-width: 680px; }
.ann-recherche input[type=search] { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1.5px solid #c5d1dd; border-radius: 8px;
	font-family: inherit; font-size: 16px; background: #fff; color: var(--ann-texte); }
.ann-recherche input[type=search]:focus { border-color: var(--ann-bleu); outline: none; box-shadow: 0 0 0 3px rgba(26, 115, 184, .18); }
.ann-recherche .ann-btn { height: 48px; padding: 0 24px; }
.ann-hero-liens { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 14px; }
.ann-hero-liens a { font-weight: 600; }

/* ----- sections ----- */
.ann-section { margin: 0 0 32px; }
.ann-titre-section { margin: 0 0 14px; font-size: 21px; line-height: 1.25; font-weight: 700; color: var(--ann-texte); }
.ann-entete-section { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ann-entete-section .ann-titre-section { margin: 0; }
.ann-entete-section > a { font-size: 14px; font-weight: 600; }

/* ----- grille des categories principales ----- */
.ann-grille-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.ann-cat { background: #fff; border: 1px solid var(--ann-bord); border-top: 4px solid var(--ann-bleu); border-radius: var(--ann-rayon);
	padding: 14px 16px 14px; display: flex; flex-direction: column; }
.ann-cat:nth-child(3n+2) { border-top-color: var(--ann-orange); }
.ann-cat:nth-child(3n) { border-top-color: #2a9d8f; }
.ann .ann-cat-titre { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; }
.ann .ann-cat-titre a { color: var(--ann-texte); }
.ann-cat-nb { margin: 2px 0 10px; font-size: 13px; color: var(--ann-gris); }
.ann-cat-liste { list-style: none; margin: 0 0 10px; padding: 0; font-size: 14px; }
.ann-cat-liste li { padding: 4px 0; border-top: 1px solid #eef1f5; line-height: 1.35; }
.ann-cat-liste li:first-child { border-top: 0; }
.ann .ann-cat-plus { margin-top: auto; font-size: 14px; font-weight: 600; }
.ann .ann-cat-plus.ann-seulement-tel { display: none; }

/* ----- actualites ----- */
.ann-grille-actus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ann-actu { background: #fff; border: 1px solid var(--ann-bord); border-radius: var(--ann-rayon); overflow: hidden; }
.ann .ann-actu-lien { display: flex; flex-direction: column; height: 100%; color: var(--ann-texte); }
.ann .ann-actu-lien:hover { text-decoration: none; box-shadow: 0 4px 16px rgba(15, 79, 134, .12); }
.ann .ann-actu-lien:hover h3, .ann .ann-actu-lien:hover h2 { color: var(--ann-bleu); }
.ann-actu-image { display: block; aspect-ratio: 16 / 9; background: var(--ann-fond); overflow: hidden; }
.ann-actu-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ann-actu-image img.ann-actu-defaut { object-fit: contain; padding: 18px 30px; }
.ann .ann-actu h3, .ann .ann-actu h2 { margin: 12px 14px 6px; font-size: 16px; line-height: 1.3; font-weight: 700; }
.ann-actu p { margin: 0 14px 14px; font-size: 14px; color: var(--ann-gris);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ----- panneaux concours, forum, orientation, cours ----- */
.ann-colonnes-home { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.ann-panneau { background: #fff; border: 1px solid var(--ann-bord); border-radius: var(--ann-rayon); padding: 16px 18px 18px; min-width: 0; }
.ann-panneau .ann-titre-section { font-size: 18px; }
.ann-liste { list-style: none; margin: 0 0 12px; padding: 0; }
.ann-liste li { padding: 9px 0; border-top: 1px solid #eef1f5; line-height: 1.35; overflow-wrap: anywhere; }
.ann-liste li:first-child { border-top: 0; padding-top: 2px; }
.ann-liste li > a { font-weight: 600; font-size: 14px; }
.ann-liste-meta { display: block; font-size: 12.5px; color: var(--ann-gris); margin-top: 2px; }
.ann-liste-texte { display: block; font-size: 13px; color: var(--ann-gris); margin-top: 3px; }
.ann-liens-orientation { margin: 0; font-size: 14px; }
.ann-pub { margin: 8px 0 0; text-align: center; }
.ann-pub iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; }
.ann-pub img { max-width: 100%; height: auto; border-radius: var(--ann-rayon); }

/* ----- fil d'Ariane ----- */
.ann-fil { font-size: 13.5px; color: var(--ann-gris); margin: 0 0 10px; }
.ann-fil .arbo_annuaire, .ann-fil a { color: var(--ann-bleu); font-size: inherit; }

/* ----- page de categorie ----- */
.ann-entete { background: var(--ann-fond); border: 1px solid var(--ann-bord); border-radius: 14px; padding: 22px 24px; margin: 0 0 22px; }
.ann-entete h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.2; font-weight: 700; color: var(--ann-bleu-fonce); }
.ann-entete-texte { margin: 0 0 12px; color: var(--ann-gris); }
.ann-entete-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ann-chiffres { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ann-chiffres li { background: #fff; border: 1px solid var(--ann-bord); border-radius: 999px; padding: 4px 12px; font-size: 13.5px; color: var(--ann-gris); }
.ann-chiffres strong { color: var(--ann-texte); }

.ann-souscats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.ann .ann-souscats a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 46px; padding: 8px 14px;
	background: #fff; border: 1px solid var(--ann-bord); border-radius: 8px; color: var(--ann-texte); font-size: 14px; font-weight: 600; line-height: 1.3; }
.ann .ann-souscats a:hover { border-color: var(--ann-bleu); text-decoration: none; background: var(--ann-bleu-pale); }
.ann-souscats .ann-nb { flex: none; font-weight: 400; font-size: 12.5px; color: var(--ann-gris); background: var(--ann-fond); border-radius: 999px; padding: 2px 8px; }

.ann-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.ann-colonnes.ann-une-colonne { grid-template-columns: 1fr; max-width: 820px; }
.ann-col-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding-bottom: 8px;
	border-bottom: 2px solid var(--ann-bleu); font-size: 18px; font-weight: 700; color: var(--ann-texte); }
.ann-col-prive .ann-col-titre { border-bottom-color: var(--ann-orange); }
.ann-col-titre span { font-size: 13.5px; font-weight: 400; color: var(--ann-gris); }
.ann-col-vide { color: var(--ann-gris); font-size: 14px; background: var(--ann-fond); border-radius: 8px; padding: 14px; }

/* ----- carte d'etablissement ----- */
.ann-carte { margin: 0 0 10px; }
.ann .ann-carte-lien { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 14px; background: #fff; border: 1px solid var(--ann-bord);
	border-radius: var(--ann-rayon); color: var(--ann-texte); }
.ann .ann-carte-lien:hover { text-decoration: none; border-color: #b9cde0; box-shadow: 0 4px 14px rgba(15, 79, 134, .10); }
.ann .ann-carte-lien:hover .ann-carte-nom { color: var(--ann-bleu); }
.ann-carte-corps { min-width: 0; }
.ann .ann-carte-nom { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.ann-carte-titre { margin: 2px 0 0; font-size: 13.5px; color: var(--ann-gris); line-height: 1.35; overflow-wrap: anywhere; }
.ann-carte-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.ann-carte-texte { margin: 8px 0 0; font-size: 13.5px; color: #3c4752; line-height: 1.45;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ann-rang { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; margin-right: 4px;
	border-radius: 999px; background: var(--ann-orange); color: #fff; font-size: 13px; vertical-align: 2px; }

.ann-logo { display: block; width: 56px; height: 56px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--ann-bord); }
.ann-monogramme { display: flex; align-items: center; justify-content: center; border: 0;
	background: hsl(var(--teinte, 205), 55%, 93%); color: hsl(var(--teinte, 205), 55%, 30%); font-weight: 700; font-size: 19px; letter-spacing: .5px; }

.ann-badge, .ann-ville { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; line-height: 1; white-space: nowrap; }
.ann-badge-public { background: var(--ann-bleu-pale); color: var(--ann-bleu-fonce); font-weight: 600; }
.ann-badge-prive { background: #fdf0e1; color: #9a4f00; font-weight: 600; }
.ann-ville { background: var(--ann-fond); color: var(--ann-gris); border: 1px solid var(--ann-bord); }

/* ----- pagination ----- */
.ann-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 20px 0 8px; }
.ann .ann-pages a, .ann-pages span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 10px;
	border: 1px solid var(--ann-bord); border-radius: 8px; background: #fff; font-weight: 600; font-size: 14px; color: var(--ann-bleu); }
.ann .ann-pages a:hover { border-color: var(--ann-bleu); text-decoration: none; }
.ann-pages span[aria-current] { background: var(--ann-bleu); border-color: var(--ann-bleu); color: #fff; }

/* ----- texte long d'une categorie (contenu redige en HTML) ----- */
.ann-article { margin: 28px 0 0; padding: 20px 22px; background: #fff; border: 1px solid var(--ann-bord); border-radius: var(--ann-rayon);
	font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.ann-article img { max-width: 100%; height: auto; }
.ann-article table { max-width: 100%; }

/* ----- fiche d'un etablissement ----- */
.ann-fiche-tete { display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: center; background: var(--ann-fond);
	border: 1px solid var(--ann-bord); border-radius: 14px; padding: 22px 24px; margin: 0 0 18px; }
.ann-fiche-tete .ann-logo { width: 88px; height: 88px; border-radius: 14px; font-size: 30px; }
.ann-fiche-tete h1 { margin: 0; font-size: 27px; line-height: 1.2; font-weight: 700; color: var(--ann-bleu-fonce); overflow-wrap: anywhere; }
.ann-fiche-soustitre { margin: 4px 0 10px; color: var(--ann-gris); font-size: 15px; overflow-wrap: anywhere; }
.ann-fiche-tete .ann-carte-meta { margin: 0; }
.ann-fiche-grille { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ann-fiche-grille > div { min-width: 0; }
.ann .ann-bloc { background: #fff; border: 1px solid var(--ann-bord); border-radius: var(--ann-rayon); padding: 18px 20px; margin: 0 0 18px; }
.ann .ann-bloc h2 { margin: 0 0 12px; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--ann-texte); }
.ann-faits { display: grid; grid-template-columns: 150px 1fr; gap: 0; margin: 0; font-size: 14.5px; }
.ann-faits dt, .ann-faits dd { margin: 0; padding: 8px 0; border-top: 1px solid #eef1f5; }
.ann-faits dt { color: var(--ann-gris); padding-right: 12px; }
.ann-faits dd { overflow-wrap: anywhere; }
.ann-faits dt:first-of-type, .ann-faits dt:first-of-type + dd { border-top: 0; }
.ann-description { margin: 0; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.ann-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ann-voisins { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 18px; font-size: 14px; }
.ann .ann-voisins a { display: inline-flex; flex-direction: column; max-width: 48%; padding: 8px 12px; border: 1px solid var(--ann-bord); border-radius: 8px; background: #fff; }
.ann .ann-voisins a:hover { text-decoration: none; border-color: var(--ann-bleu); }
.ann-voisins small { color: var(--ann-gris); font-size: 12px; }
.ann-voisins .ann-suivant { margin-left: auto; text-align: right; }

.ann-filieres { display: grid; gap: 10px; }
.ann-filiere { border: 1px solid var(--ann-bord); border-left: 4px solid var(--ann-bleu); border-radius: 8px; padding: 10px 14px; }
.ann-filiere summary { cursor: pointer; list-style-position: outside; margin-left: 16px; overflow-wrap: anywhere; }
.ann-filiere[open] summary { margin-bottom: 6px; }
.ann-filiere-nom { font-size: 15.5px; font-weight: 700; color: var(--ann-texte); }
.ann-filiere-diplome { display: block; font-size: 13px; color: var(--ann-gris); }
.ann .ann-bloc h2 .ann-nb { font-size: 13px; font-weight: 400; color: var(--ann-gris); background: var(--ann-fond); border-radius: 999px; padding: 2px 9px; vertical-align: 2px; }
.ann-filiere .ann-faits { grid-template-columns: 130px 1fr; font-size: 13.5px; }
.ann-filiere .ann-faits dt, .ann-filiere .ann-faits dd { padding: 5px 0; }

.ann-note { font-size: 14px; }
.ann-note .unit-rating { margin: 0 0 6px; }
.ann-correction summary { cursor: pointer; font-weight: 600; color: var(--ann-bleu); font-size: 14px; list-style-position: inside; }
.ann-correction ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
.ann .ann-correction li a { display: inline-block; padding: 6px 10px; border: 1px solid var(--ann-bord); border-radius: 999px; font-size: 13px; background: #fff; }
.ann-video { aspect-ratio: 16 / 9; }
.ann-video iframe { width: 100% !important; height: 100% !important; border: 0; }
.ann-commentaires { min-width: 0; overflow-wrap: anywhere; }
.ann-commentaires img { max-width: 100%; }

/* ----- titres des pages classement / nouveautes / recherche ----- */
.ann-titre-page { margin: 0 0 6px; font-size: 26px; line-height: 1.2; font-weight: 700; color: var(--ann-bleu-fonce); }
.ann-intro { margin: 0 0 18px; color: var(--ann-gris); }
.ann-compris { margin: -8px 0 18px; padding: 10px 14px; font-size: 14px; color: var(--ann-gris); background: var(--ann-fond); border-left: 3px solid var(--ann-bleu); border-radius: 0 8px 8px 0; max-width: 820px; }
.ann-compris strong { color: inherit; }
.ann-col-vide + .ann-col-vide, .ann-col-vide + .ann-compris { margin-top: 10px; }
.ann-liste-cartes { max-width: 820px; }
.ann-recherche-page { margin: 0 0 20px; }

/* ===== tablette et telephone ===== */
@media (max-width: 990px) {
	#body .ann { padding-top: 6px; }
	.ann-grille-actus { grid-template-columns: 1fr 1fr; }
	.ann-fiche-grille { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.ann { font-size: 15px; }
	.ann-hero { padding: 20px 16px 16px; border-radius: 12px; margin-bottom: 22px; }
	.ann-hero h1 { font-size: 23px; }
	.ann-hero-texte { font-size: 15px; }
	.ann-recherche { flex-direction: column; }
	.ann-recherche input[type=search] { flex: none; }
	.ann-recherche .ann-btn { width: 100%; }
	.ann-grille-cats { grid-template-columns: 1fr; gap: 10px; }
	/* telephone : trois sous-categories par carte, le lien "Voir les N" donne le reste */
	.ann-cat-liste li:nth-child(n+4) { display: none; }
	.ann .ann-cat-plus.ann-seulement-tel { display: inline; }
	.ann-grille-actus { grid-template-columns: 1fr; gap: 10px; }
	/* actualites : miniature a gauche, texte a droite */
	.ann .ann-actu-lien { display: grid; grid-template-columns: 104px 1fr; grid-template-rows: auto 1fr; column-gap: 12px; padding: 10px; }
	.ann-actu-image { grid-row: 1 / span 2; aspect-ratio: auto; height: 78px; border-radius: 6px; }
	.ann-actu-image img.ann-actu-defaut { padding: 8px; }
	.ann .ann-actu h3, .ann .ann-actu h2 { margin: 0 0 4px; font-size: 15px; }
	.ann-actu p { margin: 0; font-size: 13px; -webkit-line-clamp: 2; }
	.ann-colonnes-home { grid-template-columns: 1fr; }
	.ann-colonnes { grid-template-columns: 1fr; gap: 18px; }
	.ann-entete { padding: 18px 16px; }
	.ann-entete h1, .ann-titre-page { font-size: 22px; }
	.ann-souscats { grid-template-columns: 1fr; }
	.ann .ann-carte-lien { grid-template-columns: 48px 1fr; gap: 12px; padding: 12px; }
	.ann-carte .ann-logo { width: 48px; height: 48px; font-size: 16px; }
	.ann-fiche-tete { grid-template-columns: 64px 1fr; gap: 14px; padding: 16px; }
	.ann-fiche-tete .ann-logo { width: 64px; height: 64px; font-size: 22px; }
	.ann-fiche-tete h1 { font-size: 22px; }
	.ann .ann-bloc { padding: 16px; }
	.ann-faits { grid-template-columns: 1fr; }
	.ann-faits dt { padding-bottom: 0; border-top: 1px solid #eef1f5; font-size: 13px; }
	.ann-faits dd { border-top: 0; padding-top: 2px; }
	.ann-filiere .ann-faits { grid-template-columns: 1fr; }
	.ann-actions .ann-btn { flex: 1 1 100%; }
	.ann .ann-voisins a { max-width: 49%; }
}
.ann .ann-pages .ann-ellipse { min-width: 20px; padding: 0; border: 0; background: none; color: var(--ann-gris); }

/* ----- liste de tous les articles ----- */
.ann .art-liste { display: grid; gap: 12px; max-width: 860px; }
.ann .art-carte { margin: 0; }
.ann .art-lien { display: block; padding: 16px 18px; background: #fff; border: 1px solid var(--ann-bord); border-left: 4px solid var(--ann-bleu);
	border-radius: var(--ann-rayon); color: var(--ann-texte); }
.ann .art-carte:nth-child(3n+2) .art-lien { border-left-color: var(--ann-orange); }
.ann .art-lien:hover { text-decoration: none; border-color: var(--ann-bleu); box-shadow: 0 4px 14px rgba(15, 79, 134, .08); }
.ann .art-lien:hover .art-titre { text-decoration: underline; }
.ann .art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 6px; font-size: 13px; color: var(--ann-gris); }
.ann .art-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--ann-bleu-pale); color: var(--ann-bleu-fonce); }
.ann .art-badge-or { background: #fdf0e1; color: #9a4f00; }
.ann .art-titre { margin: 0 0 6px; font-size: 17px; line-height: 1.35; font-weight: 700; color: var(--ann-bleu-fonce); overflow-wrap: anywhere; }
.ann .art-extrait { margin: 0 0 8px; font-size: 14.5px; line-height: 1.55; color: var(--ann-gris); overflow-wrap: anywhere; }
.ann .art-suite { font-size: 14px; font-weight: 600; color: var(--ann-bleu); }
@media (max-width: 760px) {
	.ann .art-lien { padding: 14px 14px; }
	.ann .art-titre { font-size: 16px; }
}
