/*
Theme Name: MEKI service
Description: Site vitrine de MEKI service pour la climatisation, le froid et l’électricité à Toulon.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: meki-service
*/

@font-face {
  font-family: Manrope;
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #122b45;
  --body: #40566b;
  --navy: #0a2238;
  --blue: #075e99;
  --blue-hover: #064d7d;
  --sky: #83ddfa;
  --light: #e8f5fc;
  --soft: #f4f8fc;
  --line: #dae5ef;
  --white: #fff;
  --focus: #c74813;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--body); background: var(--white); font: 500 16px/1.65 Manrope, system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
svg { display: inline-block; width: 1.3em; height: 1.3em; flex: none; vertical-align: middle; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, p, ul, figure { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; font-weight: 800; letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: clamp(2.45rem, 5.4vw, 4.65rem); }
h2 { font-size: clamp(2rem, 4.1vw, 3.45rem); }
h3 { font-size: 1.34rem; letter-spacing: -.025em; }
address { font-style: normal; }
.container { width: min(var(--wrap), calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: clamp(70px, 8.1vw, 115px); }
.section-soft { background: var(--soft); }
section[id], #devis { scroll-margin-top: 112px; }
.screen-reader-text, .form-trap, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 60; top: 10px; left: 10px; background: white; padding: 10px 16px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--blue); font-size: .77rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow svg { width: 16px; height: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 49px; padding: 10px 19px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; font: inherit; font-size: .93rem; font-weight: 800; cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.button-primary { color: white; background: var(--blue); }
.button-primary:hover { color: white; background: var(--blue-hover); }
.button-bright { color: #082a40; background: var(--sky); }
.button-bright:hover { color: #082a40; background: #b5edff; }
.button-outline { color: white; border-color: #d0e6f38c; background: #071c2e30; }
.button-outline:hover { color: var(--navy); background: white; }
.button-secondary { color: var(--blue-hover); border-color: var(--line); background: var(--soft); }
.button-secondary:hover { background: var(--light); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link svg { transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(3px); }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--white); box-shadow: 0 1px #0a223817; }
.admin-bar .site-header { top: 32px; }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--blue); }
.brand-logo { width: 48px; height: 48px; object-fit: contain; }
.brand-name { font-size: 1.14rem; font-weight: 800; letter-spacing: -.025em; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(12px, 2.3vw, 35px); }
.nav-links a { color: var(--ink); font-weight: 700; text-decoration: none; font-size: .9rem; }
.nav-links a:hover { color: var(--blue); text-decoration: underline; }
.nav-quote { white-space: nowrap; }
.menu-toggle { display: none; }

.hero { position: relative; display: grid; min-height: clamp(550px, 45vw, 690px); align-items: center; isolation: isolate; background: var(--navy); overflow: hidden; }
.hero-visual { position: absolute; inset: 0 0 0 33%; z-index: -1; }
.hero-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 52%; filter: saturate(.72); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0a2238 0%, #0a2238d9 17%, #0a223842 54%, #0a223810 100%), linear-gradient(0deg, #0a2238a8 0%, transparent 56%); }
.hero-inner { padding-block: 76px; }
.hero-copy { max-width: 680px; animation: arrive .55s ease-out both; }
.hero .eyebrow { color: var(--sky); margin-bottom: 19px; }
.hero h1 { color: white; max-width: 620px; text-wrap: initial; }
.hero h1 span { color: var(--sky); display: block; }
.hero-intro { color: #e3eff7; max-width: 510px; font-size: clamp(1.02rem, 1.42vw, 1.23rem); margin: 22px 0 28px; }
.airflow { position: absolute; width: min(54%, 430px); right: 5%; top: 58%; z-index: 1; opacity: .75; pointer-events: none; }
.airflow svg { width: 100%; height: auto; overflow: visible; }
.airflow path { stroke: #90e6ff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 60 22 3 16; animation: airflow 14s linear infinite; }
@keyframes airflow { to { stroke-dashoffset: -202; } }
@keyframes arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.trust { border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; list-style: none; }
.trust-grid li { display: flex; gap: 13px; align-items: center; padding: 25px clamp(10px, 2vw, 30px); }
.trust-grid li:first-child { padding-inline-start: 0; }
.trust-grid li + li { border-left: 1px solid var(--line); }
.trust-grid strong, .trust-grid small { display: block; }
.trust-grid strong { color: var(--ink); font-size: .98rem; line-height: 1.3; }
.trust-grid small { margin-top: 3px; font-size: .79rem; }
.icon-tile { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--light); color: var(--blue); flex: none; }

.section-heading { max-width: 640px; margin-bottom: 35px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2 { max-width: 720px; }
.section-heading > p:not(.eyebrow) { margin-top: 13px; font-size: 1.02rem; }
.service-grid, .media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card, .service-cta { display: flex; flex-direction: column; align-items: flex-start; min-height: 232px; padding: clamp(23px, 2.45vw, 32px); border: 1px solid var(--line); border-radius: 15px; }
.service-card { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.service-card:hover, .service-card:focus-within { transform: translateY(-3px); border-color: #94c7e5; box-shadow: 0 12px 27px #0c386411; }
.service-card h3 { margin-top: 17px; }
.service-card p, .service-cta p { margin: 9px 0 17px; }
.service-card .text-link, .service-cta .button { margin-top: auto; }
.service-cta { justify-content: center; background: var(--navy); border-color: var(--navy); color: #d9ecf9; }
.service-cta h3 { color: white; font-size: 1.72rem; }
.service-cta .button { margin-top: 3px; }

.media-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 15px; }
.video-link { position: relative; display: block; overflow: hidden; }
.video-link:focus-visible { outline-offset: -4px; }
.video-link img, .media-photo { width: 100%; height: clamp(215px, 24vw, 348px); object-fit: cover; object-position: center 42%; }
.media-photo { object-position: center 52%; }
.video-link img { transition: transform .3s ease; }
.video-link:hover img { transform: scale(1.035); }
.video-link::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #0a223828; pointer-events: none; }
.play-icon { position: absolute; z-index: 2; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; display: grid; place-items: center; color: var(--navy); background: white; border-radius: 50%; box-shadow: 0 5px 20px #082a4040; }
.play-icon svg { width: 27px; height: 27px; }
.media-card figcaption { padding: 16px 19px 20px; }
.media-card strong, .media-card figcaption span { display: block; }
.media-card strong { color: var(--ink); }
.media-card figcaption span { font-size: .88rem; margin-top: 2px; }
.video-dialog { width: min(430px, 94vw); padding: 0; color: white; background: #0a1724; border: 0; border-radius: 12px; }
.video-dialog::backdrop { background: #061828ce; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 15px; }
.dialog-close { flex: none; border: 0; cursor: pointer; color: white; background: transparent; font: 1.7rem/1 system-ui, sans-serif; min-width: 38px; min-height: 38px; }
.video-dialog video { display: block; width: 100%; height: auto; max-height: 74dvh; }

.zone-grid, .contact-grid, .faq-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(26px, 6vw, 92px); align-items: start; }
.zone-grid { align-items: center; }
.zone-grid .section-heading, .faq-grid .section-heading, .contact-grid .section-heading { margin-bottom: 0; }
.zone-grid .text-link { margin-top: 16px; }
.city-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; list-style: none; padding: 0; }
.city-list li { display: flex; align-items: center; gap: 8px; border-radius: 8px; background: var(--soft); color: var(--ink); padding: 10px 13px; font-weight: 700; }
.city-list svg { color: var(--blue); }
.city-list .base-city { background: var(--blue); color: white; }
.city-list .base-city svg { color: white; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { color: var(--ink); font-weight: 800; cursor: pointer; }
.faq details p { margin: 10px 0 2px 19px; }

.section-contact { background: var(--navy); color: #dcebf6; }
.section-contact .eyebrow { color: var(--sky); }
.section-contact h2 { color: white; }
.contact-links { margin-top: 30px; display: grid; gap: 11px; }
.contact-links > * { width: fit-content; display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.contact-links a:hover { color: var(--sky); }
.contact-links strong { overflow-wrap: anywhere; }
.contact-links small { display: block; color: #bfd3e3; margin-bottom: 1px; }
.contact-links .icon-tile { background: #203e55; color: #bdeaff; }
.quote-form { position: relative; display: grid; gap: 13px; padding: clamp(22px, 3vw, 38px); color: var(--body); background: white; border-radius: 16px; }
.quote-form h3 { font-size: 1.6rem; margin-bottom: 3px; }
.quote-form label { color: var(--ink); font-size: .89rem; font-weight: 800; min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-form input, .quote-form select, .quote-form textarea { display: block; width: 100%; min-height: 46px; padding: 9px 11px; border: 1px solid #9db2c2; border-radius: 7px; color: var(--ink); background: white; font: 500 1rem/1.4 Manrope, system-ui, sans-serif; margin-top: 5px; }
.quote-form input::placeholder, .quote-form textarea::placeholder { color: #596c7e; }
.quote-form textarea { resize: vertical; }
.quote-form .button { justify-self: start; }
.form-note { font-size: .77rem; }
.optional { color: var(--body); font-size: .74rem; font-weight: 600; margin-left: 5px; }
.notice { padding: 9px 11px; border-radius: 6px; background: #fff0dd; color: #63301c; }
.notice-success { background: #e3f5e9; color: #145333; }

.site-footer { color: #b9cfe0; background: #071a2b; padding: 46px 0 24px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 24px; }
.site-footer a { color: #edf7ff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid > div > a:not(.brand) { display: block; width: fit-content; }
.footer-grid p { margin-top: 8px; max-width: 265px; }
.footer-grid h2 { color: white; font-size: 1.03rem; margin-bottom: 10px; letter-spacing: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 22px; border-top: 1px solid #344c60; margin-top: 28px; padding-top: 17px; font-size: .78rem; }
.mobile-call { display: none; }

.service-detail { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(25px, 6vw, 90px); align-items: start; }
.breadcrumb { display: inline-block; margin-bottom: 18px; font-size: .89rem; }
.service-detail .actions { margin-top: 22px; }
.service-detail h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); }
.detail-photo { width: 100%; max-height: 570px; object-fit: cover; border-radius: 16px; }
.wordpress-content { overflow-wrap: anywhere; }
.wordpress-content p, .wordpress-content ul, .wordpress-content ol { margin: 14px 0; }
.wordpress-content h2:not(:first-child) { margin-top: 27px; }
.wordpress-content h2 { font-size: 1.8rem; }
.wordpress-content article + article { margin-top: 28px; }
.nfc-card { display: grid; justify-items: center; text-align: center; gap: 13px; width: min(100%, 520px); margin-inline: auto; padding: clamp(23px, 5vw, 45px); background: white; border: 1px solid var(--line); border-radius: 18px; }
.nfc-card h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.nfc-actions { display: grid; gap: 8px; width: 100%; margin-top: 9px; }
.nfc-actions .text-link { justify-self: center; margin-top: 6px; }

@media (max-width: 980px) {
  .container { width: calc(100% - 64px); }
  .nav { gap: 13px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: .82rem; }
}
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 780px) {
  .container { width: calc(100% - 40px); }
  .nav { position: relative; flex-wrap: wrap; min-height: 64px; justify-content: start; padding-block: 8px; }
  .brand { margin-right: auto; }
  .nav-quote { order: 2; font-size: .83rem; min-height: 42px; padding-inline: 10px; }
  .nav-quote svg { display: none; }
  .brand-logo { width: 40px; height: 40px; }
  .brand-name { font-size: 1rem; }
  .menu-toggle { order: 3; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: white; cursor: pointer; }
  .menu-toggle svg { width: 24px; height: 24px; }
  .nav-links { order: 4; flex: 0 0 100%; align-items: stretch; justify-content: space-between; }
  .nav-links a { display: block; padding: 5px 0; }
  .hero { min-height: 540px; }
  .hero-visual { inset: 0; }
  .hero-visual > img { object-position: 61% center; }
  .hero-visual::after { background: linear-gradient(0deg, #081f33 0%, #081f33eb 30%, #0a223885 68%, #0a223825 100%); }
  .hero-inner { align-self: end; padding-block: 135px 43px; }
  .hero-copy { max-width: 530px; }
  .airflow { top: 30%; opacity: .38; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zone-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
  .site-footer { padding-bottom: 94px; }
  .mobile-call { display: inline-flex; position: fixed; z-index: 8; right: 13px; bottom: calc(10px + env(safe-area-inset-bottom)); left: 13px; box-shadow: 0 4px 17px #061a3480; }
  .trust-grid { grid-template-columns: 1fr; padding-block: 7px; }
  .trust-grid li, .trust-grid li:first-child { padding: 9px 0; }
  .trust-grid li + li { border-left: 0; border-top: 1px solid var(--line); }
  .trust-grid .icon-tile { width: 39px; height: 39px; }
  .form-row, .service-detail { grid-template-columns: 1fr; }
  .city-list li { font-size: .88rem; }
}
@media (max-width: 470px) {
  .hero .actions .button { width: 100%; }
  .hero { min-height: 530px; }
  .hero-intro { margin-block: 16px 20px; }
  .service-grid, .media-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
