/*
Theme Name: Teddy K Couverture
Theme URI: https://teddyk-couverture.fr
Author: Teddy K Couverture
Description: Thème sur mesure pour Teddy K Couverture, couvreur à Saint-Julien-de-Concelles (44). Nettoyage de toiture, remplacement et réparation, toiture neuve, réalisations, contact, et 50 pages de référencement local en Loire-Atlantique créées automatiquement à l'activation.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: teddy-k-couverture
*/

:root {
	--brique: #c4482a;
	--brique-dk: #9c3519;
	--orange: #f39200;
	--anthracite: #2b2f33;
	--gris: #5c636a;
	--gris-cl: #e6e2dc;
	--creme: #f7f3ee;
	--blanc: #ffffff;
	--radius: 10px;
	--shadow: 0 10px 30px rgba(43, 47, 51, .12);
	--font-title: "Barlow Condensed", "Arial Narrow", sans-serif;
	--font-body: "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--anthracite); background: var(--blanc); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brique); }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.1; margin: 0 0 .5em; color: var(--anthracite); letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }

.tk-wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.tk-center { text-align: center; margin-top: 32px; }

/* Boutons */
.tk-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 6px; background: var(--brique); color: var(--blanc); font-weight: 700; text-decoration: none; border: 2px solid var(--brique); cursor: pointer; font-size: 1rem; transition: background .2s, transform .2s; font-family: var(--font-body); }
.tk-btn:hover { background: var(--brique-dk); border-color: var(--brique-dk); transform: translateY(-1px); }
.tk-btn--big { padding: 15px 28px; font-size: 1.05rem; }
.tk-btn--ghost { background: transparent; border-color: var(--blanc); }
.tk-btn--ghost:hover { background: var(--blanc); color: var(--anthracite); border-color: var(--blanc); }
.tk-btn--outline { background: transparent; color: var(--brique); }
.tk-btn--outline:hover { color: var(--blanc); }
.tk-btn--phone { background: var(--orange); border-color: var(--orange); color: var(--anthracite); }
.tk-btn--phone:hover { background: #d98200; border-color: #d98200; }
.tk-link { font-weight: 700; text-decoration: none; }
.tk-link:hover { text-decoration: underline; }

/* Bandeau haut */
.tk-topbar { background: var(--anthracite); color: #cfd3d6; font-size: .88rem; }
.tk-topbar .tk-wrap { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; flex-wrap: wrap; }
.tk-topbar a { color: var(--blanc); text-decoration: none; }
.tk-sep { opacity: .4; margin: 0 8px; }

/* En-tête */
.tk-header { background: var(--blanc); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(0,0,0,.07); }
.admin-bar .tk-header { top: 32px; }
.tk-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.tk-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; white-space: nowrap; }
.tk-brand__logo { width: 80px; height: auto; }
.tk-brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-title); }
.tk-brand__text strong { font-size: 1.7rem; color: var(--anthracite); font-weight: 800; }
.tk-brand__text em { font-style: normal; font-size: 1.05rem; color: var(--brique); text-transform: uppercase; letter-spacing: .18em; font-weight: 700; }
.tk-nav { display: flex; align-items: center; gap: 14px; }
.tk-btn--phone { white-space: nowrap; padding: 11px 16px; }
.tk-menu { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.tk-menu a { display: block; padding: 10px 8px; white-space: nowrap; font-size: .95rem; color: var(--anthracite); text-decoration: none; font-weight: 600; border-radius: 6px; }
.tk-menu a:hover, .tk-menu .current-menu-item > a, .tk-menu .current_page_item > a { color: var(--brique); background: var(--creme); }
.tk-burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.tk-burger span { display: block; height: 3px; background: var(--anthracite); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* Hero */
.tk-hero { position: relative; color: var(--blanc); background: linear-gradient(100deg, rgba(30,32,35,.92) 0%, rgba(30,32,35,.72) 50%, rgba(30,32,35,.35) 100%), var(--tk-bg) center 60% / cover no-repeat; }
.tk-hero__inner { padding: 110px 0 90px; display: grid; gap: 48px; }
.tk-hero__text { max-width: 680px; }
.tk-hero h1 { color: var(--blanc); }
.tk-hero__lead { font-size: 1.2rem; color: #e8e4de; }
.tk-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.tk-hero__badges { list-style: none; padding: 0; margin: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.tk-hero__badges li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(4px); padding: 14px 20px; border-radius: var(--radius); font-weight: 600; }
.tk-hero__badges strong { display: block; font-family: var(--font-title); font-size: 2rem; color: var(--orange); line-height: 1; }

/* Titres de section */
.tk-kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .82rem; font-weight: 700; color: var(--brique); margin-bottom: 8px; }
.tk-kicker--light { color: var(--orange); }
.tk-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.tk-head p:last-child { color: var(--gris); }
.tk-head--light h2 { color: var(--blanc); }
.tk-head--light .tk-kicker { color: var(--orange); }

/* Sections */
.tk-section { padding: 84px 0; }
.tk-section--alt { background: var(--creme); }
.tk-section--dark { background: var(--anthracite); color: #d6d9dc; }

/* Bandeau des pages intérieures */
.tk-pagehead { color: var(--blanc); background: linear-gradient(rgba(30,32,35,.78), rgba(30,32,35,.78)), var(--tk-bg, none) center / cover no-repeat, var(--anthracite); padding: 80px 0 64px; }
.tk-pagehead h1 { color: var(--blanc); margin-bottom: 10px; }
.tk-pagehead__sub { font-size: 1.15rem; color: #e1ddd7; max-width: 720px; margin: 0; }
.tk-crumbs { font-size: .9rem; color: #bfc3c6; margin-bottom: 14px; }
.tk-crumbs a { color: var(--orange); text-decoration: none; }
.tk-crumbs span { margin: 0 6px; }

/* Cartes services */
.tk-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; }
.tk-card { background: var(--blanc); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s; }
.tk-card:hover { transform: translateY(-4px); }
.tk-card__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.tk-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tk-card:hover .tk-card__img img { transform: scale(1.05); }
.tk-card__tag { position: absolute; left: 16px; top: 16px; background: var(--orange); color: var(--anthracite); font-weight: 700; font-size: .8rem; padding: 4px 12px; border-radius: 30px; text-transform: uppercase; letter-spacing: .08em; }
.tk-card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.tk-card__body h3 a { color: var(--anthracite); text-decoration: none; }
.tk-card__body p { color: var(--gris); flex: 1; }

/* Bloc image + texte */
.tk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tk-split__img { position: relative; padding: 0 0 70px 0; }
.tk-split__img > img:first-child { width: 82%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.tk-split__img2 { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 6px solid var(--blanc); box-shadow: var(--shadow); }
.tk-section--alt .tk-split__img2 { border-color: var(--creme); }
.tk-checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.tk-checks li { position: relative; padding-left: 32px; }
.tk-checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--brique) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Atouts */
.tk-atouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.tk-atout { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); padding: 28px; border-radius: var(--radius); }
.tk-atout h3 { color: var(--blanc); }
.tk-atout p { margin: 0; }
.tk-atout__ico { display: inline-flex; width: 52px; height: 52px; border-radius: 12px; background: var(--brique); color: var(--blanc); align-items: center; justify-content: center; margin-bottom: 16px; }
.tk-atout__ico svg { width: 28px; height: 28px; }
.tk-atouts--light .tk-atout { background: var(--blanc); border-color: var(--gris-cl); border-top: 4px solid var(--brique); }
.tk-atouts--light .tk-atout h3 { color: var(--anthracite); }
.tk-atouts--light .tk-atout p { color: var(--gris); }

/* Étapes */
.tk-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.tk-steps li { counter-increment: step; background: var(--blanc); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); position: relative; }
.tk-steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-title); font-size: 3rem; font-weight: 800; color: var(--brique); opacity: .25; position: absolute; right: 20px; top: 10px; }
.tk-steps p { color: var(--gris); margin: 0; }

/* Galeries */
.tk-wide { margin: 0; }
.tk-wide img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.tk-wide figcaption, .tk-gallery figcaption { font-size: .92rem; color: var(--gris); margin-top: 10px; text-align: center; }
.tk-gallery { display: grid; gap: 22px; }
.tk-gallery--2 { grid-template-columns: repeat(2, 1fr); }
.tk-gallery--3 { grid-template-columns: repeat(3, 1fr); }
.tk-gallery--4 { grid-template-columns: repeat(4, 1fr); }
.tk-gallery figure { margin: 0; }
.tk-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.tk-gallery--4 img { aspect-ratio: 3 / 4; }
.tk-gallery figure.is-hidden { display: none; }
.tk-filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.tk-filters button { border: 2px solid var(--gris-cl); background: var(--blanc); padding: 9px 20px; border-radius: 30px; font-weight: 700; cursor: pointer; font-family: var(--font-body); font-size: .95rem; color: var(--anthracite); }
.tk-filters button.is-active, .tk-filters button:hover { background: var(--brique); border-color: var(--brique); color: var(--blanc); }

/* Lightbox */
.tk-lb { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; cursor: zoom-out; }
.tk-lb img { max-height: 90vh; width: auto; border-radius: 6px; }

/* Texte long / FAQ */
.tk-prose { max-width: 860px; }
.tk-prose h2 { margin-top: 1.4em; }
.tk-prose h2:first-child { margin-top: 0; }
.tk-faq details { background: var(--blanc); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.tk-faq summary { font-weight: 700; cursor: pointer; }
.tk-faq details p { margin: 12px 0 0; color: var(--gris); }

/* Pastilles villes voisines */
.tk-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tk-chips a { display: block; padding: 9px 16px; background: var(--blanc); border: 1px solid var(--gris-cl); border-radius: 30px; text-decoration: none; color: var(--anthracite); font-weight: 600; }
.tk-chips a:hover { border-color: var(--brique); color: var(--brique); }

/* Devis */
.tk-devis { background: linear-gradient(135deg, var(--brique) 0%, var(--brique-dk) 100%); color: var(--blanc); }
.tk-devis__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.tk-devis h2 { color: var(--blanc); }
.tk-devis .tk-kicker { color: var(--orange); }
.tk-devis__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.tk-devis__list li { background: rgba(0,0,0,.15); padding: 14px 18px; border-radius: 8px; }
.tk-devis__list span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; opacity: .75; }
.tk-devis__list a { color: var(--blanc); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.tk-form { background: var(--blanc); color: var(--anthracite); padding: 34px; border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0,0,0,.2); display: grid; gap: 16px; }
.tk-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tk-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.tk-form input, .tk-form select, .tk-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfcac3; border-radius: 6px; font: inherit; font-weight: 400; background: #fdfcfa; }
.tk-form input:focus, .tk-form select:focus, .tk-form textarea:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.tk-form__note { font-size: .85rem; color: var(--gris); margin: 0; }
.tk-hp { position: absolute !important; left: -9999px; }
.tk-alert { padding: 12px 16px; border-radius: 6px; margin: 0; font-weight: 600; }
.tk-alert--ok { background: #e6f4ea; color: #1e6b35; }
.tk-alert--err { background: #fdecea; color: #a12a1a; }

/* Carte */
.tk-map iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Pied de page */
.tk-footer { background: #1f2225; color: #aeb3b8; font-size: .95rem; }
.tk-footer a { color: #d9dcdf; text-decoration: none; }
.tk-footer a:hover { color: var(--orange); }
.tk-footer h3 { color: var(--blanc); font-size: 1.3rem; }
.tk-footer ul { list-style: none; padding: 0; margin: 0; }
.tk-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding: 64px 0 40px; }
.tk-footer__cols li { margin-bottom: 8px; }
.tk-footer__about img { width: 120px; background: var(--blanc); border-radius: 8px; padding: 6px; margin-bottom: 16px; }
.tk-footer__villes { border-top: 1px solid rgba(255,255,255,.08); padding: 36px 0 40px; }
.tk-footer__villes ul { columns: 5 180px; column-gap: 24px; }
.tk-footer__villes li { break-inside: avoid; margin-bottom: 6px; font-size: .88rem; }
.tk-footer__bottom { background: #17191b; padding: 16px 0; font-size: .85rem; }
.tk-footer__bottom .tk-wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Bouton d'appel flottant (mobile) */
.tk-float-call { display: none; position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: var(--orange); color: var(--anthracite); align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.3); z-index: 60; }

/* Responsive */
@media (max-width: 1240px) {
	.tk-burger { display: block; }
	.tk-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--blanc); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 12px; box-shadow: 0 12px 20px rgba(0,0,0,.1); display: none; }
	.tk-nav.is-open { display: flex; }
	.tk-menu { flex-direction: column; }
	.tk-btn--phone { justify-content: center; }
	.tk-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.tk-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.tk-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
	.tk-gallery--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
	.tk-split, .tk-devis__grid, .tk-footer__cols { grid-template-columns: 1fr; gap: 40px; }
	.tk-gallery--3, .tk-gallery--2 { grid-template-columns: 1fr 1fr; }
	.tk-section { padding: 60px 0; }
	.tk-hero__inner { padding: 70px 0 60px; }
	.tk-topbar__right { display: none; }
	.tk-float-call { display: inline-flex; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.tk-form__row, .tk-gallery--3, .tk-gallery--2 { grid-template-columns: 1fr; }
	.tk-form { padding: 22px; }
	.tk-brand__logo { width: 70px; }
	.tk-brand__text strong { font-size: 1.5rem; }
	.tk-hero__cta .tk-btn { width: 100%; justify-content: center; }
	.admin-bar .tk-header { top: 0; }
}
