/* =========================================================================
   NIKOPROBAT — Feuille de style (prévisualisation statique)
   Direction visuelle : orange #ff7a1a, blanc cassé, gris très foncé,
   cartes à coins arrondis et ombres douces, responsive mobile.
   Cette feuille est identique à celle du thème WordPress
   (assets/css/main.css) afin de garder un rendu fidèle.
   ========================================================================= */

/* --- 1. Tokens / variables de design --------------------------------- */
:root {
  --orange: #ff7a1a;
  --orange-dark: #e96a0c;
  --orange-soft: #fff1e6;
  --ink: #1c1d22;          /* gris très foncé (textes, footer) */
  --ink-2: #2a2c33;        /* surfaces sombres secondaires */
  --slate: #5a5e6b;        /* texte secondaire */
  --line: #ececef;         /* bordures discrètes */
  --paper: #ffffff;        /* blanc */
  --paper-2: #f7f6f3;      /* blanc cassé / fonds de section */
  --star: #ff9d2e;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -18px rgba(28, 29, 34, .22);
  --shadow-soft: 0 10px 30px -12px rgba(28, 29, 34, .14);
  --maxw: 1180px;

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* --- 2. Base ---------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.02em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--soft { background: var(--paper-2); }

/* En-tête de section centré (eyebrow orange + grand titre) */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
.section-head p { color: var(--slate); margin: 16px auto 0; font-size: 1.02rem; }

/* --- 3. Boutons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: .96rem; cursor: pointer;
  border: 1px solid transparent; transition: .2s ease;
}
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 12px 26px -10px rgba(255,122,26,.6); }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn--ghost-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost-light:hover { border-color: var(--orange); color: var(--orange); }
.btn--lg { padding: 16px 30px; font-size: 1rem; }

/* --- 4. Header -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; }
.brand__name .accent { color: var(--orange); }
.brand__sub { font-size: .58rem; letter-spacing: .22em; color: var(--slate); text-transform: uppercase; margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-weight: 600; font-size: .96rem; color: var(--ink); transition: color .2s; }
.nav a:hover, .nav a.is-active, .nav .current-menu-item > a { color: var(--orange); }
/* Liste de menu générée par WordPress (wp_nav_menu) */
.nav .nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.nav .nav-menu li { margin: 0; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* --- 5. Hero ---------------------------------------------------------- */
.hero { background: var(--paper-2); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 72px 0;
}
.hero__title { font-size: clamp(2.1rem, 4.8vw, 3.4rem); font-weight: 800; margin: 18px 0; }
.hero__text { color: var(--slate); font-size: 1.08rem; max-width: 460px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__media { position: relative; }
.hero__media img { width: 100%; height: 460px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }

/* Badge circulaire "Plus de 10 ans d'expérience" */
.badge {
  position: absolute; right: 18px; bottom: 36px;
  width: 132px; height: 132px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow);
  display: grid; place-content: center; text-align: center;
  border: 2px solid var(--orange-soft);
}
.badge small { font-size: .56rem; letter-spacing: .16em; font-weight: 700; color: var(--slate); text-transform: uppercase; }
.badge b { font-size: 2.1rem; font-weight: 800; color: var(--orange); line-height: 1; display: block; margin: 2px 0; }
.badge span { font-size: .56rem; letter-spacing: .12em; font-weight: 700; color: var(--slate); text-transform: uppercase; }

/* --- 6. Cartes services ---------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-soft); transition: .25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { position: relative; height: 190px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__icon {
  position: absolute; left: 22px; top: -26px;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--orange); display: grid; place-content: center;
  box-shadow: 0 10px 20px -8px rgba(255,122,26,.7);
}
.card__icon svg { width: 26px; height: 26px; stroke: #fff; }
.card__body { padding: 38px 24px 26px; }
.card__body h3 { font-size: 1.22rem; font-weight: 800; margin-bottom: 10px; }
.card__body p { color: var(--slate); font-size: .96rem; margin: 0 0 16px; }
.card__link { display: inline-flex; align-items: center; gap: 7px; color: var(--orange); font-weight: 700; font-size: .92rem; }
.card__link svg { width: 16px; height: 16px; transition: transform .2s; }
.card__link:hover svg { transform: translateX(4px); }

/* --- 7. Engagements (bande de réassurance) --------------------------- */
.commit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.commit__item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; box-shadow: var(--shadow-soft);
}
.commit__icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--orange-soft);
  display: grid; place-content: center; margin-bottom: 16px;
}
.commit__icon svg { width: 24px; height: 24px; stroke: var(--orange); }
.commit__item h3 { font-size: 1.04rem; font-weight: 800; margin-bottom: 8px; }
.commit__item p { color: var(--slate); font-size: .9rem; margin: 0; }

/* --- 8. Blog / réalisations ------------------------------------------ */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-soft); transition: .25s ease;
}
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post__media { height: 200px; }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: 22px 24px 26px; }
.post__meta { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--orange); margin-bottom: 10px; }
.post__meta span { color: var(--slate); }
.post__body h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.post__body p { color: var(--slate); font-size: .94rem; margin: 0 0 16px; }

/* --- 9. Témoignages -------------------------------------------------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-soft);
}
.stars { color: var(--star); font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 14px; }
.review blockquote { margin: 0 0 22px; font-size: .98rem; color: var(--ink); }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.review__author b { display: block; font-size: .96rem; }
.review__author small { color: var(--slate); }

/* --- 10. Footer sombre ----------------------------------------------- */
.site-footer { background: var(--ink); color: #cfd1d9; }
.footer__grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px;
  padding: 72px 0 48px;
}
.footer .brand__name { color: #fff; }
.footer__about { color: #9aa0ad; margin: 20px 0 24px; max-width: 340px; font-size: .96rem; }
.footer__contact { list-style: none; padding: 0; margin: 0 0 24px; }
.footer__contact li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: .96rem; }
.footer__contact svg { width: 18px; height: 18px; stroke: var(--orange); flex: none; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ink-2);
  display: grid; place-content: center; transition: .2s;
}
.socials a:hover { background: var(--orange); }
.socials svg { width: 18px; height: 18px; stroke: #fff; }

/* Formulaire de devis / étude */
.quote-form h3 { color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.quote-form .eyebrow { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote-form input, .quote-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid #3a3d46; background: var(--ink-2); color: #fff;
  font-family: inherit; font-size: .95rem;
}
.quote-form input::placeholder, .quote-form textarea::placeholder { color: #8b909c; }
.quote-form input:focus, .quote-form textarea:focus { outline: none; border-color: var(--orange); }
.quote-form .full { grid-column: 1 / -1; }
.quote-form textarea { resize: vertical; min-height: 96px; }
.quote-form .btn { margin-top: 4px; width: 100%; justify-content: center; }

.footer__bottom {
  border-top: 1px solid #2e3038; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .85rem; color: #888d99; flex-wrap: wrap; gap: 10px;
}
.footer__bottom a:hover { color: #fff; }

/* --- 11. Responsive --------------------------------------------------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__media img { height: 360px; }
  .cards, .posts, .reviews { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .commit { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 760px) {
  .nav, .header-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open {
    display: flex; flex-direction: column; position: absolute; top: 78px; left: 0; right: 0;
    background: #fff; padding: 18px 24px; gap: 16px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }
  .nav.is-open .nav-menu { flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; }
  .section { padding: 60px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .commit { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* --- 12. Contenu éditorial (single / page) --------------------------- */
.entry-content { font-size: 1.06rem; color: #33353d; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content h2 { font-size: 1.6rem; font-weight: 800; margin: 1.6em 0 .5em; }
.entry-content h3 { font-size: 1.25rem; font-weight: 800; margin: 1.4em 0 .4em; }
.entry-content a { color: var(--orange); text-decoration: underline; }
.entry-content img { border-radius: var(--radius-sm); margin: 1.4em 0; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content blockquote {
  border-left: 4px solid var(--orange); padding: 8px 0 8px 20px;
  margin: 1.4em 0; color: var(--slate); font-style: italic;
}

/* Pagination des listes d'articles */
.pagination .page-numbers {
  display: inline-block; padding: 8px 14px; margin: 0 3px; border-radius: 10px;
  border: 1px solid var(--line); font-weight: 700; color: var(--ink);
}
.pagination .page-numbers.current { background: var(--orange); color: #fff; border-color: var(--orange); }
.pagination a.page-numbers:hover { border-color: var(--orange); color: var(--orange); }

/* Widgets (sidebar / footer) */
.widget { margin-bottom: 28px; }
.widget-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 12px; }

/* Accessibilité : texte réservé aux lecteurs d'écran */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.custom-logo { width: 42px; height: 42px; }
