@import url("../fonts/fonts.css");

/* =========================================================================
   ÉLISE À DOMICILE — feuille de style
   Design system repris du mockup : bleu / corail / crème,
   Besley pour les titres, Karla pour le texte, Caveat pour les accents.
   Écrit en mobile-first : le public des proches aidants consulte au téléphone.
   ========================================================================= */

:root {
	--bleu:        #22309E;
	--bleu-fonce:  #1a2578;
	--corail:      #F2555A;
	--corail-fonce:#d83f44;
	/* Le corail de marque ne fait que 3,1:1 sur le crème : insuffisant pour du
	   petit texte, a fortiori pour un public âgé. Cette variante assombrie
	   (4,7:1) est réservée aux textes de petite taille ; le corail d'origine
	   reste utilisé partout où il sert d'aplat ou de grand caractère. */
	--corail-texte:#C43C43;
	--creme:       #FBF3EA;
	--blanc:       #ffffff;
	--texte:       #3a3a44;
	--gris:        #6b6b74;

	--ombre-carte: 0 4px 14px rgba(34, 48, 158, .06);
	--ombre-douce: 0 3px 10px rgba(34, 48, 158, .05);
	--ombre-cta:   0 10px 26px rgba(0, 0, 0, .25);

	--rayon:       12px;
	--rayon-lg:    16px;

	--titre:  "Besley", Georgia, serif;
	--corps:  "Karla", system-ui, -apple-system, sans-serif;
	--manuscrit: "Caveat", cursive;

	/* Gouttière de page : suit la largeur d'écran sans media query. */
	--marge: clamp(20px, 5vw, 64px);
	--max:   1180px;
}

/* ------------------------------------------------------------- Reset léger */
*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--blanc);
	color: var(--texte);
	font-family: var(--corps);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
	font-family: var(--titre);
	color: var(--bleu);
	line-height: 1.15;
	margin: 0 0 .5em;
	text-wrap: balance;
}

h1 { font-weight: 800; font-size: clamp(2.1rem, 6vw, 3.9rem); line-height: 1.08; }
h2 { font-weight: 800; font-size: clamp(1.7rem, 4.2vw, 2.4rem); }
h3 { font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.32rem); }
h4 { font-weight: 700; font-size: 1.1rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--bleu); }
a:hover { color: var(--corail-texte); }

:focus-visible {
	outline: 3px solid var(--corail);
	outline-offset: 3px;
	border-radius: 4px;
}

/* --------------------------------------------------------------- Structure */
.section { padding: clamp(48px, 7vw, 72px) var(--marge); }
.section > .contenu { max-width: var(--max); margin-inline: auto; }

.section--creme { background: var(--creme); }
.section--bleu  { background: var(--bleu); color: rgba(251, 243, 234, .9); }
.section--bleu h2, .section--bleu h3 { color: var(--creme); }

/* Intitulé de section : petites capitales corail au-dessus du titre. */
.sur-titre {
	color: var(--corail-texte);
	font-weight: 800;
	letter-spacing: .22em;
	font-size: .82rem;
	text-transform: uppercase;
	margin: 0 0 14px;
}

.centre { text-align: center; }
.centre .sur-titre { text-align: center; }

.grille-2 {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(32px, 5vw, 56px);
}

/* ------------------------------------------------------------------ Boutons */
.bouton {
	display: inline-block;
	background: var(--corail);
	color: var(--blanc);
	font-family: var(--corps);
	font-weight: 700;
	font-size: 1.17rem;
	text-decoration: none;
	padding: 17px 32px;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background .18s ease, transform .18s ease;
}
.bouton:hover { background: var(--corail-fonce); color: var(--blanc); transform: translateY(-1px); }
.bouton--ombre { box-shadow: var(--ombre-cta); }

.bouton--contour {
	background: transparent;
	border: 2px solid var(--creme);
	color: var(--creme);
}
.bouton--contour:hover { background: var(--creme); color: var(--bleu); }

/* Numéro de téléphone : c'est le vrai appel à l'action du site. */
.tel {
	font-family: var(--corps);
	font-weight: 700;
	font-size: clamp(1.15rem, 3vw, 1.4rem);
	color: var(--creme);
	text-decoration: none;
	border-bottom: 2px solid var(--corail);
	padding-bottom: 3px;
	white-space: nowrap;
}
.tel:hover { color: var(--blanc); border-bottom-color: var(--blanc); }

/* ------------------------------------------------------------------- Header */
.entete {
	background: var(--bleu);
	padding: 20px var(--marge);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.entete__logo img { width: clamp(112px, 18vw, 150px); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }
.nav a {
	text-decoration: none;
	font-weight: 700;
	font-size: .95rem;
	color: var(--creme);
}
/* Sur le bandeau bleu, le corail assombri devient illisible : on éclaircit. */
.nav a:hover { color: var(--blanc); }
.nav .bouton { color: var(--blanc); font-size: 1rem; padding: 13px 24px; }

/* Bouton burger : masqué au-dessus de 900px (cf. media query). */
.burger {
	display: none;
	background: none;
	border: 0;
	padding: 8px;
	cursor: pointer;
	color: var(--creme);
}
.burger svg { display: block; }

/* --------------------------------------------------------------------- Héro */
.hero { background: var(--bleu); padding: clamp(36px, 5vw, 48px) var(--marge) clamp(56px, 7vw, 80px); }
.hero__contenu {
	max-width: var(--max);
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(36px, 5vw, 48px);
	align-items: center;
}
.hero h1 { color: var(--creme); margin-bottom: 22px; text-wrap: pretty; }
.hero h1 em { color: var(--corail); font-style: italic; }
.hero__accroche {
	font-size: clamp(1rem, 2.2vw, 1.13rem);
	line-height: 1.65;
	color: rgba(251, 243, 234, .9);
	max-width: 540px;
	margin: 0 0 32px;
}
.hero__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.hero__photo { position: relative; justify-self: center; }
.hero__photo .cadre {
	width: min(390px, 80vw);
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
	border: 6px solid var(--creme);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Pastille manuscrite « Disponible ! » */
.pastille {
	position: absolute;
	bottom: -8px;
	right: -10px;
	width: clamp(96px, 26vw, 124px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--creme);
	border: 2px dashed var(--corail);
	color: var(--corail);
	display: flex;
	align-items: center;
	justify-content: center;
	transform: rotate(8deg);
	font-family: var(--manuscrit);
	font-size: clamp(1.2rem, 4vw, 1.6rem);
	font-weight: 700;
	margin: 0;
}

/* -------------------------------------------------------------- Réassurance */
.reassurance {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	padding: 28px var(--marge);
	background: var(--blanc);
	border-bottom: 1px solid rgba(34, 48, 158, .1);
}
.reassurance__item {
	display: flex;
	align-items: center;
	gap: 14px;
	justify-content: center;
	font-weight: 700;
	color: var(--bleu);
	font-size: 1.02rem;
}
.reassurance__item svg { flex: none; }

/* ----------------------------------------------------------------- Services */

/* Photo de mise en situation sous le bloc de titre : elle occupe la colonne
   de gauche, très vide sinon sur grand écran. */
.services__photo {
	margin: 30px 0 0;
	border-radius: var(--rayon-lg);
	overflow: hidden;
	box-shadow: var(--ombre-carte);
}
.services__photo img { width: 100%; height: auto; }

.services { display: flex; flex-direction: column; gap: 16px; }
.service {
	background: var(--blanc);
	border-radius: var(--rayon);
	padding: 24px 26px;
	display: flex;
	gap: 20px;
	align-items: flex-start;
	box-shadow: var(--ombre-carte);
}
.service__icone {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: rgba(242, 85, 90, .12);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}
.service h3 { margin: 0 0 6px; }
.service p { font-size: .97rem; line-height: 1.6; }

/* --------------------------------------------------- Ce que je ne fais pas */
/* Annoncer les limites rassure : la frontière avec le soin est réglementée,
   et une famille qui la voit posée comprend qu'elle a affaire à quelqu'un
   qui connaît son cadre. */
.limites {
	background: var(--blanc);
	border-radius: var(--rayon-lg);
	padding: clamp(24px, 4vw, 34px) clamp(22px, 4vw, 38px);
	box-shadow: var(--ombre-carte);
	margin-top: clamp(32px, 5vw, 44px);
}
.limites h3 { margin-bottom: 10px; }
.limites__liste {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px 28px;
}
.limites__liste li {
	position: relative;
	padding-left: 26px;
	font-size: .98rem;
}
.limites__liste li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .55em;
	width: 13px;
	height: 2px;
	background: var(--corail);
	border-radius: 2px;
}
.limites__suite { margin-top: 18px; font-size: .95rem; color: var(--gris); }

/* ---------------------------------------------------- Relance d'appel à l'action */
/* Rappels de contact posés dans le flux du contenu — pas d'élément fixe qui
   viendrait masquer la page sur mobile. */
.relance {
	margin-top: clamp(36px, 5vw, 52px);
	background: var(--creme);
	border-radius: var(--rayon-lg);
	padding: clamp(26px, 4vw, 36px);
	text-align: center;
}
.section--creme .relance { background: var(--blanc); }
.relance p { font-size: 1.06rem; margin: 0 0 20px; }
.relance strong { color: var(--bleu); }
.relance__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.relance .lien-rdv { font-weight: 700; font-size: 1rem; }

@media (min-width: 620px) {
	.relance__actions { flex-direction: row; justify-content: center; gap: 22px; }
	.limites__liste { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------- Les 3 étapes */
.etapes {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(28px, 4vw, 40px);
	max-width: 1000px;
	margin-inline: auto;
	list-style: none;
	padding: 0;
	counter-reset: etape;
}
.etape { text-align: center; }
.etape__num {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--bleu);
	color: var(--creme);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--titre);
	font-weight: 800;
	font-size: 1.5rem;
	margin: 0 auto 16px;
}
.etape:last-child .etape__num { background: var(--corail); color: var(--blanc); }
.etape p { font-size: .97rem; line-height: 1.6; }

/* --------------------------------------------------------------- Qui suis-je */
.apropos { align-items: center; max-width: 1060px; margin-inline: auto; }
.apropos__photo { position: relative; justify-self: center; }
.apropos__photo .cadre {
	width: min(340px, 78vw);
	aspect-ratio: 340 / 400;
	border-radius: 170px 170px 12px 12px;
	overflow: hidden;
}
.apropos__photo img { width: 100%; height: 100%; object-fit: cover; }
.apropos__salut {
	position: absolute;
	top: -14px;
	left: -18px;
	font-family: var(--manuscrit);
	color: var(--corail);
	font-size: clamp(1.4rem, 4vw, 1.7rem);
	font-weight: 700;
	transform: rotate(-6deg);
	margin: 0;
}

.etiquettes { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; margin: 24px 0 0; padding: 0; }
.etiquette {
	background: var(--blanc);
	border-radius: 999px;
	padding: 9px 18px;
	font-weight: 700;
	color: var(--bleu);
	font-size: .9rem;
	box-shadow: var(--ombre-douce);
}
.section--blanc .etiquette { background: var(--creme); box-shadow: none; }

/* --------------------------------------------------------------------- CESU */
.cartes-cesu {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.carte-cesu {
	background: var(--creme);
	border-radius: 14px;
	padding: 26px 24px;
}
.carte-cesu__icone {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--blanc);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}
.carte-cesu h3 { font-size: 1.16rem; margin: 0 0 8px; }
.carte-cesu p { font-size: .94rem; line-height: 1.6; }

.note-source {
	text-align: center;
	margin: 32px 0 0;
	font-size: .92rem;
	color: var(--gris);
}

/* ------------------------------------------------------------------- Tarifs */
.tarif-carte {
	background: var(--blanc);
	border-radius: 14px;
	padding: 26px 30px;
	display: inline-block;
	box-shadow: var(--ombre-carte);
}
.tarif-carte__montant {
	font-family: var(--titre);
	font-weight: 800;
	color: var(--bleu);
	font-size: clamp(2.4rem, 7vw, 3.25rem);
	line-height: 1;
}
.tarif-carte__montant span { font-size: 1.25rem; font-weight: 700; }
.tarif-carte__mention { font-size: .9rem; color: var(--gris); margin-top: 10px; }

/* Décomposition du coût réel : la transparence est l'argument de vente. */
.detail-cout {
	background: var(--blanc);
	border-radius: 14px;
	padding: clamp(24px, 4vw, 34px) clamp(22px, 4vw, 36px);
	box-shadow: var(--ombre-carte);
}
.detail-cout__lignes { list-style: none; margin: 0; padding: 0; }
.detail-cout__lignes li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 0;
	font-size: 1rem;
}
.detail-cout__lignes li + li { border-top: 1px solid rgba(34, 48, 158, .1); }
.detail-cout__lignes b { color: var(--bleu); font-weight: 700; }
.detail-cout__credit, .detail-cout__credit b { color: var(--corail-texte); font-weight: 700; }

.detail-cout__total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 15px 20px;
	margin-top: 12px;
	background: var(--bleu);
	border-radius: 10px;
	color: var(--creme);
	font-weight: 700;
}
.detail-cout__total b { font-family: var(--titre); font-weight: 800; font-size: 1.35rem; }
.detail-cout__note { font-size: .85rem; line-height: 1.6; color: var(--gris); margin: 18px 0 0; }
.detail-cout__note a { font-weight: 700; }

/* -------------------------------------------------------------------- Zone */
.communes { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.commune {
	background: var(--creme);
	border-radius: 999px;
	padding: 9px 18px;
	font-weight: 700;
	color: var(--bleu);
	font-size: .92rem;
}
.carte-zone {
	border-radius: var(--rayon-lg);
	overflow: hidden;
	box-shadow: 0 12px 32px rgba(34, 48, 158, .12);
	border: 1px solid rgba(34, 48, 158, .1);
	height: clamp(280px, 50vw, 440px);
	background: var(--creme);
}
.carte-zone .leaflet-tile-pane { filter: grayscale(.55) sepia(.12) saturate(1.1) brightness(1.03); }
.carte-zone .brand-pin {
	background: var(--bleu);
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 4px 10px rgba(34, 48, 158, .4);
}

/* --------------------------------------------------------------------- FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq__liste { display: flex; flex-direction: column; gap: 14px; }
.faq details {
	background: var(--blanc);
	border-radius: var(--rayon);
	padding: 18px 24px;
	box-shadow: var(--ombre-douce);
}
.faq summary {
	font-family: var(--titre);
	font-weight: 700;
	color: var(--bleu);
	font-size: 1.1rem;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+";
	color: var(--corail);
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1;
	flex: none;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { font-size: .98rem; line-height: 1.65; margin: 14px 0 0; }

/* ----------------------------------------------------------------- Contact */
.contact { text-align: center; }
.contact h2 { font-size: clamp(1.9rem, 5vw, 2.5rem); }
.contact__accroche { font-size: 1.06rem; color: rgba(251, 243, 234, .85); margin: 0 0 30px; }
/* Les deux boutons s'empilent sur mobile : en colonne, le « ou » reste
   centré entre les deux au lieu de se coller au premier bouton. */
.contact__actions {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 14px;
}
.contact__ou { color: rgba(251, 243, 234, .7); }

@media (min-width: 620px) {
	.contact__actions { flex-direction: row; flex-wrap: wrap; gap: 18px; }
}

/* Précision sous les boutons de contact. */
.contact__precision {
	font-size: .95rem;
	color: rgba(251, 243, 234, .75);
	margin: 22px 0 0;
}

/* ------------------------------------------------------------------ Footer */
.pied {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 18px;
	padding: 24px var(--marge);
	background: var(--creme);
}
.pied img { width: 104px; }
.pied__infos { font-size: .85rem; color: var(--gris); }
.pied__liens { display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; }

/* ------------------------------------------------------------- Page simple */
.page-texte { max-width: 760px; margin-inline: auto; }
.page-texte h1 { color: var(--bleu); font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 28px; }
.page-texte h2 { font-size: 1.4rem; margin-top: 36px; }
.page-texte a { font-weight: 700; }

/* ------------------------------------------------------------- Utilitaires */
.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;
}

/* Lien d'évitement : visible uniquement au clavier. */
.evitement {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--corail);
	color: var(--blanc);
	font-weight: 700;
	padding: 12px 20px;
	z-index: 100;
}
.evitement:focus { left: 0; color: var(--blanc); }

/* =========================================================================
   À partir de 700px : on passe sur des grilles à plusieurs colonnes.
   ========================================================================= */
@media (min-width: 700px) {
	.reassurance  { grid-template-columns: repeat(3, 1fr); }
	.etapes       { grid-template-columns: repeat(3, 1fr); }
	.cartes-cesu  { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
	.grille-2         { grid-template-columns: .9fr 1.1fr; }
	.grille-2--inverse{ grid-template-columns: .8fr 1.2fr; }
	.hero__contenu    { grid-template-columns: 1.1fr .9fr; }
	.cartes-cesu      { grid-template-columns: repeat(4, 1fr); }
	.service          { padding: 26px 30px; }
}

/* =========================================================================
   Navigation mobile : sous 900px, le menu se replie derrière un bouton.
   ========================================================================= */
@media (max-width: 899px) {
	.burger { display: block; }

	.nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--bleu-fonce);
		padding: 8px var(--marge) 20px;
		z-index: 50;
	}
	.nav[data-ouvert="true"] { display: flex; }
	.nav a {
		padding: 14px 0;
		border-bottom: 1px solid rgba(251, 243, 234, .14);
		font-size: 1.05rem;
	}
	.nav .bouton { text-align: center; margin-top: 16px; border-bottom: 0; }

	.entete { position: relative; }
}

/* ========================================================================= */
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}

@media print {
	.entete, .nav, .carte-zone { display: none; }
	body { color: #000; }
}
