/* Composants partagés entre plusieurs pages (en-tête de page, blocs de services, contact, FAQ…). */

/* ---------- en-tête de page : photo, grand titre, bouton ---------- */
.page-hero {
	display: flex;
	min-height: 60vh;
	margin-top: -130px;
	border-radius: 0 0 50px 50px;
	background: var(--hero) center / cover no-repeat;
}
.page-hero--tall { min-height: 80vh; }
.page-hero__inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: var(--gap);
	width: 100%;
	max-width: min(100%, var(--wrap));
	margin-inline: auto;
	text-align: center;
}
.page-hero h1 {
	color: var(--white);
	font-size: 150px;
	line-height: 1;
	text-transform: uppercase;
}
@media (max-width: 767px) {
	.page-hero, .page-hero--tall { min-height: 50vh; }
	.page-hero__inner { padding-top: 50px; }
	.page-hero--flush .page-hero__inner { padding-top: 0; }
	.page-hero h1 { font-size: 50px; }
}

/* ---------- affichage selon l'écran (le site d'origine doublait certains blocs) ---------- */
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .mobile-only { display: none !important; } }

/* ---------- bouton d'appel à l'action (en-tête de page et sections), noir au survol ----------
   Graisse 500 : sur le site d'origine le texte était dans un span (500), pas dans le lien (700).
   .btn--hero : ancien nom, gardé comme alias. */
.btn--cta, .btn--hero { padding: 15px 30px; border-radius: 25px; font-size: 18px; line-height: 1; }
.btn--cta:hover, .btn--cta:focus, .btn--hero:hover, .btn--hero:focus { background: var(--black); }

/* ---------- titres et textes de section ---------- */
.sec-title {
	font-size: 60px;
	line-height: 1;
	text-transform: uppercase;
}
.sec-title--lg { font-size: 75px; }
.sec-text { width: 100%; font-size: 18px; line-height: 1.5; }
.sec-text--lg { font-size: 20px; }
@media (max-width: 767px) {
	.sec-title { font-size: 32px; }
	.sec-title--lg { font-size: 40px; }
}

/* ---------- panneaux arrondis : photo (texte blanc) ou gris ---------- */
.panel {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
	min-width: 0;
	border-radius: 50px;
}
.panel--photo {
	justify-content: center;
	align-items: center;
	color: var(--white);
	text-align: center;
	background: center / cover no-repeat;
}
.panel--photo > .btn { align-self: center; }
.panel--grey { justify-content: center; padding: 10px; background: var(--grey); color: var(--black); }
@media (min-width: 1201px) { .panel--fixed { background-attachment: fixed; } }

/* deux panneaux côte à côte (empilés sur mobile) ; --rev : le premier passe à droite */
.duo { display: flex; gap: var(--gap); margin-top: 75px; padding-bottom: 75px; }
.duo > * { width: 50%; }
.duo .panel--photo { padding: 0 50px; }
@media (min-width: 768px) { .duo--rev > :first-child { order: 1; } }
@media (max-width: 767px) {
	.duo { flex-wrap: wrap; }
	.duo > * { width: 100%; }
	.duo .panel--photo { padding: 35px; }
}

/* bandeau photo centré sur 90 % de la largeur */
.band { width: 90%; margin-inline: auto; padding: 50px; background-color: var(--white); }
.band > .sec-text { width: 75%; }
@media (max-width: 767px) { .band { width: 100%; padding: 35px; } }

/* ---------- section photo + texte : la photo passe en fond de section sur mobile ---------- */
.split { display: flex; gap: var(--gap); padding-block: 75px; }
/* marges intérieures de la photo (vide) reprises du site d'origine : elles comptent dans le partage de la largeur */
.split__photo { width: 40%; padding-inline: 25px; border-radius: 50px; background: center / cover no-repeat; }
.split__body {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
	width: 60%;
	min-width: 0;
	padding: 25px;
	color: var(--black);
}
.split__body > .btn { align-self: flex-start; }
@media (max-width: 767px) {
	.split { flex-wrap: wrap; padding-block: 0 50px; border-radius: 50px; background: center / cover no-repeat; }
	.split__body { width: 100%; align-items: center; padding: 35px; text-align: center; }
	.split__body > .btn { align-self: center; }
}

/* ---------- « Pourquoi choisir… » : texte à gauche, boîtes à droite, sur photo ---------- */
.why {
	display: flex;
	align-items: center;
	gap: var(--gap);
	width: 90%;
	margin-inline: auto;
	padding: 75px 50px;
	border-radius: 50px;
	color: var(--white);
	background: center / cover no-repeat;
}
.why__main, .why__list { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; padding: 10px; }
.why__main { width: 60%; }
.why__list { width: 40%; }
.why__main > .sec-text { width: 75%; }
.why__main > .btn { align-self: flex-start; }
@media (min-width: 1201px) { .why { background-attachment: fixed; } }
@media (max-width: 767px) {
	.why { flex-wrap: wrap; width: 100%; padding: 35px; text-align: center; }
	.why__main, .why__main > .sec-text { width: 100%; }
	.why__main > .btn { align-self: center; }
}

/* ---------- boîte image + titre + texte ----------
   Image au-dessus par défaut, à gauche avec --row (à partir de 768 px).
   Réglages : --ibox-img (largeur de l'image), --ibox-img-m (idem sur mobile),
   --ibox-gap (marge image/texte), --ibox-gap-m (marge sous l'image sur mobile),
   --ibox-title / --ibox-text (tailles du titre et du texte). */
.ibox { text-align: center; }
.ibox--light { color: var(--white); }
.ibox__img {
	display: inline-block;
	width: var(--ibox-img, 40%);
	margin: 0 0 var(--ibox-gap, 0px);
}
.ibox__img img { display: block; }
.ibox__title { margin: 8px 0 5px; font-size: var(--ibox-title, 17px); line-height: 1.2; }
.ibox__text { margin: 0; font-size: var(--ibox-text, 16px); }
@media (min-width: 768px) {
	.ibox--row { display: flex; align-items: center; text-align: start; }
	.ibox--row .ibox__img { margin: 0 var(--ibox-gap, 0px) 0 0; }
	.ibox--row .ibox__body { width: 100%; }
}
@media (max-width: 767px) {
	.ibox__img { width: var(--ibox-img-m, var(--ibox-img, 40%)); margin: 0 auto var(--ibox-gap-m, var(--ibox-gap, 15px)); }
}

/* grille de 3 boîtes (ordinateur et tablette) */
.igrid { width: 100%; margin-top: -20px; padding: 10px; }
.igrid__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

/* carrousel des mêmes boîtes (mobile) ; --light : points blancs, --top : boîtes en haut des diapositives,
   --dots-hover : couleur des points au survol */
.islider {
	--dots: var(--black);
	--swiper-pagination-bullet-size: 6px;
	--swiper-pagination-bullet-horizontal-gap: 6px;
	--swiper-pagination-bullet-inactive-color: var(--dots);
	--swiper-pagination-color: var(--dots);
	width: 100%;
}
.islider--light { --dots: var(--white); }
.islider .swiper { display: flex; min-width: 0; padding-bottom: 16px; }
.islider .swiper-slide {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: auto;
	padding: 10px;
}
.islider .ibox { width: 100%; }
.islider--top .swiper-slide, .islider .islider__slide--top { justify-content: flex-start; }
.islider .slider-dots {
	position: absolute;
	top: 100%;
	bottom: auto;
	left: 50%;
	z-index: 3;
	width: max-content;
	font-size: 6px;
	line-height: 6px;
	transform: translate(-50%, -100%);
}
.islider .swiper-pagination-bullet { vertical-align: top; }
.islider .swiper-pagination-bullet:hover { background: var(--dots-hover, var(--dots)); opacity: 1; }

/* réglages des boîtes selon la section (après .islider .ibox, qu'ils complètent) */
.band .ibox { --ibox-gap: -10px; --ibox-title: 20px; }
.duo .ibox { width: 90%; --ibox-img: 30%; --ibox-gap: 0px; }

/* ---------- section Contact : coordonnées + formulaire ---------- */
.contact { display: flex; align-items: center; gap: var(--gap); padding-block: 75px; }
.contact > * { width: 50%; min-width: 0; }
.contact__info {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
	padding: 50px;
	border-radius: 50px;
	background: var(--grey);
	color: var(--black);
}
.cinfo { display: flex; align-items: center; gap: 15px; }
.cinfo__icon {
	flex: 0 0 auto;
	padding: 5px;
	border-radius: 50%;
	background: var(--black);
	color: var(--white);
	line-height: 0;
}
.cinfo__icon svg { display: block; width: 18px; height: 18px; fill: currentColor; }
.cinfo > div { flex-grow: 1; }
.cinfo__title { margin-top: 8px; font-size: 18px; line-height: 1.2; }
.cinfo__title a { color: inherit; }
.cinfo__text { margin: 0; font-size: 18px; }
.contact__form { padding: 25px 25px 0; }
.cform { display: flex; flex-wrap: wrap; margin: 0 -12.5px -25px; }
.cform__field {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
	margin-bottom: 25px;
	padding: 0 12.5px;
}
.cform__field--50 { width: 50%; }
.cform__field--33 { width: 33.333%; }
.cform__field--66 { width: 66.666%; }
.cform input, .cform textarea {
	flex-grow: 1;
	width: 100%;
	min-height: 40px;
	border: 0;
	border-radius: 25px;
	outline: 0;
	background: var(--grey);
	color: var(--black);
	font-size: 18px;
	line-height: 1.4;
}
.cform input { padding: 8px 16px; }
.cform textarea { height: 280px; padding: 5px 14px; resize: vertical; }
.cform ::placeholder { color: inherit; opacity: .6; }
.cform input:focus, .cform textarea:focus { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.cform button {
	flex-basis: 100%;
	min-height: 40px;
	padding: 0 24px;
	border: 0;
	border-radius: 25px;
	background: var(--blue);
	color: var(--white);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: all .3s;
}
.cform button:hover { background: var(--black); }
.cform .form-status { width: 100%; margin: -10px 0 25px; padding: 0 12.5px; font-size: 16px; }
.cform .form-status:empty { display: none; }
.form-status.is-ok { color: #5cb85c; }
.form-status.is-error { color: #d9534f; }
@media (max-width: 767px) {
	.contact { flex-wrap: wrap; }
	.contact > *, .cform__field { width: 100%; }
	.contact__info .sec-text { font-size: 16px; }
}

/* ---------- FAQ : questions dépliables + photo ---------- */
.faq { margin-bottom: 75px; padding: 0 10px; }
.faq__inner { display: flex; padding-block: 10px; }
.faq__main {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
	width: 65%;
	min-width: 0;
	padding: 50px;
	border-radius: 50px 0 0 50px;
	background: var(--grey);
	color: var(--black);
}
.faq__photo { width: 35%; border-radius: 0 50px 50px 0; background: center / cover no-repeat; }
.accordion details { display: flex; flex-direction: column; }
.accordion details:not(:last-child) { margin-bottom: 20px; }
.accordion summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border: 1px solid var(--black);
	border-radius: 25px;
	cursor: pointer;
	list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover, .accordion details[open] > summary { border-color: var(--blue); background: var(--blue); color: var(--white); }
.accordion__q { font-size: 18px; font-weight: 700; }
.accordion__icon { flex-shrink: 0; width: 9.375px; height: 15px; fill: currentColor; }
.accordion details:not([open]) .accordion__icon:first-of-type,
.accordion details[open] .accordion__icon:last-of-type { display: none; }
.accordion__a { display: flex; flex-direction: column; padding: 10px; font-size: 18px; }
@media (max-width: 767px) {
	.faq__inner { flex-wrap: wrap; }
	.faq__main, .faq__photo { width: 100%; }
	.faq__main { border-radius: 0 0 50px 50px; }
	.faq__photo { order: -1; min-height: 250px; border-radius: 50px 50px 0 0; }
	.faq .sec-title, .faq .sec-text { text-align: center; }
	.accordion__q { font-size: 16px; }
}
