/* Padel Club Connect : vitrine. Couleurs reprises de l'appli (assets/styles/app.css du dépôt padel). */
:root {
  --brand: #0f766e;
  --brand-dark: #0b5953;
  --brand-soft: #ccfbf1;
  --accent: #ca8a04;
  --accent-soft: #fef3c7;
  --ink: #0f1a17;
  --muted: #4d5c57;
  --line: #dfe5e3;
  --card: #f4f6f5;
  --surface: #ffffff;
  --radius: 1.25rem;
  --wrap: 72rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: .25rem; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .75rem; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem;
        border-radius: .5rem; z-index: 10; }
.skip:focus { top: 1rem; color: #fff; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .95); position: sticky; top: 0; z-index: 5;
               backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: var(--ink);
        text-decoration: none; }
.logo img { width: 2rem; height: 2rem; border-radius: .5rem; }
.logo b { color: var(--brand); font-weight: inherit; }
.nav { display: flex; gap: .25rem 1.25rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: .35rem 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35rem; text-decoration-thickness: 2px; }
.nav .btn { padding: .55rem 1.1rem; color: #fff; }
@media (max-width: 46rem) {
  .site-header { position: static; }
  .site-header .wrap { padding-block: .75rem; gap: .5rem; }
  .nav { margin-left: 0; width: 100%; }
  .nav .btn { display: none; }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px;
       padding: .85rem 1.6rem; font-weight: 700; text-decoration: none; border: 2px solid var(--brand);
       background: var(--brand); color: #fff; line-height: 1.2; text-align: center; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-light { background: #fff; border-color: #fff; color: var(--brand); }
.btn-light:hover { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand-dark); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.center .actions { justify-content: center; }

/* Sections */
section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.alt { background: var(--card); }
.kicker { display: inline-block; font-weight: 700; color: var(--accent); text-transform: uppercase; font-size: .85rem;
          letter-spacing: .08em; margin-bottom: .5rem; }

.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 85%); }
.hero .wrap { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1.2fr .8fr; }
@media (max-width: 52rem) { .hero .wrap { grid-template-columns: 1fr; } }
.promesses { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
             color: var(--muted); font-weight: 600; }
.promesses li::before { content: "✓ "; color: var(--brand); font-weight: 800; }

/* Téléphone : cadre autour d'une capture */
.phone { width: min(100%, 19rem); margin-inline: auto; border: .6rem solid var(--ink); border-radius: 2.4rem;
         overflow: hidden; box-shadow: 0 1.5rem 3rem rgba(15, 26, 23, .18); background: #fff; }
.phone img { width: 100%; }
.phones { display: flex; gap: 1.5rem; justify-content: center; }
.phones .phone { width: min(48%, 17rem); }
.phones .phone:nth-child(2) { margin-top: 3rem; }

/* Fonctionnalités */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature + .feature { margin-top: clamp(3rem, 8vw, 5.5rem); }
.feature.reverse > :first-child { order: 2; }
@media (max-width: 52rem) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse > :first-child { order: 0; }
}
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 1.9rem; position: relative; margin-bottom: .7rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 1.15rem; height: 1.15rem; border-radius: 50%;
                     background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230f766e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 2.5rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.alt .card { border-color: transparent; }
.card .ico { font-size: 1.8rem; line-height: 1; margin-bottom: .75rem; }
.card p:last-child { margin-bottom: 0; }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.25rem;
         grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); counter-reset: etape; }
.steps li { counter-increment: etape; background: var(--surface); border-radius: var(--radius); padding: 1.5rem;
            border: 1px solid var(--line); }
.steps li::before { content: counter(etape); display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
                    border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: .9rem; }

/* Tarifs */
.plans { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); margin-top: 2.5rem;
         align-items: stretch; }
.plan { border: 2px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem; display: flex;
        flex-direction: column; background: var(--surface); position: relative; }
.plan.populaire { border-color: var(--brand); box-shadow: 0 1rem 2.5rem rgba(15, 118, 110, .14); }
.plan .badge { position: absolute; top: -.85rem; left: 1.75rem; background: var(--brand); color: #fff; font-weight: 700;
               font-size: .85rem; padding: .2rem .8rem; border-radius: 999px; }
.plan h3 { font-size: 1.45rem; margin-bottom: .25rem; }
.prix { font-size: 2.6rem; font-weight: 800; margin: .75rem 0 0; line-height: 1.1; }
.prix small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan .checks { margin: 1.5rem 0 2rem; flex: 1; }
.plan .btn { width: 100%; }
.plan .note { font-size: .9rem; color: var(--muted); margin: .75rem 0 0; text-align: center; }

.table-wrap { overflow-x: auto; margin-top: 2rem; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .95rem; }
tbody th { font-weight: 500; }
td { text-align: center; }

/* FAQ */
.faq { max-width: 48rem; }
.faq h2 { margin-top: 3rem; font-size: 1.5rem; }
.faq h2:first-child { margin-top: 0; }
details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; padding-right: 2rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .25rem; top: -.1rem; font-size: 1.5rem; color: var(--brand);
                 font-weight: 400; }
details[open] summary::after { content: "−"; }
details > :not(summary) { margin-top: .75rem; }
details p:last-child { margin-bottom: 0; }

/* Bandeau d'appel */
.cta { background: var(--brand); color: #fff; }
.cta .lead { color: #d5f5ef; }
.cta a:not(.btn) { color: #fff; }

/* Pages de texte (CGV, mentions…) */
.page-head { background: var(--card); padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-head .lead { margin-bottom: 0; }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2.25rem; }
.encart { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 1rem 1.25rem;
          border-radius: .5rem; margin-block: 1.5rem; }
.encart p:last-child { margin-bottom: 0; }

/* Pied de page */
.site-footer { background: var(--ink); color: #c9d4d0; padding-block: 3rem 2rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 46rem) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid #2a3633; padding-top: 1.5rem; margin: 0; }

/* Information manquante dans un texte (à remplir avant publication) */
mark.a-completer { background: #fde68a; color: var(--ink); padding: 0 .2rem; border-radius: .2rem; font-weight: 600; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }

/* Formulaire de contact */
.formulaire { max-width: 44rem; margin-inline: auto; }
.formulaire fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
.formulaire legend { font-weight: 700; font-size: 1.15rem; margin-bottom: .75rem; }
.choix { display: grid; gap: .75rem; }
.choix label { display: flex; gap: .85rem; align-items: flex-start; border: 2px solid var(--line); border-radius: 1rem;
               padding: 1rem 1.1rem; cursor: pointer; }
.choix label:has(input:checked) { border-color: var(--brand); background: #f0fdfa; }
.choix input { margin-top: .3rem; width: 1.15rem; height: 1.15rem; accent-color: var(--brand); flex: none; }
.choix small { display: block; color: var(--muted); font-size: .95rem; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.champs .large { grid-column: 1 / -1; }
@media (max-width: 40rem) { .champs { grid-template-columns: 1fr; } }
.champs label { display: block; font-weight: 600; margin-bottom: .35rem; }
.champs input, .champs textarea { width: 100%; font: inherit; color: inherit; padding: .75rem .9rem; border: 1.5px solid #b9c6c2;
                                  border-radius: .75rem; background: #fff; }
.champs input:focus, .champs textarea:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
.champs textarea { resize: vertical; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.petit { font-size: .92rem; }
.formulaire .btn { min-width: 12rem; }
.encart.erreur { background: #fee2e2; border-left-color: #b91c1c; }
button.btn { font: inherit; font-weight: 700; cursor: pointer; }
#ouverture, #premium { display: block; position: relative; top: -6rem; }
/* Comparatif : colonnes de formules de même largeur, titres centrés comme les valeurs */
thead th:not(:first-child), td { text-align: center; width: 9rem; }
