/* h2o-base.css - corrections et compléments par-dessus h2o-theme.css (thème d'origine, généré).
   Écrit à la main. Points de rupture du thème d'origine : 1199 / 991 / 767 / 575. */

/* ---------------------------------------------------------------- polices locales (Loi 25 : rien chez Google) */
@font-face { font-family: 'FontAwesome'; src: url('fonts/fontawesome-webfont.woff2') format('woff2'); font-weight: normal; font-style: normal; font-display: block; }
@font-face { font-family: 'Roboto'; src: url('fonts/roboto-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------------------------------------------------------------- base */
body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
/* gris #999 sur blanc : contraste 2,8:1, illisible pour beaucoup. #6f6f6f garde le ton et passe 4,5:1 */
body, p, .section-title span, .car-item .car-list ul li, .testimonial-1 .testimonial-block .testimonial-content p { color: #6f6f6f; }
.footer p, .footer .usefull-link ul li a, .footer .about-content p { color: #b5b5b5; }
.text-white, .text-white p { color: #fff; }
img { height: auto; }
/* Oxygen enveloppe le texte libre dans un bloc : on rend la main aux éléments en ligne du thème */
.oxy-text:empty { display: none; }
a.button + a.button { margin-left: 8px; }
.button { text-decoration: none; }
.h2o-gris { color: #c2c2c2; }
.h2o-liste { margin: 0 0 20px; padding-left: 20px; list-style: disc; }
.h2o-liste li { margin-bottom: 6px; line-height: 24px; }

/* ---------------------------------------------------------------- en-tête */
.h2o-entete .topbar .list-inline { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 0 10px; padding: 0; margin: 0; }
.h2o-entete .topbar .list-inline li { list-style: none; }
.h2o-entete .topbar .h2o-sep { color: #8a8a8a; }
.h2o-entete .topbar a { text-decoration: none; }
.h2o-barre { display: flex; align-items: center; justify-content: space-between; position: relative; }
.h2o-barre .menu-logo { padding: 0; margin: 0; list-style: none; }
.h2o-barre .menu-logo img { width: 120px; height: auto; display: block; }
.h2o-barre .menu-links { display: flex !important; align-items: center; margin: 0; padding: 0; list-style: none; float: none; width: auto; }  /* le thème force display:block !important au-dessus de 992 px */
.h2o-barre .menu-links > li { position: relative; list-style: none; float: none; }
.h2o-barre .menu-links > li > a { text-decoration: none; }
.h2o-barre .menu-links a.h2o-actif { color: #0d527b; }
.h2o-barre .h2o-langue-menu { display: none; }
.h2o-langue { text-decoration: none; }
/* sous-menu Contact : ouvert au survol et au clavier */
.h2o-deroulant .drop-down { position: absolute; top: 100%; right: 0; min-width: 240px; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.12); padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 50; }
.h2o-deroulant:hover .drop-down, .h2o-deroulant:focus-within .drop-down, .h2o-deroulant.h2o-sous-ouvert .drop-down { opacity: 1; visibility: visible; transform: none; }
.h2o-deroulant .drop-down ul { list-style: none; margin: 0; padding: 0; }
.h2o-deroulant .drop-down li + li { border-top: 1px solid #e9ecef; }
.h2o-deroulant .drop-down a { display: block; padding: 8px 20px; color: #323232; font-family: Roboto, sans-serif; font-size: 14px; line-height: 24px; text-transform: none; text-decoration: none; }
.h2o-deroulant .drop-down a:hover { color: #0d527b; }
.h2o-burger { display: none; }

@media (max-width: 991px) {
	.h2o-entete .topbar .list-inline { justify-content: center; }
	.h2o-barre { flex-wrap: wrap; padding: 10px 0; }
	.h2o-barre .menu-logo { width: auto; padding: 0; border: 0; }  /* le thème la met à 100 %, ce qui renvoyait le bouton menu sous le logo */
	.h2o-barre .menu-logo img { width: 84px; }
	.h2o-burger { display: block; width: 44px; height: 44px; position: relative; color: transparent; font-size: 0; text-decoration: none; }
	.h2o-burger::before, .h2o-burger::after, .h2o-burger__barres::before { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: #323232; transition: transform .2s, opacity .2s; }
	.h2o-burger::before { top: 14px; } .h2o-burger::after { bottom: 14px; }
	.h2o-burger__barres { position: absolute; inset: 0; font-size: 0; }
	.h2o-burger__barres::before { top: 21px; }
	.h2o-ouvert .h2o-burger::before { transform: translateY(7px) rotate(45deg); }
	.h2o-ouvert .h2o-burger::after { transform: translateY(-7px) rotate(-45deg); }
	.h2o-ouvert .h2o-burger__barres::before { opacity: 0; }
	.h2o-barre .menu-links { display: none !important; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 8px 0; border-top: 1px solid #e9ecef; margin-top: 10px; }
	.h2o-barre.h2o-ouvert .menu-links { display: flex !important; }
	.h2o-barre .menu-links > li > a { display: block; line-height: 44px !important; padding: 0 4px !important; }
	.h2o-deroulant .drop-down { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding: 0 0 6px 16px; min-width: 0; }
	.h2o-deroulant:hover .drop-down, .h2o-deroulant.h2o-sous-ouvert .drop-down { display: block; }
	.h2o-barre .h2o-langue-menu { display: block; padding: 6px 4px; }
}

/* ---------------------------------------------------------------- bandeau d'accueil */
.h2o-heros { clear: both; width: 100%; position: relative; aspect-ratio: 1920 / 700; overflow: hidden; background: #e9eef3; }
.h2o-heros__diapo { position: absolute; inset: 0; opacity: 0; z-index: 0; }
.h2o-heros__diapo--on { opacity: 1; z-index: 1; }
/* entrée d'une image : comme Revolution Slider (transitions « random premium »), effet tiré au hasard */
.h2o-heros__diapo--entre { opacity: 1; z-index: 2; animation: 1.3s cubic-bezier(.645,.045,.355,1) both; will-change: transform, clip-path, opacity; }
.h2o-heros__diapo--entre[data-fx="glisse-d"] { animation-name: h2o-glisse-d; }
.h2o-heros__diapo--entre[data-fx="glisse-g"] { animation-name: h2o-glisse-g; }
.h2o-heros__diapo--entre[data-fx="glisse-h"] { animation-name: h2o-glisse-h; }
.h2o-heros__diapo--entre[data-fx="volet"] { animation-name: h2o-volet; }
.h2o-heros__diapo--entre[data-fx="rideau"] { animation-name: h2o-rideau; }
.h2o-heros__diapo--entre[data-fx="zoom"] { animation-name: h2o-zoom; animation-duration: 1.6s; }
.h2o-heros__diapo--sort[data-fx="glisse-d"] { animation: h2o-sort-g 1.3s cubic-bezier(.645,.045,.355,1) both; }
.h2o-heros__diapo--sort[data-fx="glisse-g"] { animation: h2o-sort-d 1.3s cubic-bezier(.645,.045,.355,1) both; }
@keyframes h2o-glisse-d { from { transform: translateX(100%); } to { transform: none; } }
@keyframes h2o-glisse-g { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes h2o-glisse-h { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes h2o-sort-g { to { transform: translateX(-30%); } }
@keyframes h2o-sort-d { to { transform: translateX(30%); } }
@keyframes h2o-volet { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes h2o-rideau { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0); } }
@keyframes h2o-zoom { from { opacity: 0; transform: scale(1.18); } to { opacity: 1; transform: none; } }
/* première image : entre en fondu-zoom au chargement */
.h2o-heros__diapo--debut img { animation: h2o-zoom 1.6s cubic-bezier(.645,.045,.355,1) both; }
@media (prefers-reduced-motion: reduce) { .h2o-heros__diapo--entre, .h2o-heros__diapo--sort, .h2o-heros__diapo--debut img { animation: none !important; } }
.h2o-heros__diapo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h2o-heros__fl { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.25); color: #fff; font-size: 28px; line-height: 40px; text-align: center; text-decoration: none; z-index: 2; transition: background .2s; }
.h2o-heros__fl:hover, .h2o-heros__fl:focus-visible { background: rgba(0,0,0,.5); color: #fff; }
.h2o-heros__fl--prec { left: 20px; } .h2o-heros__fl--suiv { right: 20px; }
@media (max-width: 767px) { .h2o-heros__fl { display: none; } }

/* ---------------------------------------------------------------- compteurs : la valeur s'affiche (l'original restait vide) */
.counter-style-2 .counter-block b.timer { display: block; font-size: 40px; line-height: 48px; font-weight: 700; color: #fff; }

/* ---------------------------------------------------------------- carrousels (remplacent Owl Carousel) */
.h2o-carrousel { display: flex !important; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; }
.h2o-carrousel::-webkit-scrollbar { display: none; }
.h2o-carrousel > .item { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; min-width: 0; }
.h2o-carrousel--3 > .item { flex-basis: calc((100% - 40px) / 3); }
@media (max-width: 991px) { .h2o-carrousel > .item, .h2o-carrousel--3 > .item { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 575px) { .h2o-carrousel > .item, .h2o-carrousel--3 > .item { flex-basis: 100%; } }
.h2o-carrousel .car-item .car-image img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.h2o-carrousel__nav { display: flex; justify-content: center; gap: 10px; margin-top: 15px; }
.h2o-carrousel__nav button, .h2o-carrousel__points button { border: 0; cursor: pointer; font: inherit; }
.h2o-carrousel__nav button { width: 40px; height: 40px; background: #0d527b; color: #fff; font-size: 24px; line-height: 38px; }
.h2o-carrousel__nav button:hover { background: #323232; }
.h2o-carrousel__points { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.h2o-carrousel__points button { width: 24px; height: 24px; background: transparent; position: relative; padding: 0; }
.h2o-carrousel__points button::before { content: ""; position: absolute; left: 7px; top: 7px; width: 10px; height: 10px; border-radius: 5px; background: #c5c5c5; transition: width .2s, background .2s; }
.h2o-carrousel__points button.h2o-on::before { width: 22px; left: 1px; background: #0d527b; }

/* ---------------------------------------------------------------- galeries (remplacent Slick) */
.slider-slick .slider-for img { display: none; width: 100%; max-height: 560px; object-fit: contain; }
.slider-slick .slider-for img.h2o-vu { display: block; }
.slider-slick .slider-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; margin-top: 15px; }
.slider-slick .slider-nav img { width: 100%; aspect-ratio: 1; object-fit: cover; cursor: pointer; opacity: .55; transition: opacity .2s; }
.slider-slick .slider-nav img.h2o-vu, .slider-slick .slider-nav img:hover, .slider-slick .slider-nav img:focus-visible { opacity: 1; }
.slider-slick .slider-nav img:focus-visible { outline: 2px solid #0d527b; outline-offset: 2px; }
.h2o-galerie--seule .slider-nav { display: none; }
.page-section-ptb .slider-slick .slider-for img[src*="-logo"] { max-height: 260px; }
.slider-slick .slider-nav img[src*="-logo"] { object-fit: contain; background: #fff; }

/* ---------------------------------------------------------------- formulaires CF7 (même allure que l'original) */
.h2o-cf7 .form-group { margin-bottom: 15px; }
.h2o-cf7 .form-control { width: 100%; background: #f6f6f6; border: 0; border-radius: 0; height: 48px; padding: 10px 15px; font-size: 14px; color: #363636; box-shadow: none; }
.h2o-cf7 textarea.form-control { height: auto; min-height: 160px; }
.h2o-cf7 select.form-control { appearance: auto; }
.h2o-cf7 label { display: block; font-size: 14px; color: #363636; margin-bottom: 6px; }
.h2o-cf7 .wpcf7-form-control-wrap { display: block; }
.h2o-cf7 input[type=file] { font-size: 14px; }
.h2o-cf7 .wpcf7-submit { width: 100%; background: #0d527b; color: #fff; border: 0; padding: 12px 20px; font-size: 16px; cursor: pointer; border-radius: 0; }
.h2o-cf7 .wpcf7-submit:hover { background: #323232; }
.h2o-cf7 .wpcf7-not-valid-tip { font-size: 13px; color: #c0392b; margin-top: 4px; }
.h2o-cf7 .wpcf7-response-output { margin: 15px 0 0 !important; padding: 10px 14px !important; font-size: 14px; }
.h2o-cf7 .wpcf7-spinner { display: none; }
.h2o-cf7 .h2o-pot { position: absolute !important; left: -9999px !important; }
.h2o-cf7 .h2o-note { font-size: 13px; line-height: 20px; color: #6f6f6f; margin: 0 0 12px; }
/* infolettre du pied */
.h2o-cf7--infolettre .h2o-infolettre { display: flex; }
.h2o-cf7--infolettre .wpcf7-form-control-wrap { flex: 1; min-width: 0; }
.h2o-cf7 .wpcf7-form-control-wrap[data-name="h2o-site"] { position: absolute !important; left: -9999px; flex: none; }
.h2o-cf7--infolettre .form-control { background: #fff; height: 44px; }
.h2o-cf7--infolettre .wpcf7-submit { width: auto; height: 44px; padding: 0 20px; font-size: 14px; }
.h2o-cf7--infolettre .wpcf7-response-output { color: #fff; }

/* ---------------------------------------------------------------- pied */
.footer .copyright .list-inline { display: flex; justify-content: flex-end; gap: 6px; }
.footer .copyright .h2o-sep { color: #fff; }
@media (max-width: 991px) { .footer .copyright .list-inline { justify-content: center; } }
.footer a { text-decoration: none; }
.footer .copyright a[href*="nerdmarketing"] { color: #5aa3e0; }

/* ---------------------------------------------------------------- retour en haut */
.h2o-haut { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; background: #0d527b; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 90; }
.h2o-haut::before { content: ""; position: absolute; left: 15px; top: 17px; width: 12px; height: 12px; border-left: 2px solid #fff; border-top: 2px solid #fff; transform: rotate(45deg); }
.h2o-haut--vu { opacity: .85; visibility: visible; }
.h2o-haut:hover { opacity: 1; }

/* ---------------------------------------------------------------- accessibilité */
a:focus-visible, .button:focus-visible { outline: 2px solid #0d527b; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Bootstrap .sr-only (absente du thème réduit aux règles utilisées) */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* coordonnées de la page contact : en bleu comme l'original (liens tel:, mailto:, carte) */
.feature-box-3 .content p { color: #0d527b; }

/* listes du contenu : Oxygen enveloppe le texte d'un <li> dans un bloc ; on le remet en ligne avec la puce */
main li.oxy-container > .oxy-text, main li.oxy-container > .oxy-text-link { display: inline; }

/* ---------------------------------------------------------------- entête collant (l'original : barre fixée après 250 px, fondu 200 ms) */
.h2o-entete .menu.h2o-colle .menu-list-items { position: fixed; top: 0; left: 0; right: 0; z-index: 999; background: #fff; border-bottom: 1px solid #f6f6f6; box-shadow: 0 4px 10px -6px rgba(0,0,0,.35); animation: h2o-fondu .2s ease-out both; }
body.admin-bar .h2o-entete .menu.h2o-colle .menu-list-items { top: 32px; }
@keyframes h2o-fondu { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@media (min-width: 992px) {
	.h2o-entete .menu.h2o-colle .h2o-barre .menu-logo { padding: 8px 0; }
	.h2o-entete .menu.h2o-colle .h2o-barre .menu-logo img { width: 76px; }
	.h2o-entete .menu.h2o-colle .menu-links > li, .h2o-entete .menu.h2o-colle .menu-links > li > a { line-height: 72px; }
}
@media (max-width: 991px) {
	.h2o-entete .menu.h2o-colle .h2o-barre { padding: 6px 0; }
	.h2o-entete .menu.h2o-colle .h2o-barre .menu-logo img { width: 52px; }
	.h2o-entete .menu.h2o-colle .h2o-barre.h2o-ouvert .menu-links { max-height: calc(100vh - 80px); overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) { .h2o-entete .menu.h2o-colle .menu-list-items { animation: none; } }

/* ---------------------------------------------------------------- bandeau des réalisations au survol : le texte d'Oxygen (.oxy-text, gris #6f6f6f) écrasait le blanc du thème -> illisible sur le voile noir */
.car-item .car-overlay-banner { background: rgba(0, 0, 0, .78); }
.car-item .car-overlay-banner p, .car-item .car-overlay-banner .oxy-text { color: #fff; font-size: 17px; font-weight: 600; line-height: 1.45; margin: 0; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
/* pied de page : le thème fixe la hauteur du logo (130 px) ; sans largeur auto, l'attribut width l'écrasait (1,36 -> 2,02) */
.footer .about-content img { width: auto; height: 130px; max-width: 100%; object-fit: contain; }

/* ---------------------------------------------------------------- cartes des carrousels : même hauteur, lieu et titre sans grands trous */
.h2o-carrousel { align-items: stretch; }
.h2o-carrousel > .item { display: flex; }
.h2o-carrousel > .item > .car-item, .h2o-carrousel > .item > .testimonial-block { flex: 1 1 auto; display: flex; flex-direction: column; }
.h2o-carrousel .car-item .car-content { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; line-height: 1.4; }
.h2o-carrousel .car-item .car-content .separator { margin-top: 8px; }
.h2o-carrousel .car-item .car-list li { line-height: 1.4; padding-top: 10px; padding-bottom: 10px; }
.h2o-carrousel > .item > .testimonial-block > .testimonial-box { flex: 1 1 auto; }
