:root { color-scheme: light; font-family: system-ui, sans-serif; color: #152c45; background: #eaf2f8; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 62rem; margin: auto; padding: clamp(1rem, 5vw, 3rem); }
body.access-page { min-height: 100vh; background-color: #104c91; background-image: linear-gradient(90deg, rgb(9 39 78 / 22%), rgb(9 39 78 / 8%)), url('fond-pole.webp?v=3.20.10'); background-position: center; background-size: cover; background-repeat: no-repeat; }
main.login-page { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; width: 100%; max-width: none; min-height: 100vh; padding: clamp(1rem, 5vw, 4rem); }
header { border-bottom: 1px solid #aebfd0; padding-bottom: .75rem; }
header.access-brand { display: flex; align-items: center; gap: 1.4rem; border: 0; padding: 0; color: white; text-shadow: 0 1px 5px #102f4b; }
header.access-brand h1 { margin: 0; color: white; font-size: clamp(1.45rem, 4vw, 2rem); }
header.access-brand img { width: 54px; height: 54px; object-fit: contain; }
header a { font-size: 1.25rem; font-weight: 750; }
header p { margin: .25rem 0 0; }
h1 { font-size: clamp(1.7rem, 5vw, 2.7rem); }
h2 { margin-top: 0; font-size: 1.25rem; }
a { color: #184a80; text-underline-offset: .2em; }
nav { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-bottom: 1.5rem; }
section { background: white; border: 1px solid #c8d8e6; border-radius: .65rem; margin: 0 0 1rem; padding: clamp(1rem, 3vw, 1.75rem); }
summary { cursor: pointer; padding: .8rem 0; font-weight: 680; }
details + details { border-top: 1px solid #d5e0e9; }
.document-copy { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 1rem; }
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
label { display: grid; gap: .3rem; font-weight: 600; }
input, select, textarea { font: inherit; color: inherit; width: 100%; padding: .6rem; border: 1px solid #7790aa; border-radius: .3rem; }
button, .button { display: inline-block; font: inherit; background: #184a80; color: white; border: 0; border-radius: .35rem; padding: .65rem .95rem; min-height: 44px; cursor: pointer; text-decoration: none; }
.button.full-width { width: 100%; text-align: center; }
.button.secondary { background: #fff; color: #184a80; border: 1px solid #7790aa; }
.access-card { width: min(400px, 100%); margin-inline: auto; background: rgb(255 255 255 / 96%); border: 1px solid rgb(255 255 255 / 72%); border-radius: .75rem; box-shadow: 0 1.5rem 4rem rgb(9 31 63 / 32%); padding: clamp(1.25rem, 4vw, 2rem); backdrop-filter: blur(8px); }
.access-help { margin: .55rem 0 0; text-align: center; color: #526a82; font-size: .92rem; font-weight: 400; line-height: 1.45; }
.login-divider { display: flex; align-items: center; gap: .75rem; margin: 1rem 0; color: #526a82; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: #c8d8e6; }
.form-actions { display: flex; justify-content: flex-end; align-items: end; }
.wide { grid-column: 1 / -1; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.error { border-left: .25rem solid #a32d29; padding-left: .75rem; }
@media (max-width: 36rem) { form { grid-template-columns: minmax(0, 1fr); } }

/* Espace invites uniquement: aucun changement de la page de connexion. */
.guest-page {background:#f4f7fa;color:#273b4e;font-family:Aptos,"Segoe UI",Arial,sans-serif;min-height:100vh;}
.guest-page main {max-width:72rem;padding:0 clamp(1rem,4vw,2.5rem) 2rem;}
.guest-header {display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin:0 calc(-1 * clamp(1rem,4vw,2.5rem)) 2rem;padding:1.15rem clamp(1rem,4vw,2.5rem);background:#142b45;color:white;border:0;border-bottom:4px solid #167d79;}
.guest-brand {display:flex;align-items:center;gap:14px;color:white!important;text-decoration:none;}
.guest-brand img {width:48px;height:48px;object-fit:contain;}
.guest-brand strong,.guest-brand small {display:block;}
.guest-brand small {font-size:.82rem;font-weight:500;color:#d9e8f4;}
.guest-home {color:white!important;font-size:.9rem!important;font-weight:600!important;}
.guest-page h1 {font-size:clamp(1.7rem,4vw,2.35rem);margin:.3rem 0 .5rem;color:#142b45;}
.guest-intro {margin:0 0 1.5rem;color:#51677a;}
.guest-page .guest-nav {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-bottom:1.5rem;}
.guest-nav a {display:flex;align-items:center;gap:1rem;min-height:114px;padding:1.2rem;background:#fff;border:1px solid #d5dee7;border-radius:9px;color:#142b45;text-decoration:none;box-shadow:0 2px 6px #142b4508;}
.guest-nav a:hover,.guest-nav a[aria-current] {border-color:#167d79;background:#eef7f6;}
.guest-nav svg {width:34px;height:34px;flex:0 0 34px;fill:none;stroke:#167d79;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.guest-nav strong,.guest-nav small {display:block;}.guest-nav strong {font-size:1.05rem;}.guest-nav small {color:#51677a;line-height:1.4;margin-top:.35rem;}
.guest-page section {border-color:#d5dee7;border-radius:9px;box-shadow:0 2px 8px #142b4508;}
.guest-page h2 {color:#142b45;font-size:1.2rem;}
.guest-stock {list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.65rem;padding:0;margin:1rem 0 1.6rem;}
.guest-stock li {display:flex;justify-content:space-between;align-items:center;gap:12px;background:#f4f7fa;border:1px solid #d5dee7;border-radius:6px;padding:.75rem;}
.guest-stock strong {color:#167d79;font-size:1.15rem;}.guest-stock small {display:block;color:#51677a;}
.guest-page form {gap:1rem;}.guest-page label {font-size:.95rem;}.guest-page input,.guest-page select,.guest-page textarea {border-color:#a9bac8;background:white;min-height:44px;}.guest-page button {background:#167d79;font-weight:650;}.guest-page button:hover {background:#105f5c;}
.guest-page :focus-visible {outline:3px solid #246b9a;outline-offset:3px;}
.guest-privacy {color:#51677a;font-size:.85rem;line-height:1.5;}.guest-footer {font-size:.85rem;color:#51677a;text-align:center;padding:1.2rem;border-top:1px solid #d5dee7;margin-top:1.5rem;}
.guest-page details {padding:.25rem .4rem;}.guest-page details summary {color:#246b9a;}.guest-page [role=status] {background:#eef7f6;padding:.85rem;border-radius:6px;}
@media(max-width:40rem){.guest-page .guest-nav,.guest-page form{grid-template-columns:1fr;}.guest-nav a{min-height:90px;}.guest-header{margin-bottom:1rem;}}

/* PORTAILSI_32014 : espace invites, sans incidence sur la connexion. */
body.guest-page {background:#f1f5f8; color:#152c45;}
body.guest-page main {max-width:70rem; padding:0 2rem 1.5rem;}
.guest-page .guest-header {position:relative; isolation:isolate; display:flex; align-items:center; justify-content:space-between; min-height:118px; margin:0 -2rem 2rem; padding:1.75rem 2rem; border:0; border-bottom:4px solid #167d79; border-radius:0 0 16px 16px; background:linear-gradient(100deg,#12375af5 10%,#12375ad9 50%,#12375a80),url('fond-pole.webp') center 60%/cover; box-shadow:0 10px 24px #142b4515;}
.guest-page .guest-brand {gap:14px;}
.guest-page .guest-brand img {width:56px;height:56px;padding:8px; border-radius:12px;background:#fff;}
.guest-page .guest-brand strong {font-size:1.5rem; font-weight:750;line-height:1.2;}
.guest-page .guest-brand small {color:#eef5fb; font-size:.86rem;}
.guest-page .guest-home {padding:.6rem .9rem; border:1px solid #ffffff85; border-radius:8px; text-decoration:none;}
.guest-page .guest-home:hover {background:#ffffff20;}
.guest-page h1 {font-size:clamp(1.7rem,3vw,2.4rem);line-height:1.15;letter-spacing:-.025em;margin:0 0 .55rem;}
.guest-page .guest-intro {max-width:53rem;line-height:1.6;margin-bottom:1.6rem;}
.guest-page .guest-nav {gap:1.1rem;margin:0 0 1.6rem;}
.guest-page .guest-nav a {position:relative;display:grid;grid-template-columns:58px minmax(0,1fr) 20px;align-items:center;gap:15px;min-height:145px;padding:1.25rem 1.1rem;border:1px solid #cddce8;border-top:4px solid #246b9a;border-radius:12px;box-shadow:0 5px 16px #142b450b;}
.guest-page .guest-nav a:nth-child(2) {border-top-color:#167d79;}
.guest-page .guest-nav a::after {content:'›';font-size:1.8rem;line-height:1;color:#246b9a;}
.guest-page .guest-nav a svg {display:block;width:52px;height:52px;padding:12px;border-radius:12px;background:#e8f1f8;stroke:#246b9a;}
.guest-page .guest-nav a:nth-child(2) svg {background:#e5f3f0;stroke:#167d79;}
.guest-page .guest-nav strong {font-size:1.1rem;line-height:1.3;}
.guest-page .guest-nav small {font-size:.87rem;line-height:1.5;margin-top:.4rem;}
.guest-page .guest-nav a[aria-current] {border-color:#167d79;background:#f0f9f7;box-shadow:0 0 0 1px #167d79;}
.guest-page .guest-nav a:hover {background:#f4f9fc;}
.guest-page section {padding:clamp(1.1rem,3vw,2rem);border:1px solid #d2dfe8;border-radius:14px;box-shadow:0 5px 20px #142b4509;}
.guest-page section h2 {font-size:1.3rem;letter-spacing:-.01em;margin:0 0 1rem;}
.guest-page .guest-stock {grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.8rem;margin:1rem 0 1.6rem;}
.guest-page .guest-stock li {padding:1rem;border-radius:9px;background:#f6fafb;border-color:#dbe5ed;}
.guest-page .guest-stock strong {display:inline-flex;justify-content:center;align-items:center;min-width:40px;height:40px;border-radius:50%;background:#e0f0ed;color:#105f5c;}
.guest-page form {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 1.2rem;}
.guest-page form label {font-size:.9rem;gap:.45rem;min-width:0;}
.guest-page form label.wide,.guest-page form .wide,.guest-page .form-actions {grid-column:1/-1!important;}
.guest-page input:not([type=hidden]),.guest-page select,.guest-page textarea {border:1px solid #b6c6d4;border-radius:7px;min-height:46px;padding:.7rem .8rem;font-weight:400;}
.guest-page textarea {min-height:100px;resize:vertical;}
.guest-page .guest-privacy {padding:.8rem 1rem;background:#f4f7fa;border-radius:8px;margin:.2rem 0;}
.guest-page .form-actions {border-top:1px solid #e1e9ee;padding-top:1rem;}
.guest-page .form-actions button {border-radius:8px;padding:.8rem 1.25rem;box-shadow:0 3px 8px #167d7925;}
.guest-page .guest-footer {margin-top:1rem;}
@media(max-width:42rem){body.guest-page main{padding:0 1rem 1rem;}.guest-page .guest-header{margin:0 -1rem 1.4rem;padding:1rem;min-height:94px;gap:.8rem;}.guest-page .guest-brand img{width:44px;height:44px;}.guest-page .guest-brand strong{font-size:1.2rem;}.guest-page .guest-brand small{font-size:.73rem;}.guest-page .guest-nav,.guest-page form{grid-template-columns:minmax(0,1fr);}.guest-page .guest-nav a{min-height:105px;grid-template-columns:48px minmax(0,1fr) 16px;}.guest-page .guest-nav a svg{width:44px;height:44px;padding:10px;}.guest-page .guest-home{font-size:.8rem!important;}}


/* Formulaire visible et non soumissible en cas de stock indisponible. */
.guest-page .guest-fields {border:0;padding:0;margin:0;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 1.2rem;}
.guest-page .guest-form-legend {font-weight:650;font-size:1rem;padding:0;margin:0 0 1rem;color:#142b45;}
.guest-page .guest-fields:disabled input,.guest-page .guest-fields:disabled select,.guest-page .guest-fields:disabled textarea {background:#f4f7fa;color:#51677a;cursor:not-allowed;}
.guest-page .guest-fields:disabled button {background:#66798b;cursor:not-allowed;box-shadow:none;}
@media(max-width:42rem){.guest-page .guest-fields{grid-template-columns:minmax(0,1fr);}}
