/* Palette et typographie */
:root {
    --color-red: #c01c28;
    --color-blue: #1c71d8;
    --color-brown: #63452c;
    --color-black: #000000;

    --text: #1f1f1f;
    --bg: #ffffff;

    --link: #1c71d8;
    --link-hover: #1c71d8;
    --paragraph: 1rem;
    --radius: 8px;
    --shadow-focus: 0 0 0 3px rgba(28, 113, 216, 0.25);
}

html {
  scroll-behavior: smooth;
}

html,
body {
    font-family: "Merriweather", serif;
    color: var(--text);
    background: var(--bg);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mise en forme générale */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.has-text-centered {
    text-align: center;
}

h1,
h2,
h3,
h4 {
    margin: 0.5rem 0;
    line-height: 1.25;
    font-weight: 400;
}

h1 {
    font-size: clamp(2rem, 4vw + 1rem, 3rem);
}

h2 {
    font-size: clamp(1.75rem, 3.5vw + 1rem, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2.2vw + 0.75rem, 1.75rem);
}

h4 {
    font-size: clamp(1rem, 1.4vw + 0.6rem, 1.25rem);
}

.parag {
    margin: 2rem 0;
    color: var(--text);
    font-size: var(--paragraph);
}

.parag span.eau {
    color: var(--color-blue);
}

.parag span.feu {
    color: var(--color-red);
}

.parag span.terre {
    color: var(--color-brown);
}

.parag span.bold {
    font-weight: bold;
}

a.lienfooter {
    color: #eee;
    padding: 0.4rem 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

a.lienfooter:hover,
a.lienfooter:focus {
    color: var(--link);
    text-decoration: underline;
    outline: none;
}

.hero {
    padding: 60px 0;
    background: #f5f5f5;
}

.section {
    padding: 3rem 0;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid.features {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1.25rem;
}

/* Captures d'écran */
.grid-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.screenshot {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.price {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0.25rem 0 0.5rem;
}

/* Formulaire de contact (CTA) */
#contact {
    background: #fafafa;
    padding: 2rem 0;
}

form#contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.field {
    margin-bottom: 1rem;
}

.label {
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
    color: #333;
}

.input,
.textarea {
    width: 100%;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    font-size: 1rem;
    background: #fff;
    color: #333;
}

.input:focus,
.textarea:focus {
    border-color: var(--color-blue);
    box-shadow: var(--shadow-focus);
    outline: none;
}

.button.is-link {
    background-color: var(--color-blue);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 0.6rem 1.1rem;
    cursor: pointer;
}

.button.is-link:hover {
    background-color: #0f61d0;
}

footer {
    background: var(--color-black);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

footer a {
    color: #e6e6e6;
    text-decoration: none;
}

footer a:hover,
footer a:focus {
    color: #fff;
    text-decoration: underline;
}

:focus-visible {
    outline: 3px solid rgba(28, 113, 216, 0.8);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

@media (min-width: 768px) {
    .hero {
        padding: 80px 0;
    }
}

/* Lightbox (pour les captures en texte) */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    overflow: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .3);
}

.lightbox-content .title {
    margin-top: 0;
}

.lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    color: #fff;
    background: rgba(0, 0, 0, .6);
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    z-index: 10000;
}

.lightbox-close:focus {
    outline: 2px solid #fff;
}

.capture {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f9f9f9;
    cursor: zoom-in;
    transition: transform .2s ease;
}

.capture:hover {
    transform: scale(1.01);
}

footer {
    background: var(--color-black);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.container {
    max-width: 1100px;
}

.thumb {
    cursor: pointer;
    transition: transform .2s;
}

.thumb:hover {
    transform: scale(1.03);
}

.css-email {
    text-decoration: underline;
    cursor: pointer;
}

.css-email::before {
    content: attr(data-email);
}

.css-email::after {
    content: "@kerwebservices.fr";
}
