/* ==========================================================================
   Ecole Saint Louis - Sainte Jeanne d'Arc — template.css
   Direction artistique : "cahier d'école" — ligné de cahier, accent crayon,
   typo ronde et chaleureuse. Palette distincte : encre, marigold, corail.
   ========================================================================== */

:root {
	/* Couleurs */
	--ink:        #1E3A5F;   /* bleu encre — en-tête, titres */
	--ink-dark:   #14283F;
	--paper:      #FBF3E4;   /* papier crème chaud — fond */
	--paper-alt:  #FFFFFF;
	--sky:        #EAF2FB;   /* bloc alterné */
	--marigold:   #F5A623;   /* accent 1 — chaleur, joie */
	--marigold-dark: #D98C0F;
	--coral:      #E8563E;   /* accent 2 — CTA, liens, crayon */
	--coral-dark: #C8432C;
	--leaf:       #4C9A6A;   /* accent 3 — valeurs / pastorale */
	--ink-soft:   #4C5E76;   /* texte secondaire */
	--line:       #E3D9C4;

	/* Typo */
	--font-display: 'Baloo 2', 'Segoe UI', sans-serif;
	--font-body: 'Nunito Sans', 'Segoe UI', sans-serif;

	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 10px 30px -12px rgba(30, 58, 95, 0.25);
	--wrap: 1180px;
}

/* --- Reset léger --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink-dark);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--ink);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.5em;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }

/* Icônes légères en CSS (pas de dépendance externe) */
.icon { display: inline-block; width: 1em; height: 1em; margin-right: 6px; vertical-align: -0.1em; }
.icon-phone::before { content: "\260E"; }
.icon-mail::before { content: "\2709"; }
.icon-facebook::before { content: "f"; font-weight: 800; font-style: normal; }

/* ==========================================================================
   Bandeau supérieur
   ========================================================================== */
.topbar { background: var(--ink-dark); color: #EAF0F8; font-size: 14px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 24px; }
.topbar__infos { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar__link { color: #EAF0F8; opacity: 0.9; }
.topbar__link:hover { color: var(--marigold); opacity: 1; text-decoration: none; }
.topbar__extra { display: flex; align-items: center; gap: 14px; }
.topbar__social { color: #EAF0F8; }

/* ==========================================================================
   En-tête / navigation
   ========================================================================== */
.site-header {
	background: var(--ink);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 14px rgba(0,0,0,0.12);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand__logo { max-height: 56px; width: auto; }
.brand__mark {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 22px;
	color: #fff;
	background: var(--coral);
	padding: 6px 12px;
	border-radius: var(--radius-sm);
	letter-spacing: 0.5px;
}
.brand__mark-dot { color: var(--marigold); }
.brand__mark--footer { display: inline-block; margin-bottom: 10px; }
.brand__text { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 19px; max-width: 260px; line-height: 1.15; }

/* Menu principal (rendu par mod_menu Joomla, style "none" => <ul class="nav-child">) */
.main-nav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
}
.main-nav li { position: relative; }
.main-nav a {
	display: block;
	color: #fff;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 15px;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.main-nav a:hover,
.main-nav li.active > a,
.main-nav li.current > a {
	background: var(--coral);
	color: #fff;
}
/* Sous-menus */
.main-nav ul ul {
	position: absolute;
	top: 100%; left: 0;
	background: var(--ink);
	flex-direction: column;
	min-width: 220px;
	padding: 8px;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	display: none;
	z-index: 10;
}
.main-nav li:hover > ul { display: flex; }
.main-nav ul ul a { font-size: 14px; }

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px; height: 42px;
	background: transparent;
	border: 2px solid rgba(255,255,255,0.4);
	border-radius: var(--radius-sm);
	cursor: pointer;
}
.nav-toggle__bar { width: 20px; height: 2px; background: #fff; margin: 0 auto; }

/* Bouton "S'inscrire / Demander des renseignements" — inspiré du bandeau
   d'appel permanent du site Les Louez Dieu, visible sur toutes les pages */
.nav-cta {
	padding: 10px 20px;
	font-size: 14px;
	white-space: nowrap;
}
.nav-cta--mobile { display: none; margin-top: 14px; width: 100%; justify-content: center; }
@media (max-width: 899px) {
	.nav-cta--desktop { display: none; }
	.nav-cta--mobile { display: inline-flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	background: var(--sky);
	overflow: hidden;
	padding: 64px 0 76px;
}
.hero__lines {
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		to bottom,
		transparent,
		transparent 37px,
		rgba(30, 58, 95, 0.08) 38px
	);
	pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 {
	font-size: clamp(32px, 4.4vw, 52px);
	max-width: 16ch;
	position: relative;
	display: inline-block;
}
/* Soulignement "crayon" sous les titres marqués .u-underline */
.u-underline { position: relative; white-space: normal; }
.u-underline::after {
	content: "";
	position: absolute;
	left: -2%; right: -2%; bottom: -0.12em;
	height: 0.28em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M2 10 C 40 2, 80 14, 120 6 S 180 2, 198 8' stroke='%23F5A623' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
	z-index: -1;
}
.hero p { font-size: 19px; color: var(--ink-soft); max-width: 60ch; }
.hero .btn { margin-top: 10px; }

/* Boutons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 15px;
	padding: 13px 26px;
	border-radius: 999px;
	background: var(--coral);
	color: #fff;
	border: 2px solid var(--coral);
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { background: var(--coral-dark); border-color: var(--coral-dark); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--on-dark { background: var(--marigold); border-color: var(--marigold); color: var(--ink-dark); }
.btn--on-dark:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ==========================================================================
   Infobar — chiffres clés / infos pratiques (4 modules en position "infobar")
   ========================================================================== */
.infobar { background: var(--paper-alt); border-bottom: 1px solid var(--line); }
.infobar__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0;
	padding: 0;
}
.infobar__inner > .moduletable,
.infobar__inner > div[class*="mod-"] {
	padding: 26px 22px;
	text-align: center;
	border-left: 1px dashed var(--line);
}
.infobar__inner > *:first-child { border-left: none; }
.infobar__inner h3 {
	font-size: 16px;
	margin: 8px 0 4px;
}
.infobar__inner p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ==========================================================================
   Contenu principal
   ========================================================================== */
.breadcrumb-bar { padding: 14px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.breadcrumb-bar ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.page-body { padding: 46px 0 20px; }
.page-columns { display: grid; grid-template-columns: 1fr; gap: 40px; }
.col-main--with-sidebar { grid-template-columns: 1fr; }
@media (min-width: 900px) {
	.page-columns:has(.col-sidebar) { grid-template-columns: 2fr 1fr; }
}
.col-main img { border-radius: var(--radius); }
.col-main h2 { font-size: 28px; margin-top: 1.2em; }
.col-main h2:first-child { margin-top: 0; }
.col-main h3 { font-size: 21px; color: var(--coral-dark); }

.col-sidebar .moduletable,
.col-sidebar div[class*="mod-"] {
	background: var(--paper-alt);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px;
	margin-bottom: 24px;
}
.col-sidebar h3 { font-family: var(--font-display); font-size: 17px; color: var(--ink); margin-bottom: 12px; }

/* ==========================================================================
   Valeurs / points forts
   ========================================================================== */
.values { padding: 64px 0; background: var(--sky); }
.section-title { text-align: center; font-size: 30px; margin-bottom: 42px; }
.values .moduletable,
.values > .wrap > div[class*="mod-"] {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 26px;
}

/* ==========================================================================
   Actualités
   ========================================================================== */
.news { padding: 66px 0; background: var(--paper-alt); }
.news__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 28px;
}
.news__grid article,
.news__grid .item {
	background: var(--paper);
	border-radius: var(--radius);
	padding: 22px;
	box-shadow: var(--shadow);
	transform: rotate(-0.6deg);
	transition: transform .2s ease;
}
.news__grid article:nth-child(even),
.news__grid .item:nth-child(even) { transform: rotate(0.6deg); }
.news__grid article:hover,
.news__grid .item:hover { transform: rotate(0deg) translateY(-4px); }

/* ==========================================================================
   Documents importants — liste de téléchargements
   (à utiliser dans une page/article, ex. rubrique "Les documents importants")
   ========================================================================== */
.doc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
}
.doc-list__item {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--paper-alt);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 16px 18px;
	transition: border-color .15s ease, transform .15s ease;
}
.doc-list__item:hover { border-color: var(--coral); transform: translateY(-2px); }
.doc-list__icon {
	flex: 0 0 auto;
	width: 42px; height: 42px;
	border-radius: 10px;
	background: var(--sky);
	color: var(--ink);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 12px;
}
.doc-list__label { font-family: var(--font-display); font-weight: 700; color: var(--ink); display: block; }
.doc-list__meta { font-size: 13px; color: var(--ink-soft); }
.doc-list a.doc-list__item { text-decoration: none; }

/* ==========================================================================
   Services proposés — cantine / garderie
   (cartes avec photo + horaires, à utiliser dans les articles de service)
   ========================================================================== */
.service-card {
	background: var(--paper-alt);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 32px;
	box-shadow: var(--shadow);
}
.service-card__media { aspect-ratio: 16/9; overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { padding: 26px 28px; }
.service-card__title { margin-top: 0; }
.service-hours {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--sky);
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 15px;
	padding: 10px 18px;
	border-radius: 999px;
	margin: 6px 0 18px;
}

/* ==========================================================================
   Nous contacter — coordonnées + carte
   ========================================================================== */
.contact-block {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	margin: 10px 0 30px;
}
@media (min-width: 800px) {
	.contact-block { grid-template-columns: 1fr 1fr; }
}
.contact-card {
	background: var(--paper-alt);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px;
}
.contact-card h3 { margin-top: 0; }
.contact-card__row { display: flex; gap: 12px; margin-bottom: 14px; }
.contact-card__row .icon { font-size: 20px; color: var(--coral); flex: 0 0 auto; margin-top: 2px; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15px; }
.hours-table td { padding: 8px 4px; border-bottom: 1px dashed var(--line); }
.hours-table td:first-child { font-family: var(--font-display); font-weight: 700; color: var(--ink); width: 45%; }
.map-embed {
	position: relative;
	width: 100%;
	padding-bottom: 75%;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line);
}
.map-embed iframe {
	position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* ==========================================================================
   Bande d'appel à l'action
   ========================================================================== */
.cta-band { background: var(--ink); padding: 44px 0; }
.cta-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	color: #fff;
}
.cta-band h2, .cta-band h3 { color: #fff; margin: 0; }
.cta-band p { color: #C9D6E6; margin: 4px 0 0; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { background: var(--ink-dark); color: #C9D6E6; padding-top: 56px; }
.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 34px;
	padding-bottom: 40px;
}
.footer-col__title { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-col a { color: #C9D6E6; }
.footer-col a:hover { color: var(--marigold); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer__name { color: #fff; font-family: var(--font-display); font-weight: 700; margin: 0 0 6px; }
.site-footer__address, .site-footer__hours { margin: 0 0 10px; font-size: 14.5px; }
.footer-social, .footer-plainlink { display: inline-block; margin-top: 6px; font-size: 14.5px; }
.copyright-bar { border-top: 1px solid rgba(255,255,255,0.08); padding: 16px 0; }
.copyright-bar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: #8CA0BC; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 899px) {
	.nav-toggle { display: flex; }
	.main-nav {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--ink);
		padding: 10px 24px 20px;
		box-shadow: var(--shadow);
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; }
	.main-nav ul ul { position: static; box-shadow: none; padding-left: 12px; display: flex; }
	.main-nav li:hover > ul { display: flex; }
	.topbar__inner { justify-content: center; text-align: center; }
}

@media (max-width: 599px) {
	.hero { padding: 44px 0 52px; }
	.hero p { font-size: 17px; }
	.values, .news { padding: 46px 0; }
}

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
