/* Pages : comment ça marche, contacter, à propos. Complète style.css (v5). */
.nb { white-space: nowrap; }

/* Formules : pastille « Recommandée » */
.plan-main { position: relative; }
.plan-badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); margin: 0; padding: .35rem 1rem; border-radius: 999px; background: linear-gradient(180deg, #5571FF, var(--blue) 55%, #2F49CC); color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 2px 0 #2338A8, 0 10px 18px -8px rgb(58 87 232 / .7); }
.plans { padding-top: .75rem; }

/* Contact */
.ct-grid { display: grid; gap: 2.5rem; align-items: center; }
.ct-title { text-wrap: balance; }
.ct-blue { color: var(--blue); white-space: nowrap; }
.ct-points { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.ct-points li { padding: .4rem .9rem; border-radius: 999px; background: var(--glass); font-size: .9rem; font-weight: 500; box-shadow: 0 0 0 1px var(--line), 0 8px 14px -10px rgb(20 30 90 / .4); }
.ct-visual { position: relative; height: 15rem; margin-top: 2rem; }
.ct-blob { position: absolute; border-radius: 40% 60% 55% 45%; background: linear-gradient(155deg, #6F88FF, var(--blue) 55%, #2A3FBF); box-shadow: inset 0 2px 0 rgb(255 255 255 / .4), 0 30px 50px -24px rgb(58 87 232 / .7); }
.ct-blob-1 { width: 9rem; height: 9rem; left: 8%; top: 2rem; transform: rotate(-12deg); }
.ct-blob-2 { width: 4.5rem; height: 4.5rem; right: 12%; bottom: .5rem; opacity: .85; border-radius: 22px; transform: rotate(14deg); }
/* Téléphone : cadre photo (css/tel.css), écran HTML dedans */
.ct-phone { position: absolute; animation: ct-sway 6s ease-in-out infinite; left: 50%; top: .9rem; --tw: 6.4rem; margin: 0; transform: translateX(-50%) rotate(6deg); }
.ct-screen { display: flex; flex-direction: column; gap: .45rem; padding: calc(var(--tel-safe) + .3rem) .55rem .75rem; }
.ct-app-head { height: 2.2rem; border-radius: 12px; background: linear-gradient(155deg, #6F88FF, var(--blue)); }
.ct-row { height: .55rem; border-radius: 99px; background: var(--line); }
.ct-row-short { width: 60%; }
.ct-slots { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.ct-slots i { height: 1.4rem; border-radius: 8px; background: #EEF1FF; }
.ct-slots i.on { background: var(--blue); }
.ct-cta-bar { margin-top: auto; height: 1.6rem; border-radius: 10px; background: var(--blue); box-shadow: 0 2px 0 #2338A8; }
.ct-bubble { position: absolute; animation: ct-float 4.5s ease-in-out infinite; left: 4%; bottom: 1.5rem; padding: .5rem .85rem; border-radius: 14px; background: #fff; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow); }

.ct-card { padding: 1.5rem; border-radius: 32px; background: var(--glass); border: 1px solid rgb(255 255 255 / .9); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); box-shadow: var(--shadow-up), inset 0 1px 0 #fff; min-width: 0; }
.ct-card .field label { font-weight: 600; }
.ct-card .field input, .ct-card .field textarea { width: 100%; background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.ct-card .field input:hover, .ct-card .field textarea:hover { border-color: rgb(58 87 232 / .4); }
.ct-card .field input:focus, .ct-card .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(58 87 232 / .18), inset 0 2px 4px rgb(20 30 90 / .06); }
.ct-card .field input:user-invalid, .ct-card .field textarea:user-invalid { border-color: #C62828; }
.ct-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.ct-chip { font: inherit; font-size: .85rem; font-weight: 500; padding: .35rem .8rem; border-radius: 999px; border: 0; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 0 0 1px var(--line), 0 6px 12px -8px rgb(20 30 90 / .4); transition: transform .2s, background .2s, color .2s; }
.ct-chip:hover { transform: translateY(-2px); }
.ct-chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ct-chip[aria-pressed="true"] { background: var(--blue); color: #fff; box-shadow: 0 2px 0 #2338A8, 0 10px 16px -8px rgb(58 87 232 / .7); }
.ct-alt { margin: 1.25rem 0 0; text-align: center; font-size: .92rem; color: var(--muted); }

@media (min-width: 900px) {
  .ct-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
  .ct-card { padding: 2.5rem; }
  .ct-visual { height: 17rem; }
}

/* À propos : portrait large, tableau visible */
.about-photo.about-photo-wide { max-width: 26rem; }
.about-photo-wide img { aspect-ratio: 3 / 2; object-position: 50% 30%; width: 100%; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 24rem 1fr; } }
@media (prefers-reduced-motion: reduce) { .ct-chip { transition: none; } }

/* Offre : titre centré, cartes alignées (listes et boutons sur les mêmes lignes) */
.section-head.center { margin-left: auto; margin-right: auto; }
.plan .offer-note { margin-top: .75rem; font-size: .8rem; line-height: 1.4; }
.plan > .btn { margin-top: auto; }
@media (min-width: 768px) {
  .plan-main, .reveal.is-in.plan-main { transform: none; }
  @supports (grid-template-rows: subgrid) {
    .plans { grid-template-rows: auto auto auto 1fr auto auto; row-gap: 0; }
    .plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; align-content: start; }
    .plan .offer-list { margin-bottom: 1.75rem; }
    .plan > .btn { margin-top: 0; align-self: end; }
  }
}

/* Turnstile centré dans le formulaire */
.cf-turnstile { display: flex; justify-content: center; }

/* Offre : engagements sous les formules */
.offre-trust { margin-top: 2.5rem; }

/* À propos : la carte photo s'incline en suivant la souris (js/tilt.js pose --rx et --ry) */
.about-grid { perspective: 900px; }
.about-photo.is-tilt { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.02); transition: transform .12s ease-out; will-change: transform; }
.about-photo.is-tilt.is-rest { transform: none; transition: transform .5s var(--ease); }

.ct-blob-1 { animation: ct-morph 9s ease-in-out infinite; }
.ct-blob-2 { animation: ct-float 5.5s ease-in-out infinite reverse; }
.ct-slots i.on { animation: ct-tap 3.2s ease-in-out infinite; }
.ct-bubble.pop { animation: ct-pop .5s cubic-bezier(.3,1.6,.5,1), ct-float 4.5s ease-in-out .5s infinite; }
@keyframes ct-float { 50% { transform: translateY(-10px); } }
@keyframes ct-sway { 0%, 100% { transform: translateX(-50%) rotate(6deg); } 50% { transform: translateX(-50%) rotate(2deg) translateY(-8px); } }
@keyframes ct-morph { 0%, 100% { border-radius: 40% 60% 55% 45%; transform: rotate(-12deg); } 50% { border-radius: 58% 42% 40% 60%; transform: rotate(4deg) scale(1.06); } }
@keyframes ct-tap { 0%, 60%, 100% { transform: none; } 70% { transform: scale(.88); } 80% { transform: scale(1.04); } }
@keyframes ct-pop { from { transform: scale(.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ct-visual * { animation: none !important; } }

.about-hero { text-align: center; }
.about-hero .lead { max-width: 36rem; margin-inline: auto; }
.about-hero .team-list { display: flex; justify-content: center; align-items: flex-end; gap: clamp(.75rem, 3vw, 2rem); margin: 3rem 0 0; padding: 0; list-style: none; }
.team-list li { display: grid; gap: .15rem; justify-items: center; }
.team-list img { display: block; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 22px; margin-bottom: .55rem; box-shadow: var(--shadow); }
.team-marco img { width: clamp(6.5rem, 26vw, 13rem); }
.team-theo img { width: clamp(6.5rem, 26vw, 13rem); transform: translateY(-1.5rem) rotate(-2deg); }
.team-pierre img { width: clamp(6.5rem, 26vw, 13rem); transform: rotate(2deg); }
.team-list span { color: var(--muted); font-size: .92rem; }
.about-hero { padding-bottom: 2.5rem; }
.about-why { padding: 0 0 5rem; }
.about-why .container { max-width: 44rem; text-align: center; }
.about-quote { position: relative; margin: 0; padding: 2.25rem clamp(1.25rem, 5vw, 3rem) 2rem; border-radius: 32px; background: var(--glass); border: 1px solid rgb(255 255 255 / .9); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); box-shadow: var(--shadow-up), inset 0 1px 0 #fff; text-align: left; }
.about-quote::before { content: "\201C"; position: absolute; top: .25rem; right: 1.75rem; font-family: Georgia, serif; font-size: 6rem; line-height: 1; color: var(--blue); opacity: .18; }
.about-quote h2 { margin: 0 0 1rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.about-quote p { margin: 0 0 .75rem; }
.about-sig { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; font-weight: 600; }
.about-sig img { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; }
.about-why .about-cta { justify-content: center; margin-top: 2rem; }
.team-list li.reveal.is-in:hover, .team-list li:hover { transform: none; box-shadow: none; background: none; }
.team-list img { transition: transform .35s var(--ease, ease), box-shadow .35s; }
@media (hover: hover) {
  .team-list li:hover img { transform: translateY(-6px) rotate(0) scale(1.04); box-shadow: var(--shadow-up); }
  .team-theo:hover img { transform: translateY(-1.9rem) rotate(0) scale(1.04); }
}
