/*
Theme Name: Twin Riva
Theme URI: https://twinriva.fr
Author: Twin Riva
Description: Thème sur mesure du réseau d'affaires Twin Riva — Paris · Casablanca.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.0
License: Proprietary
Text Domain: twinriva
*/

:root {
  --navy: #0F3D5E;
  --navy-2: #0B2E48;
  --seine: #2F86A6;
  --seine-soft: #DCEEF4;
  --ocre: #D97B3A;
  --ocre-soft: #FBE9DC;
  --sand: #F4EFE6;
  --sand-2: #EAE2D4;
  --ink: #1B2430;
  --ink-2: #4A5563;
  --line: #E3DCD0;
  --white: #ffffff;
  --radius: 14px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--seine); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 800px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ocre); margin-bottom: 12px; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* boutons */
.btn { display: inline-block; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; border: 2px solid transparent; transition: transform .12s ease, background .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--ocre); color: #fff; }
.btn-primary:hover { background: #C46A2C; }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ocre); line-height: 1; margin-top: 2px; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu li a { display: block; padding: 8px 12px; color: var(--ink); font-weight: 600; font-size: .95rem; border-radius: 8px; }
.menu li a:hover, .menu li.current-menu-item > a, .menu li.current_page_item > a { background: var(--sand); text-decoration: none; color: var(--navy); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu { display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 22px 20px; }
  .nav-menu.open { display: block; }
  .menu { flex-direction: column; align-items: stretch; }
  .menu li a { padding: 12px; }
  .nav-cta { margin: 10px 0 0; }
}

/* hero */
.hero { background: linear-gradient(180deg, var(--sand) 0%, #fff 100%); padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero-grid img { border-radius: var(--radius); box-shadow: 0 24px 60px rgba(15,61,94,.18); }
.hero .lead { margin-top: 14px; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.tag { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 600; color: var(--navy); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* sections */
.section { padding: 72px 0; }
.section-sand { background: var(--sand); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: #F3B48A; }
.section-navy .lead, .section-navy .muted { color: #D6E3EC; }
.section-head { max-width: 720px; margin-bottom: 36px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-top: 6px; }
.card .num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--seine-soft); color: var(--navy); font-weight: 800; }
.card.ocre { border-top: 4px solid var(--ocre); }
.card.seine { border-top: 4px solid var(--seine); }
.card.navy { border-top: 4px solid var(--navy); }
.section-navy .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #E8EEF3; }
.section-navy .card h3 { color: #fff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split img { border-radius: var(--radius); }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }

.city { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); color: #fff; min-height: 340px; display: flex; align-items: flex-end; }
.city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.city .city-body { position: relative; padding: 28px; background: linear-gradient(180deg, rgba(15,61,94,0) 0%, rgba(15,61,94,.92) 45%); width: 100%; }
.city h3 { color: #fff; font-size: 1.6rem; }
.city p { color: #E8EEF3; margin: 0 0 12px; }
.city .btn { margin-top: 4px; }

/* listes */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--seine-soft); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 10px; width: 6px; height: 10px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 18px 66px; position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 18px; top: 16px; font-weight: 800; color: var(--ocre); font-size: 1.05rem; }
.steps li strong { color: var(--navy); }

/* tableau */
.table-wrap { overflow-x: auto; }
table.tw { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .97rem; }
table.tw th { text-align: left; background: var(--sand); color: var(--navy); padding: 12px 14px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
table.tw td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.tw td:first-child { font-weight: 700; color: var(--navy); }

/* déroulé */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--seine-soft); }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--ocre); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ocre); }
.timeline .t { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; margin-right: 8px; }

/* vocabulaire */
.vocab { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vocab div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.vocab b { display: block; color: var(--ocre); font-size: 1.05rem; margin-bottom: 4px; }
@media (max-width: 900px) { .vocab { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .vocab { grid-template-columns: 1fr; } }

/* charte PISTE */
.piste { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.piste div { background: rgba(255,255,255,.08); border-radius: 12px; padding: 18px 14px; text-align: center; }
.piste b { display: block; font-size: 2.2rem; color: #F3B48A; font-weight: 800; line-height: 1; margin-bottom: 8px; }
@media (max-width: 900px) { .piste { grid-template-columns: repeat(2, 1fr); } }

/* tarif */
.price { background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); padding: 30px; }
.price .amount { font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1; }
.price .amount small { font-size: 1rem; font-weight: 600; color: var(--ink-2); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ocre); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* CTA band */
.cta-band { background: var(--ocre); color: #fff; padding: 56px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #FBE9DC; max-width: 60ch; }

/* page générique */
.page-hero { background: var(--sand); padding: 56px 0 40px; }
.page-hero h1 { max-width: 20ch; }
.entry { padding: 56px 0; }
.entry h2 { margin-top: 48px; }
.entry h2:first-child { margin-top: 0; }
.entry ul, .entry ol { padding-left: 22px; }
.entry img.full { border-radius: var(--radius); margin: 8px 0 24px; }
.note { background: var(--seine-soft); border-left: 4px solid var(--seine); padding: 16px 20px; border-radius: 8px; margin: 22px 0; }
.note.ocre { background: var(--ocre-soft); border-left-color: var(--ocre); }

/* formulaire */
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea, .wpcf7 select,
.tw-form input, .tw-form textarea, .tw-form select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.wpcf7 input[type=submit], .tw-form button { background: var(--ocre); color: #fff; border: 0; border-radius: 999px; padding: 14px 26px; font-weight: 700; font-size: 1rem; cursor: pointer; }
.wpcf7 label, .tw-form label { display: block; font-weight: 600; margin: 14px 0 6px; color: var(--navy); }

/* footer */
.site-footer { background: var(--navy-2); color: #C9D6E0; padding: 48px 0 28px; margin-top: 40px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer a { color: #E3ECF3; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .85rem; color: #93A7B8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; } }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; background: #fff; padding: 8px; z-index: 100; }
