/* ===== Kyllis-Net — feuille de style unique ===== */
:root {
    --navy: #0f1c2e;
    --navy-2: #172a44;
    --ink: #1c2430;
    --muted: #5b6676;
    --line: #e3e7ee;
    --bg: #f6f8fb;
    --white: #ffffff;
    --accent: #f5b324;      /* jaune "électricien" */
    --accent-dark: #d99a0c;
    --ok: #1f8a4c;
    --err: #c0392b;
    --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ----- Boutons ----- */
.btn {
    display: inline-flex; align-items: center; gap: .5em;
    padding: .8em 1.4em; border-radius: 10px; border: 0;
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
    transition: background .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--white); }
.btn-sm { padding: .55em 1em; font-size: .95rem; }

/* ----- Header ----- */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 24px; }
.nav a { text-decoration: none; opacity: .85; }
.nav a:hover { opacity: 1; }
.show-sm { display: none; }

/* ----- Hero ----- */
.hero {
    position: relative; color: var(--white);
    background: linear-gradient(rgba(15,28,46,.82), rgba(15,28,46,.9)), url('../images/imagefond2.jpg') center/cover;
    padding: 96px 0 88px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; max-width: 760px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.15rem; max-width: 620px; opacity: .9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; padding: 0; list-style: none; opacity: .9; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts i { color: var(--accent); }

/* ----- Services ----- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 36px; }
.card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; text-align: left;
}
.section-alt .card { background: var(--bg); }
.card .icon {
    width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center;
    background: var(--navy); color: var(--accent); font-size: 1.3rem; margin-bottom: 16px;
}
.card h3 { font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }

/* ----- À propos ----- */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist i { color: var(--accent-dark); margin-top: 4px; }

/* ----- Réalisations ----- */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 36px; }
.gallery figure { margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery .placeholder { aspect-ratio: 4/3; display: grid; place-items: center; background: var(--line); color: var(--muted); font-size: 2rem; }
.gallery figcaption { padding: 12px 14px; font-size: .95rem; color: var(--muted); }

/* ----- Contact ----- */
.contact { background: var(--navy); color: var(--white); }
.contact .lead { color: rgba(255,255,255,.8); }
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 32px; }
.contact-item { background: var(--navy-2); border-radius: var(--radius); padding: 22px; text-decoration: none; display: block; transition: background .2s; }
a.contact-item:hover { background: #1f3757; }
.contact-item i { color: var(--accent); font-size: 1.4rem; margin-bottom: 10px; display: block; }
.contact-item strong { display: block; }
.contact-item span { opacity: .8; font-size: .95rem; }

/* ----- Formulaire ----- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; max-width: 760px; margin: 0 auto; }
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.req { color: var(--err); }
input[type=text], input[type=email], input[type=tel], textarea, select {
    width: 100%; padding: .75em .9em; border: 1px solid #cfd6e0; border-radius: 8px;
    font: inherit; background: var(--white); color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--muted); }
.check input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; }
.alert-ok { background: #e6f5ec; color: var(--ok); }
.alert-err { background: #fbeaea; color: var(--err); }

/* ----- Pages légales ----- */
.legal { max-width: 820px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: #39424f; }
.page-title { padding: 56px 0 32px; }

/* ----- Footer ----- */
.site-footer { background: #0a1422; color: rgba(255,255,255,.75); font-size: .95rem; padding-top: 40px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); line-height: 1.9; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding: 18px 0; font-size: .85rem; }

/* ----- Mobile ----- */
@media (max-width: 760px) {
    .nav { display: none; }
    .hide-sm { display: none; }
    .show-sm { display: inline; }
    .about { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-card, .legal { padding: 22px; }
    .section { padding: 52px 0; }
    .hero { padding: 64px 0; }
}


.brand img {
    width: auto;
    height: 40px;
}


.gallery img, .gallery .placeholder { aspect-ratio: 3/4; }
@media (min-width: 761px) { #services .grid { grid-template-columns: repeat(3, 1fr); } }
.gallery { grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); justify-content: center; }

@media (min-width: 761px) {
    #services .grid { display: flex; flex-wrap: wrap; justify-content: center; }
    #services .card { flex: 0 1 calc(33.333% - 14px); }
}