/* ============================================================
   Akhmet Umarov - Homme à tout faire à Quimper
   Palette chaleureuse & artisanale
   ============================================================ */

:root {
  --terracotta: #C4633A;
  --terracotta-dark: #A84E29;
  --terracotta-light: #E4926C;
  --beige: #E8DCC8;
  --cream: #FAF6F0;
  --cream-2: #F3EBDD;
  --anthracite: #2E2A26;
  --anthracite-soft: #574F47;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(46, 42, 38, 0.06);
  --shadow-md: 0 10px 30px rgba(46, 42, 38, 0.10);
  --shadow-lg: 0 20px 50px rgba(46, 42, 38, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--anthracite);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; color: var(--anthracite); }
h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.18rem; }

.accent { color: var(--terracotta); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn .ico { width: 20px; height: 20px; fill: currentColor; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 8px 20px rgba(196, 99, 58, 0.28); }
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(196, 99, 58, 0.36); }
.btn-ghost { background: transparent; color: var(--anthracite); border-color: rgba(46,42,38,0.2); }
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta); transform: translateY(-2px); }
.btn-phone { background: var(--anthracite); color: #fff; padding: 10px 18px; font-size: .95rem; }
.btn-phone:hover { background: #000; transform: translateY(-1px); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 240, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(46,42,38,0.08);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  background: var(--terracotta); color: #fff; border-radius: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: .02em;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; }
.brand-tagline { font-size: .78rem; color: var(--anthracite-soft); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: .96rem; font-weight: 500; color: var(--anthracite-soft); position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--terracotta); transition: width .2s ease; }
.nav a:hover { color: var(--anthracite); }
.nav a:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; height: 3px; width: 26px; margin: 0 auto; background: var(--anthracite); border-radius: 3px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(196,99,58,0.14), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  padding: clamp(56px, 9vw, 104px) 0 clamp(60px, 9vw, 100px);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(232,220,200,0.9), transparent 70%); border-radius: 50%;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 44px; align-items: center; }
.hero-content { max-width: 660px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; max-height: 500px; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); }
.hero-media-badge {
  position: absolute; left: -14px; bottom: 26px; background: var(--anthracite); color: #fff;
  padding: 12px 18px; border-radius: 14px; font-family: var(--font-head); font-weight: 600;
  font-size: 1.5rem; line-height: 1; box-shadow: var(--shadow-md); text-align: center;
}
.hero-media-badge small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; color: var(--terracotta-light); margin-top: 5px; text-transform: uppercase; letter-spacing: .06em; }
.hero-eyebrow {
  display: inline-block; font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--terracotta-dark); background: rgba(196,99,58,0.1); padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { margin-bottom: 18px; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--anthracite-soft); max-width: 620px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero-note { font-size: .92rem; color: var(--anthracite-soft); }

/* ---------- Points forts ---------- */
.strengths { margin-top: -46px; position: relative; z-index: 2; }
.strengths-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.strength { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-md); border: 1px solid rgba(46,42,38,0.05); }
.strength-ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--cream-2); color: var(--terracotta); font-size: 1.4rem; margin-bottom: 14px;
}
.strength h3 { margin-bottom: 6px; }
.strength p { font-size: .95rem; color: var(--anthracite-soft); }

/* ---------- Sections génériques ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--cream-2); }
.section-head { max-width: 680px; margin: 0 auto clamp(34px, 5vw, 54px); text-align: center; }
.section-eyebrow { font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 10px; }
.section-eyebrow--light { color: var(--terracotta-light); }
.section-intro { color: var(--anthracite-soft); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(46,42,38,0.06); transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(196,99,58,0.35); }
.service-ico {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-light)); margin-bottom: 16px;
}
.service-ico svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: .96rem; color: var(--anthracite-soft); }
.service-card--more { background: linear-gradient(135deg, var(--anthracite), #443d36); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.service-card--more h3 { color: #fff; }
.service-card--more p { color: rgba(255,255,255,0.8); margin-bottom: 12px; }
.link-arrow { font-weight: 600; color: var(--terracotta-light); }
.link-arrow:hover { color: #fff; }
.services-disclaimer {
  margin-top: 28px; text-align: center; font-size: .95rem; color: var(--anthracite-soft);
  background: var(--cream-2); border-radius: var(--radius-sm); padding: 16px 20px; max-width: 780px; margin-left: auto; margin-right: auto;
}
.section--alt .services-disclaimer { background: #fff; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #fff;
  display: grid; place-items: center; position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item:not(.is-placeholder) { cursor: pointer; box-shadow: var(--shadow-sm); }
.gallery-item:not(.is-placeholder):hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; z-index: 1;
  color: #fff; font-weight: 600; font-size: .95rem; text-align: left;
  background: linear-gradient(to top, rgba(46,42,38,.85), rgba(46,42,38,0));
}
.gallery-item.is-placeholder {
  border: 2px dashed rgba(196,99,58,0.35);
  background: repeating-linear-gradient(45deg, var(--cream), var(--cream) 12px, var(--cream-2) 12px, var(--cream-2) 24px);
}
.gallery-item.is-placeholder span { font-size: .92rem; font-weight: 600; color: var(--terracotta); letter-spacing: .02em; }
.section--alt .gallery-item.is-placeholder { background: repeating-linear-gradient(45deg, #fff, #fff 12px, var(--cream) 12px, var(--cream) 24px); }

/* ---------- Zone d'intervention ---------- */
.zone-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.zone-text h2 { margin: 10px 0 16px; }
.zone-text > p { color: var(--anthracite-soft); }
.towns { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.towns li { background: #fff; border: 1px solid rgba(46,42,38,0.08); padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-sm); }
.towns li:first-child { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.zone-note { font-size: .92rem; color: var(--anthracite-soft); font-style: italic; }
.zone-card {
  background: linear-gradient(160deg, var(--terracotta), var(--terracotta-dark)); border-radius: var(--radius);
  padding: 40px 30px; text-align: center; color: #fff; box-shadow: var(--shadow-lg);
}
.zone-pin { width: 56px; height: 56px; fill: #fff; margin: 0 auto 10px; }
.zone-city { font-family: var(--font-head); font-size: 1.9rem; font-weight: 600; }
.zone-radius { color: rgba(255,255,255,0.85); margin-bottom: 22px; }
.zone-card .btn-primary { background: #fff; color: var(--terracotta-dark); box-shadow: none; }
.zone-card .btn-primary:hover { background: var(--anthracite); color: #fff; }

/* ---------- CESU ---------- */
.cesu { background: linear-gradient(160deg, var(--anthracite) 0%, #3b342e 100%); color: #fff; }
.cesu-inner { display: flex; gap: 40px; align-items: center; }
.cesu-badge {
  flex: none; width: 130px; height: 130px; border-radius: 24px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-light));
  font-family: var(--font-head); font-weight: 700; font-size: 2rem; letter-spacing: .05em;
  box-shadow: var(--shadow-lg);
}
.cesu-text h2 { color: #fff; margin: 8px 0 16px; }
.cesu-text p { color: rgba(255,255,255,0.82); max-width: 720px; }
.cesu-text strong { color: #fff; }
.cesu-example { margin-top: 16px; font-size: 1.08rem; background: rgba(255,255,255,0.08); border-left: 3px solid var(--terracotta-light); padding: 14px 18px; border-radius: 8px; }
.cesu-example strong { color: var(--terracotta-light); }
.cesu-legal { margin-top: 16px; font-size: .85rem; color: rgba(255,255,255,0.6); }

/* ---------- À propos ---------- */
.apropos-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  display: grid; place-items: center; text-align: center;
}
.portrait.is-placeholder {
  border: 2px dashed rgba(196,99,58,0.4);
  background: repeating-linear-gradient(45deg, #fff, #fff 12px, var(--cream) 12px, var(--cream) 24px);
}
.portrait.is-placeholder span { font-weight: 600; color: var(--terracotta); }
.apropos-text h2 { margin: 10px 0 16px; }
.apropos-text p { color: var(--anthracite-soft); margin-bottom: 14px; }
.apropos-list { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.apropos-list li { position: relative; padding-left: 30px; color: var(--anthracite); font-weight: 500; }
.apropos-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--terracotta); color: #fff; font-size: .75rem; display: grid; place-items: center;
}

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 900px; margin: 0 auto; }
.contact-card {
  background: #fff; border-radius: var(--radius); padding: 30px 24px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(46,42,38,0.06);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--terracotta); }
.contact-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--cream-2); margin-bottom: 8px; }
.contact-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--terracotta); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--anthracite-soft); font-weight: 600; }
.contact-value { font-size: 1.08rem; font-weight: 600; }
.contact-cta { text-align: center; margin-top: 34px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--anthracite); color: rgba(255,255,255,0.85); padding: 44px 0 22px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { font-family: var(--font-head); font-size: 1.2rem; color: #fff; font-weight: 600; }
.footer-tag { font-size: .88rem; color: rgba(255,255,255,0.6); }
.footer-contact { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.footer-contact a:hover { color: var(--terracotta-light); }
.footer-contact span { font-size: .85rem; color: rgba(255,255,255,0.55); }
.footer-bottom { padding-top: 20px; font-size: .82rem; color: rgba(255,255,255,0.5); text-align: center; }

/* ---------- Bouton d'appel flottant ---------- */
.floating-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; display: none;
  align-items: center; gap: 8px; background: var(--terracotta); color: #fff;
  padding: 14px 20px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 10px 24px rgba(196,99,58,0.45);
}
.floating-call svg { width: 22px; height: 22px; fill: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { max-width: 420px; margin: 0 auto; }
  .strengths-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .zone-inner { grid-template-columns: 1fr; gap: 30px; }
  .apropos-inner { grid-template-columns: 1fr; gap: 30px; }
  .apropos-photo { max-width: 340px; margin: 0 auto; }
  .cesu-inner { flex-direction: column; text-align: center; }
  .cesu-example, .cesu-text p { max-width: none; }
}

@media (max-width: 720px) {
  .header-cta span { display: none; }
  .header-cta { padding: 10px 12px; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid rgba(46,42,38,0.1);
    padding: 8px 22px 18px; box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(46,42,38,0.07); }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .strengths { margin-top: 0; padding-top: 30px; }
  .strengths-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-contact { text-align: left; }
  .floating-call { display: inline-flex; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 400px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ---------- Vidéos ---------- */
.video-block { margin-top: 44px; }
.video-title { text-align: center; font-family: var(--font-head); font-size: 1.2rem; color: var(--anthracite); margin-bottom: 18px; }
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 720px; margin: 0 auto; }
.video-item { width: 100%; height: 460px; background: #000; border-radius: var(--radius); box-shadow: var(--shadow-sm); object-fit: contain; }

/* ---------- Lightbox (agrandissement photo) ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(24, 20, 17, 0.93); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 16px; right: 20px; width: 48px; height: 48px; border: none; border-radius: 50%; background: rgba(255,255,255,0.15); color: #fff; font-size: 2rem; line-height: 44px; cursor: pointer; transition: background .2s ease; }
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

@media (max-width: 720px) {
  .videos { grid-template-columns: 1fr; max-width: 360px; }
  .video-item { height: 400px; }
}

/* Accessibilité : réduire les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
