/* Site vitrine WeCopro — charte de l'application : bleu canard, vert du « e », marine profond, sable */
@font-face { font-family: "Nunito"; src: url("polices/nunito-latin-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; src: url("polices/nunito-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("polices/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("polices/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --canard: #1b92a4;
  --canard-fonce: #146270;
  --canard-clair: #ecf8fa;
  --canard-trait: #cdeef3;
  --pousse: #8dc046;
  --pousse-fonce: #557828;
  --marine: #141f38;
  --marine-doux: #1c2d50;
  --sable: #faf9f6;
  --sable-trait: #e7e3da;
  --texte-doux: #4a5569;
  --titre: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --corps: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --largeur: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--sable); color: var(--marine); font: 400 1.0625rem/1.6 var(--corps); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--canard-fonce); text-underline-offset: 3px; }
a:hover { color: var(--canard); }
:focus-visible { outline: 3px solid var(--canard); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--titre); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 850; }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0; }
.conteneur { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lien-evitement { position: absolute; left: 1rem; top: -4rem; background: var(--marine); color: #fff; padding: .6rem 1rem; border-radius: 10px; z-index: 50; }
.lien-evitement:focus { top: 1rem; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .7rem 1.35rem; border-radius: 14px; font: 700 1rem/1.2 var(--corps); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.bouton-plein { background: var(--canard); color: #fff; }
.bouton-plein:hover { background: var(--canard-fonce); color: #fff; }
.bouton-contour { border-color: var(--marine); color: var(--marine); background: transparent; }
.bouton-contour:hover { background: var(--marine); color: #fff; }
.bouton-clair { background: #fff; color: var(--marine); }
.bouton-clair:hover { background: var(--canard-clair); color: var(--marine); }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 20; background: rgb(250 249 246 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.entete.defile { border-bottom-color: var(--sable-trait); }
.entete .conteneur { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.logo img { height: 2.4rem; width: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav a:not(.bouton) { color: var(--marine); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:not(.bouton):hover { color: var(--canard-fonce); }
.nav .bouton { min-height: 2.6rem; padding: .5rem 1.1rem; }
.menu-mobile { display: none; margin-left: auto; background: none; border: 2px solid var(--sable-trait); border-radius: 12px; padding: .5rem .8rem; font: 700 .95rem var(--corps); color: var(--marine); }
@media (max-width: 860px) {
  .menu-mobile { display: inline-flex; }
  .nav { display: none; position: absolute; inset: 4.5rem 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; background: var(--sable); border-bottom: 1px solid var(--sable-trait); }
  .nav.ouvert { display: flex; }
  .nav a:not(.bouton) { padding: .85rem 0; border-bottom: 1px solid var(--sable-trait); }
  .nav .bouton { margin-top: 1rem; }
}

/* Accroche */
.accroche { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.accroche .conteneur { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.accroche h1 { max-width: 13ch; }
.accroche h1 .vert { color: var(--canard); }
.accroche .intro { margin-top: 1.4rem; font-size: 1.2rem; color: var(--texte-doux); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.rassurance { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; padding: 0; list-style: none; color: var(--texte-doux); font-size: .95rem; }
.rassurance li { display: flex; align-items: center; gap: .45rem; }
.rassurance li::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--pousse); }

/* Téléphones */
.telephones { position: relative; height: clamp(32rem, 47vw, 39rem); }
/* Cadre d'iPhone : écran 390 × 844, barre d'état avec Dynamic Island, image de l'application en dessous */
.telephone { position: absolute; width: clamp(12.5rem, 19vw, 15.5rem); padding: .45rem; border-radius: 2.6rem; background: #0d1220; box-shadow: inset 0 0 0 2px #3a4258, 0 30px 60px -25px rgb(20 31 56 / .45); }
.telephone .ecran { position: relative; aspect-ratio: 390 / 844; border-radius: 2.15rem; overflow: hidden; background: #fff; padding-top: 12.5%; container-type: inline-size; }
.telephone .ecran::before { content: ""; position: absolute; top: 3.2%; left: 50%; translate: -50% 0; width: 32%; height: 4.4%; max-height: none; border-radius: 999px; background: #000; z-index: 1; }
.telephone .ecran::after { content: "9:41"; position: absolute; top: 3.6%; left: 10%; font: 700 4.1cqw/1 var(--corps); color: #000; letter-spacing: -.01em; }
.telephone .ecran img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.telephone.arriere { right: 2%; top: 0; transform: rotate(4deg); }
.telephone.avant { left: 6%; bottom: 0; transform: rotate(-3deg); }
.bulle { position: absolute; z-index: 2; background: #fff; border-radius: 16px; padding: .7rem .95rem; box-shadow: 0 12px 30px -12px rgb(20 31 56 / .3); font-size: .9rem; line-height: 1.35; max-width: 15rem; }
.bulle strong { display: block; font-family: var(--titre); font-size: 1rem; }
.bulle.notif { bottom: 9%; left: -2rem; border-left: 4px solid var(--pousse); }
@media (max-width: 860px) {
  .accroche .conteneur { grid-template-columns: 1fr; }
  .telephones { height: 33rem; max-width: 26rem; margin-inline: auto; width: 100%; }
  .telephones .telephone { width: 13rem; }
  .bulle.notif { left: -.25rem; bottom: 4%; }
}

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-claire { background: #fff; border-block: 1px solid var(--sable-trait); }
.chapeau { margin-top: 1rem; font-size: 1.15rem; color: var(--texte-doux); max-width: 44rem; }

/* Parcours d'une demande : reprend la barre de progression de l'application */
.parcours { margin-top: 3rem; }
.piste { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; list-style: none; padding: 0; margin: 0; counter-reset: etape; }
.piste li { counter-increment: etape; }
.piste .barre { height: .55rem; border-radius: 99px; background: var(--canard-trait); position: relative; overflow: hidden; }
.piste .barre::after { content: ""; position: absolute; inset: 0; background: var(--canard); transform-origin: left; transform: scaleX(0); transition: transform .5s ease; }
.parcours.anime .piste li .barre::after { transform: scaleX(1); }
.parcours.anime .piste li:nth-child(2) .barre::after { transition-delay: .35s; }
.parcours.anime .piste li:nth-child(3) .barre::after { transition-delay: .7s; }
.parcours.anime .piste li:nth-child(4) .barre::after { transition-delay: 1.05s; }
.parcours.anime .piste li:nth-child(5) .barre::after { transition-delay: 1.4s; background: var(--pousse); }
.piste h3 { margin-top: 1rem; font-size: 1.05rem; }
.piste h3::before { content: counter(etape); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-right: .5rem; border-radius: 50%; background: var(--marine); color: #fff; font-size: .85rem; }
.piste p { margin-top: .4rem; font-size: .95rem; color: var(--texte-doux); }
@media (max-width: 760px) {
  .piste { grid-template-columns: 1fr; gap: 1.4rem; }
  .piste li { display: grid; grid-template-columns: .55rem 1fr; column-gap: 1rem; }
  .piste .barre { grid-row: span 2; height: auto; min-height: 4.5rem; }
  .piste .barre::after { transform: scaleY(0); transform-origin: top; }
  .parcours.anime .piste li .barre::after { transform: scaleY(1); }
  .piste h3 { margin-top: 0; }
}

/* Pour qui : une rangée par rôle */
.roles { margin-top: 2.5rem; border-top: 2px solid var(--marine); }
.role { display: grid; grid-template-columns: minmax(12rem, 18rem) 1fr; gap: 1rem 3rem; padding: 2rem 0; border-bottom: 1px solid var(--sable-trait); }
.role h3 { font-size: 1.45rem; }
.role .qui { margin-top: .35rem; color: var(--texte-doux); font-size: .95rem; }
.role ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 2rem; }
.role li { padding-left: 1.4rem; position: relative; }
.role li::before { content: ""; position: absolute; left: 0; top: .62em; width: .6rem; height: .6rem; border-radius: 3px; background: var(--canard); }
@media (max-width: 760px) { .role { grid-template-columns: 1fr; } .role ul { grid-template-columns: 1fr; } }

/* Écrans */
.ecrans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; margin-top: 2.5rem; }
.ecrans figure { margin: 0; }
.ecrans .telephone { position: relative; width: 100%; max-width: 15rem; margin-inline: auto; box-shadow: inset 0 0 0 2px #3a4258, 0 22px 40px -22px rgb(20 31 56 / .45); }
.ecrans figcaption, .portables figcaption { margin-top: 1rem; font-weight: 600; text-align: center; }
.ecrans figcaption span, .portables figcaption span { display: block; font-weight: 400; color: var(--texte-doux); font-size: .92rem; }

/* Ordinateur portable : écran 1440 × 900 dans un cadre, socle avec encoche */
.portables { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; margin-top: 2.5rem; }
.portables figure { margin: 0; }
.portables .principal { grid-column: 1 / -1; max-width: 58rem; width: 100%; margin-inline: auto; }
.portable { padding: 0 6%; }
.portable .ecran-pc { background: #0d1220; padding: 2.2% 2.2% 3%; border-radius: 1.1rem 1.1rem 0 0; box-shadow: inset 0 0 0 2px #3a4258; position: relative; }
.portable .ecran-pc::before { content: ""; position: absolute; top: .9%; left: 50%; translate: -50% 0; width: .4rem; height: .4rem; border-radius: 50%; background: #2c3448; }
.portable .ecran-pc img { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 900; border-radius: 3px; }
.portable .socle { position: relative; height: clamp(.6rem, 1.4vw, 1rem); margin: 0 -7.5%; background: linear-gradient(#e2e5ea, #b4bac4); border-radius: 0 0 1.2rem 1.2rem / 0 0 .8rem .8rem; box-shadow: 0 22px 34px -20px rgb(20 31 56 / .55); }
.portable .socle::before { content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0; width: 14%; height: 45%; background: #9aa1ad; border-radius: 0 0 .6rem .6rem; }
@media (max-width: 760px) { .portables { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .ecrans { grid-template-columns: repeat(2, 1fr); } }
.note-contact { margin-top: 1rem; color: var(--texte-doux); }

/* Sécurité */
.securite { background: var(--marine); color: #e8edf6; }
.securite h2 { color: #fff; }
.securite .chapeau { color: #b9c4d8; }
.garanties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem 3rem; margin-top: 2.8rem; }
.garanties h3 { color: #fff; font-size: 1.15rem; padding-top: 1rem; border-top: 3px solid var(--canard); }
.garanties p { margin-top: .55rem; color: #b9c4d8; font-size: .97rem; }
@media (max-width: 860px) { .garanties { grid-template-columns: 1fr; } }

/* Questions */
.questions { margin-top: 2.2rem; max-width: 50rem; }
.questions details { border-bottom: 1px solid var(--sable-trait); }
.questions summary { cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; position: relative; font: 800 1.12rem/1.35 var(--titre); }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; position: absolute; right: .3rem; top: 1.05rem; font: 700 1.5rem/1 var(--corps); color: var(--canard); transition: transform .2s; }
.questions details[open] summary::after { transform: rotate(45deg); }
.questions details p { padding: 0 0 1.3rem; color: var(--texte-doux); max-width: 44rem; }

/* Contact */
.contact { background: var(--canard); color: #fff; border-radius: 2rem; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.contact h2 { color: #fff; }
.contact p { margin-top: .9rem; color: #e3f6f9; font-size: 1.1rem; }
.contact .actions { margin-top: 0; justify-content: flex-end; }
.contact .bouton-contour { border-color: #fff; color: #fff; }
.contact .bouton-contour:hover { background: #fff; color: var(--canard-fonce); }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } .contact .actions { justify-content: flex-start; } }

/* Pied de page */
.pied { padding: 3rem 0 2.5rem; color: var(--texte-doux); font-size: .93rem; }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 1.2rem 2.5rem; align-items: center; justify-content: space-between; }
.pied nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.pied a { color: var(--texte-doux); }

/* Pages de texte (mentions légales) */
.texte { padding: 3rem 0 4rem; }
.texte .conteneur { max-width: 46rem; }
.texte h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.texte h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.texte p, .texte ul { margin-top: .8rem; }
.texte .a-completer { background: #fff4d6; padding: 0 .3rem; border-radius: 4px; }

/* Formulaire de demande de démonstration */
.formulaire { margin-top: 2rem; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.champs .large { grid-column: 1 / -1; }
.formulaire label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.formulaire input, .formulaire select, .formulaire textarea { font: 400 1rem/1.4 var(--corps); color: var(--marine); background: #fff; border: 1.5px solid var(--sable-trait); border-radius: 12px; padding: .7rem .85rem; width: 100%; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: none; border-color: var(--canard); box-shadow: 0 0 0 4px var(--canard-clair); }
.formulaire .note { margin: 1.4rem 0 1.2rem; font-size: .9rem; color: var(--texte-doux); }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alerte { margin-top: 1.4rem; padding: .8rem 1rem; border-radius: 12px; background: #fde8e8; color: #9b1c1c; font-weight: 600; }
@media (max-width: 640px) { .champs { grid-template-columns: 1fr; } }
