/* ==========================================================================
   Famille des Inébranlables — design system « Le Roc »
   1. Polices  2. Jetons  3. Base  4. Motifs  5. En-tête  6. Bandeau « En ce moment »
   7. Boutons  8. Titres  9. Hero  10. Piliers  11. Programme  12. Verset
   13. Bandeau d'appel  14. Témoignage  15. Formulaires  16. Divers  17. Pied de page
   18. Transitions & animations  19. Guide de style
   ========================================================================== */

/* 1. Polices auto-hébergées (aucune requête vers un tiers) ----------------- */
@font-face { font-family: "Anton"; src: url("../fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* 2. Jetons de design ------------------------------------------------------ */
:root {
    /* Motifs de fond intégrés (aucune requête supplémentaire) */
    --svg-topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' width='1200' height='600'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.2'%3E%3Cpath d='M0,-51C17,-48 33,-46 50,-45C67,-44 83,-46 100,-47C117,-47 133,-50 150,-49C167,-49 183,-47 200,-44C217,-42 233,-36 250,-34C267,-32 283,-30 300,-31C317,-32 333,-36 350,-41C367,-45 383,-52 400,-56C417,-61 433,-65 450,-67C467,-69 483,-69 500,-69C517,-69 533,-69 550,-68C567,-68 583,-68 600,-65C617,-63 633,-60 650,-55C667,-50 683,-43 700,-37C717,-32 733,-25 750,-23C767,-21 783,-21 800,-24C817,-26 833,-33 850,-38C867,-43 883,-50 900,-53C917,-57 933,-58 950,-59C967,-61 983,-59 1000,-60C1017,-60 1033,-61 1050,-61C1067,-62 1083,-63 1100,-63C1117,-63 1133,-61 1150,-59C1167,-57 1183,-53 1200,-51'/%3E%3Cpath d='M0,-18C17,-15 33,-12 50,-11C67,-11 83,-14 100,-16C117,-17 133,-21 150,-22C167,-23 183,-22 200,-21C217,-20 233,-16 250,-15C267,-14 283,-13 300,-14C317,-15 333,-19 350,-22C367,-25 383,-30 400,-33C417,-35 433,-37 450,-38C467,-39 483,-38 500,-39C517,-39 533,-40 550,-40C567,-40 583,-42 600,-40C617,-38 633,-35 650,-30C667,-26 683,-17 700,-12C717,-6 733,1 750,3C767,5 783,5 800,2C817,-1 833,-7 850,-12C867,-17 883,-24 900,-28C917,-32 933,-34 950,-36C967,-38 983,-39 1000,-40C1017,-41 1033,-43 1050,-43C1067,-44 1083,-44 1100,-42C1117,-40 1133,-36 1150,-32C1167,-28 1183,-22 1200,-18'/%3E%3Cpath d='M0,12C17,16 33,20 50,20C67,21 83,18 100,15C117,13 133,9 150,7C167,5 183,4 200,3C217,3 233,5 250,4C267,4 283,3 300,1C317,-0 333,-4 350,-6C367,-8 383,-10 400,-10C417,-11 433,-9 450,-9C467,-8 483,-7 500,-7C517,-7 533,-9 550,-10C567,-10 583,-13 600,-12C617,-11 633,-8 650,-4C667,-0 683,7 700,12C717,17 733,23 750,25C767,27 783,27 800,24C817,22 833,16 850,12C867,7 883,2 900,-1C917,-5 933,-8 950,-10C967,-13 983,-15 1000,-18C1017,-20 1033,-23 1050,-23C1067,-24 1083,-24 1100,-21C1117,-18 1133,-12 1150,-6C1167,-1 1183,7 1200,12'/%3E%3Cpath d='M0,40C17,45 33,48 50,49C67,50 83,47 100,45C117,43 133,38 150,36C167,33 183,31 200,30C217,28 233,27 250,25C267,23 283,20 300,17C317,15 333,11 350,10C367,9 383,10 400,11C417,13 433,17 450,19C467,22 483,25 500,25C517,26 533,24 550,23C567,22 583,19 600,19C617,19 633,21 650,23C667,26 683,33 700,36C717,40 733,44 750,45C767,46 783,45 800,43C817,41 833,37 850,33C867,30 883,27 900,24C917,22 933,20 950,17C967,14 983,11 1000,8C1017,5 1033,1 1050,-0C1067,-1 1083,-1 1100,2C1117,6 1133,13 1150,19C1167,25 1183,35 1200,40'/%3E%3Cpath d='M0,65C17,70 33,73 50,74C67,76 83,73 100,71C117,70 133,66 150,64C167,61 183,59 200,57C217,54 233,51 250,47C267,44 283,38 300,35C317,32 333,28 350,27C367,27 383,29 400,32C417,36 433,42 450,46C467,50 483,54 500,56C517,57 533,56 550,55C567,54 583,51 600,51C617,51 633,52 650,53C667,55 683,59 700,61C717,62 733,64 750,64C767,64 783,61 800,59C817,58 833,54 850,53C867,51 883,50 900,49C917,48 933,47 950,45C967,43 983,39 1000,36C1017,32 1033,27 1050,26C1067,25 1083,25 1100,28C1117,31 1133,39 1150,45C1167,51 1183,60 1200,65'/%3E%3Cpath d='M0,89C17,93 33,96 50,97C67,98 83,96 100,95C117,94 133,92 150,90C167,88 183,87 200,84C217,81 233,76 250,71C267,67 283,59 300,55C317,51 333,47 350,47C367,47 383,50 400,54C417,58 433,66 450,71C467,76 483,82 500,84C517,87 533,86 550,86C567,86 583,84 600,84C617,83 633,84 650,84C667,85 683,86 700,86C717,86 733,84 750,82C767,80 783,77 800,75C817,73 833,71 850,70C867,70 883,72 900,72C917,72 933,73 950,72C967,71 983,67 1000,65C1017,62 1033,57 1050,56C1067,55 1083,55 1100,58C1117,60 1133,67 1150,72C1167,77 1183,85 1200,89'/%3E%3Cpath d='M0,112C17,115 33,116 50,116C67,117 83,116 100,115C117,115 133,115 150,114C167,113 183,113 200,110C217,107 233,102 250,97C267,91 283,83 300,79C317,75 333,70 350,70C367,70 383,74 400,78C417,82 433,91 450,96C467,101 483,107 500,110C517,113 533,114 550,115C567,116 583,115 600,115C617,115 633,116 650,116C667,115 683,115 700,112C717,110 733,106 750,102C767,98 783,93 800,90C817,88 833,87 850,87C867,88 883,92 900,93C917,95 933,98 950,98C967,98 983,96 1000,94C1017,93 1033,89 1050,88C1067,87 1083,88 1100,90C1117,92 1133,97 1150,101C1167,105 1183,110 1200,112'/%3E%3Cpath d='M0,136C17,137 33,135 50,135C67,135 83,134 100,134C117,134 133,135 150,135C167,135 183,136 200,134C217,131 233,127 250,122C267,117 283,109 300,105C317,101 333,97 350,97C367,97 383,101 400,105C417,109 433,116 450,121C467,126 483,131 500,134C517,138 533,139 550,141C567,143 583,144 600,145C617,145 633,147 650,146C667,145 683,143 700,139C717,135 733,128 750,123C767,118 783,111 800,108C817,105 833,104 850,105C867,106 883,111 900,114C917,117 933,121 950,122C967,124 983,123 1000,123C1017,123 1033,121 1050,121C1067,121 1083,122 1100,124C1117,126 1133,130 1150,132C1167,134 1183,136 1200,136'/%3E%3Cpath d='M0,161C17,160 33,156 50,154C67,152 83,151 100,151C117,151 133,153 150,154C167,155 183,157 200,155C217,154 233,151 250,147C267,143 283,136 300,133C317,130 333,127 350,127C367,127 383,131 400,134C417,138 433,143 450,147C467,151 483,154 500,157C517,160 533,162 550,164C567,166 583,169 600,171C617,172 633,175 650,174C667,173 683,170 700,165C717,161 733,152 750,146C767,140 783,132 800,129C817,125 833,124 850,125C867,126 883,132 900,135C917,138 933,143 950,145C967,148 983,149 1000,150C1017,151 1033,151 1050,153C1067,154 1083,157 1100,159C1117,160 1133,163 1150,164C1167,164 1183,163 1200,161'/%3E%3Cpath d='M0,187C17,183 33,177 50,174C67,171 83,169 100,168C117,168 133,171 150,172C167,173 183,175 200,175C217,175 233,172 250,170C267,168 283,164 300,162C317,160 333,159 350,160C367,161 383,164 400,167C417,169 433,173 450,175C467,177 483,179 500,180C517,182 533,183 550,186C567,188 583,192 600,194C617,196 633,199 650,199C667,198 683,195 700,190C717,185 733,176 750,170C767,164 783,156 800,152C817,149 833,148 850,149C867,150 883,154 900,157C917,160 933,164 950,167C967,170 983,172 1000,175C1017,178 1033,180 1050,183C1067,186 1083,190 1100,192C1117,194 1133,196 1150,195C1167,194 1183,191 1200,187'/%3E%3Cpath d='M0,213C17,208 33,200 50,196C67,192 83,189 100,187C117,186 133,189 150,190C167,191 183,193 200,193C217,194 233,193 250,192C267,192 283,190 300,190C317,190 333,192 350,194C367,196 383,199 400,201C417,203 433,204 450,205C467,205 483,204 500,204C517,205 533,205 550,206C567,208 583,212 600,214C617,217 633,220 650,220C667,220 683,217 700,213C717,208 733,200 750,194C767,189 783,182 800,179C817,176 833,175 850,176C867,176 883,180 900,182C917,185 933,187 950,190C967,193 983,196 1000,199C1017,203 1033,207 1050,211C1067,215 1083,221 1100,223C1117,226 1133,227 1150,226C1167,224 1183,218 1200,213'/%3E%3Cpath d='M0,239C17,234 33,225 50,220C67,215 83,211 100,209C117,208 133,209 150,209C167,209 183,211 200,212C217,212 233,212 250,213C267,214 283,215 300,217C317,220 333,224 350,227C367,230 383,234 400,236C417,237 433,237 450,236C467,235 483,231 500,230C517,228 533,227 550,228C567,228 583,232 600,233C617,235 633,238 650,238C667,238 683,236 700,232C717,229 733,222 750,218C767,214 783,209 800,207C817,205 833,206 850,206C867,206 883,209 900,210C917,211 933,213 950,215C967,217 983,219 1000,223C1017,226 1033,232 1050,237C1067,242 1083,249 1100,251C1117,254 1133,255 1150,253C1167,251 1183,245 1200,239'/%3E%3Cpath d='M0,264C17,258 33,250 50,245C67,240 83,236 100,234C117,232 133,232 150,231C167,231 183,231 200,231C217,232 233,232 250,234C267,236 283,239 300,243C317,247 333,254 350,259C367,263 383,268 400,269C417,270 433,269 450,267C467,265 483,259 500,256C517,254 533,251 550,250C567,250 583,252 600,252C617,253 633,255 650,255C667,254 683,252 700,250C717,248 733,243 750,241C767,239 783,237 800,237C817,236 833,238 850,238C867,239 883,240 900,241C917,241 933,240 950,241C967,242 983,244 1000,247C1017,250 1033,256 1050,261C1067,266 1083,273 1100,276C1117,278 1133,279 1150,277C1167,275 1183,269 1200,264'/%3E%3Cpath d='M0,286C17,281 33,275 50,271C67,266 83,263 100,261C117,259 133,258 150,256C167,255 183,254 200,254C217,254 233,253 250,256C267,258 283,263 300,269C317,274 333,283 350,288C367,293 383,299 400,300C417,302 433,299 450,297C467,294 483,288 500,284C517,280 533,277 550,275C567,273 583,273 600,273C617,272 633,272 650,271C667,270 683,268 700,266C717,265 733,263 750,263C767,262 783,264 800,265C817,267 833,270 850,271C867,273 883,273 900,273C917,273 933,271 950,271C967,270 983,270 1000,273C1017,275 1033,280 1050,284C1067,288 1083,295 1100,297C1117,299 1133,300 1150,298C1167,296 1183,290 1200,286'/%3E%3Cpath d='M0,305C17,302 33,298 50,295C67,293 83,291 100,289C117,288 133,286 150,285C167,283 183,280 200,279C217,278 233,278 250,280C267,282 283,288 300,294C317,300 333,309 350,315C367,320 383,326 400,327C417,329 433,327 450,324C467,322 483,315 500,312C517,308 533,304 550,301C567,298 583,297 600,295C617,293 633,291 650,289C667,287 683,284 700,283C717,282 733,282 750,283C767,285 783,290 800,293C817,297 833,302 850,304C867,306 883,307 900,306C917,306 933,302 950,301C967,300 983,299 1000,300C1017,301 1033,305 1050,308C1067,310 1083,315 1100,316C1117,317 1133,317 1150,315C1167,314 1183,309 1200,305'/%3E%3Cpath d='M0,323C17,321 33,320 50,319C67,318 83,319 100,318C117,317 133,316 150,315C167,313 183,309 200,308C217,307 233,305 250,307C267,309 283,314 300,320C317,325 333,334 350,339C367,345 383,350 400,351C417,353 433,351 450,349C467,346 483,341 500,338C517,334 533,331 550,328C567,324 583,322 600,319C617,315 633,311 650,309C667,306 683,302 700,301C717,300 733,301 750,305C767,308 783,315 800,320C817,325 833,331 850,335C867,338 883,339 900,338C917,338 933,335 950,333C967,332 983,330 1000,330C1017,329 1033,331 1050,332C1067,333 1083,335 1100,335C1117,335 1133,333 1150,331C1167,329 1183,325 1200,323'/%3E%3Cpath d='M0,340C17,339 33,340 50,341C67,342 83,345 100,346C117,347 133,346 150,345C167,344 183,340 200,339C217,338 233,336 250,337C267,339 283,343 300,348C317,352 333,359 350,363C367,367 383,371 400,372C417,373 433,371 450,369C467,368 483,364 500,362C517,359 533,357 550,354C567,351 583,348 600,344C617,341 633,335 650,331C667,328 683,323 700,322C717,321 733,323 750,327C767,331 783,339 800,345C817,351 833,359 850,363C867,367 883,368 900,368C917,369 933,366 950,364C967,363 983,361 1000,360C1017,359 1033,359 1050,358C1067,357 1083,356 1100,354C1117,352 1133,348 1150,346C1167,343 1183,340 1200,340'/%3E%3Cpath d='M0,356C17,356 33,360 50,362C67,365 83,370 100,372C117,374 133,376 150,375C167,375 183,372 200,371C217,370 233,369 250,370C267,371 283,374 300,377C317,380 333,385 350,387C367,390 383,391 400,391C417,391 433,389 450,388C467,386 483,385 500,383C517,382 533,382 550,380C567,378 583,375 600,371C617,367 633,361 650,357C667,353 683,348 700,347C717,346 733,348 750,352C767,356 783,364 800,371C817,377 833,384 850,388C867,393 883,395 900,395C917,396 933,394 950,394C967,393 983,391 1000,390C1017,389 1033,388 1050,385C1067,383 1083,379 1100,375C1117,371 1133,365 1150,362C1167,359 1183,356 1200,356'/%3E%3Cpath d='M0,375C17,375 33,380 50,383C67,387 83,394 100,397C117,401 133,403 150,404C167,405 183,403 200,403C217,403 233,403 250,404C267,404 283,407 300,408C317,410 333,412 350,412C367,412 383,410 400,409C417,408 433,405 450,404C467,403 483,403 500,402C517,402 533,404 550,403C567,402 583,401 600,397C617,394 633,388 650,385C667,381 683,376 700,375C717,374 733,377 750,380C767,384 783,391 800,397C817,402 833,409 850,412C867,416 883,418 900,419C917,421 933,420 950,420C967,420 983,420 1000,419C1017,417 1033,416 1050,412C1067,409 1083,403 1100,398C1117,392 1133,385 1150,381C1167,377 1183,374 1200,375'/%3E%3Cpath d='M0,396C17,397 33,402 50,406C67,410 83,417 100,421C117,425 133,428 150,430C167,432 183,433 200,434C217,435 233,436 250,437C267,438 283,440 300,440C317,440 333,440 350,438C367,436 383,431 400,428C417,425 433,421 450,420C467,419 483,419 500,420C517,421 533,424 550,425C567,425 583,425 600,423C617,421 633,416 650,413C667,411 683,407 700,406C717,406 733,408 750,411C767,414 783,421 800,425C817,429 833,433 850,436C867,438 883,439 900,441C917,442 933,443 950,443C967,444 983,445 1000,445C1017,444 1033,442 1050,438C1067,435 1083,427 1100,421C1117,416 1133,407 1150,403C1167,399 1183,396 1200,396'/%3E%3Cpath d='M0,422C17,422 33,427 50,430C67,434 83,440 100,445C117,449 133,452 150,455C167,458 183,460 200,462C217,464 233,467 250,469C267,470 283,472 300,472C317,471 333,468 350,464C367,460 383,453 400,448C417,444 433,439 450,437C467,435 483,437 500,438C517,439 533,443 550,445C567,446 583,447 600,446C617,446 633,443 650,442C667,441 683,439 700,439C717,440 733,443 750,445C767,448 783,452 800,454C817,456 833,458 850,459C867,460 883,460 900,460C917,461 933,463 950,464C967,465 983,468 1000,468C1017,467 1033,466 1050,463C1067,459 1083,452 1100,446C1117,440 1133,432 1150,428C1167,424 1183,421 1200,422'/%3E%3Cpath d='M0,450C17,451 33,455 50,458C67,461 83,466 100,469C117,472 133,475 150,478C167,481 183,484 200,488C217,491 233,496 250,498C267,500 283,502 300,501C317,500 333,495 350,490C367,485 383,476 400,471C417,465 433,459 450,457C467,455 483,456 500,457C517,458 533,462 550,464C567,466 583,468 600,469C617,470 633,469 650,469C667,470 683,471 700,473C717,475 733,478 750,480C767,482 783,484 800,485C817,485 833,484 850,483C867,482 883,480 900,480C917,480 933,481 950,482C967,484 983,487 1000,488C1017,488 1033,488 1050,485C1067,482 1083,476 1100,471C1117,466 1133,458 1150,455C1167,452 1183,450 1200,450'/%3E%3Cpath d='M0,482C17,483 33,486 50,488C67,491 83,493 100,495C117,497 133,499 150,501C167,504 183,508 200,511C217,515 233,521 250,523C267,526 283,529 300,527C317,526 333,521 350,515C367,510 383,500 400,495C417,489 433,482 450,480C467,477 483,478 500,478C517,479 533,482 550,484C567,486 583,488 600,490C617,492 633,493 650,496C667,498 683,502 700,505C717,508 733,513 750,515C767,517 783,518 800,517C817,516 833,511 850,509C867,506 883,502 900,500C917,499 933,500 950,501C967,501 983,505 1000,505C1017,506 1033,506 1050,504C1067,502 1083,497 1100,494C1117,491 1133,486 1150,484C1167,482 1183,481 1200,482'/%3E%3Cpath d='M0,516C17,517 33,520 50,521C67,522 83,523 100,523C117,524 133,524 150,525C167,527 183,530 200,534C217,537 233,543 250,546C267,549 283,551 300,550C317,549 333,544 350,539C367,534 383,525 400,519C417,514 433,508 450,505C467,503 483,503 500,503C517,503 533,505 550,507C567,508 583,509 600,512C617,514 633,517 650,521C667,524 683,530 700,535C717,539 733,545 750,547C767,549 783,549 800,547C817,545 833,539 850,535C867,531 883,525 900,523C917,520 933,520 950,520C967,520 983,522 1000,523C1017,523 1033,523 1050,522C1067,521 1083,518 1100,516C1117,515 1133,513 1150,512C1167,512 1183,514 1200,516'/%3E%3Cpath d='M0,549C17,552 33,554 50,555C67,556 83,554 100,553C117,553 133,550 150,551C167,551 183,553 200,556C217,558 233,564 250,566C267,568 283,570 300,569C317,568 333,564 350,559C367,555 383,548 400,544C417,539 433,535 450,533C467,531 483,531 500,531C517,531 533,531 550,532C567,532 583,532 600,535C617,537 633,540 650,545C667,550 683,557 700,563C717,568 733,575 750,577C767,579 783,579 800,576C817,574 833,567 850,562C867,557 883,550 900,547C917,543 933,542 950,541C967,539 983,541 1000,540C1017,540 1033,539 1050,539C1067,538 1083,537 1100,537C1117,537 1133,539 1150,541C1167,543 1183,547 1200,549'/%3E%3Cpath d='M0,582C17,585 33,588 50,589C67,589 83,586 100,584C117,583 133,579 150,578C167,577 183,578 200,579C217,580 233,584 250,585C267,586 283,587 300,586C317,585 333,581 350,578C367,575 383,570 400,567C417,565 433,563 450,562C467,561 483,562 500,561C517,561 533,560 550,560C567,560 583,558 600,560C617,562 633,565 650,570C667,574 683,583 700,588C717,594 733,601 750,603C767,605 783,605 800,602C817,599 833,593 850,588C867,583 883,576 900,572C917,568 933,566 950,564C967,562 983,561 1000,560C1017,559 1033,557 1050,557C1067,556 1083,556 1100,558C1117,560 1133,564 1150,568C1167,572 1183,578 1200,582'/%3E%3Cpath d='M0,612C17,616 33,620 50,620C67,621 83,618 100,615C117,613 133,609 150,607C167,605 183,604 200,603C217,603 233,605 250,604C267,604 283,603 300,601C317,600 333,596 350,594C367,592 383,590 400,590C417,589 433,591 450,591C467,592 483,593 500,593C517,593 533,591 550,590C567,590 583,587 600,588C617,589 633,592 650,596C667,600 683,607 700,612C717,617 733,623 750,625C767,627 783,627 800,624C817,622 833,616 850,612C867,607 883,602 900,599C917,595 933,592 950,590C967,587 983,585 1000,582C1017,580 1033,577 1050,577C1067,576 1083,576 1100,579C1117,582 1133,588 1150,594C1167,599 1183,607 1200,612'/%3E%3Cpath d='M0,640C17,645 33,648 50,649C67,650 83,647 100,645C117,643 133,638 150,636C167,633 183,631 200,630C217,628 233,627 250,625C267,623 283,620 300,617C317,615 333,611 350,610C367,609 383,610 400,611C417,613 433,617 450,619C467,622 483,625 500,625C517,626 533,624 550,623C567,622 583,619 600,619C617,619 633,621 650,623C667,626 683,633 700,636C717,640 733,644 750,645C767,646 783,645 800,643C817,641 833,637 850,633C867,630 883,627 900,624C917,622 933,620 950,617C967,614 983,611 1000,608C1017,605 1033,601 1050,600C1067,599 1083,599 1100,602C1117,606 1133,613 1150,619C1167,625 1183,635 1200,640'/%3E%3C/g%3E%3C/svg%3E");
    --svg-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' width='48' height='48'%3E%3Cg fill='%23000'%3E%3Crect x='11' y='4' width='2.4' height='16' rx='.6'/%3E%3Crect x='5.6' y='8.6' width='13.2' height='2.4' rx='.6'/%3E%3Crect x='35' y='28' width='2.4' height='16' rx='.6'/%3E%3Crect x='29.6' y='32.6' width='13.2' height='2.4' rx='.6'/%3E%3C/g%3E%3C/svg%3E");
    /* Couleurs de marque (logo, maillots, PDF) */
    --red: #D7192A;
    --red-deep: #A50F1E;
    --burgundy: #7A0F17;
    --gold: #C9A24A;
    --gold-light: #E7C978;
    --gold-deep: #7A5C14;   /* or lisible sur fond clair et sable (contraste AA ≥ 4,5:1) */
    --cream: #FAF5EC;
    --sand: #F1E7D6;
    --ink: #0E0B0A;
    --ink-2: #1A1413;
    --on-dark: #F3EDE4;
    --on-dark-muted: #B3A89C;

    /* Rôles — thème clair */
    --bg: var(--cream);
    --bg-alt: var(--sand);
    --surface: #FFFFFF;
    --surface-2: #FFFCF7;
    --text: #1B1715;
    --text-muted: #6B625A;
    --heading: var(--burgundy);
    --accent-text: #B81220;   /* rouge texte : AA sur crème et sable (les boutons gardent --red) */
    --gold-text: var(--gold-deep);
    --border: #E5D9C6;
    --pattern: var(--burgundy);
    --shadow: 0 1px 2px rgb(60 30 10 / .06), 0 10px 28px -10px rgb(60 30 10 / .22);
    --shadow-lg: 0 2px 4px rgb(60 30 10 / .06), 0 24px 48px -16px rgb(60 30 10 / .3);
    --sun-display: none;
    --moon-display: block;

    /* Typographie */
    --font-display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
    --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Espaces, formes, mouvement */
    --container: 76rem;
    --gutter: clamp(1rem, 4vw, 2rem);
    --section: clamp(4rem, 10vw, 7.5rem);
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --header-h: 4.5rem;

    color-scheme: light;
}

/* Thème sombre : préférence système, sauf choix explicite « clair » */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0E0B0A; --bg-alt: #151010; --surface: #1B1514; --surface-2: #211A18;
        --text: #F3EDE4; --text-muted: #B3A89C; --heading: #F6EBDD;
        --accent-text: #FF5A66; --gold-text: var(--gold); --border: #2F2624; --pattern: var(--gold);
        --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -12px rgb(0 0 0 / .7);
        --shadow-lg: 0 2px 4px rgb(0 0 0 / .4), 0 28px 56px -16px rgb(0 0 0 / .8);
        --sun-display: block; --moon-display: none;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #0E0B0A; --bg-alt: #151010; --surface: #1B1514; --surface-2: #211A18;
    --text: #F3EDE4; --text-muted: #B3A89C; --heading: #F6EBDD;
    --accent-text: #FF5A66; --gold-text: var(--gold); --border: #2F2624; --pattern: var(--gold);
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -12px rgb(0 0 0 / .7);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .4), 0 28px 56px -16px rgb(0 0 0 / .8);
    --sun-display: block; --moon-display: none;
    color-scheme: dark;
}

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font: 400 1.0625rem/1.65 var(--font-body);
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
/* Grain papier, très léger, sur tout le site */
body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p, li { text-wrap: pretty; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.narrow { max-width: 44rem; }
.center { text-align: center; margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 200; padding: .7rem 1.1rem; background: var(--ink); color: #fff; border-radius: var(--radius-sm); transition: top .2s; }
.skip-link:focus { top: 1rem; }

.section { position: relative; isolation: isolate; padding-block: var(--section); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: var(--on-dark); --heading: var(--on-dark); --text-muted: var(--on-dark-muted); --gold-text: var(--gold); --accent-text: #FF5A66; --pattern: var(--gold); }

/* 4. Motifs de fond (masques SVG → couleur pilotée par le thème) ---------- */
.pattern-cross, .pattern-topo { position: relative; isolation: isolate; overflow: hidden; }
.pattern-cross::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--pattern-color, var(--pattern)); opacity: var(--pattern-opacity, .07);
    -webkit-mask: var(--svg-cross) 0 0 / 46px 46px repeat;
            mask: var(--svg-cross) 0 0 / 46px 46px repeat;
}
.pattern-topo::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 600px); z-index: -1; pointer-events: none;
    background: var(--topo-color, var(--pattern)); opacity: var(--topo-opacity, .09);
    -webkit-mask: var(--svg-topo) 0 0 / 1200px 600px repeat;
            mask: var(--svg-topo) 0 0 / 1200px 600px repeat;
    animation: topo-drift 140s linear infinite;
    will-change: transform;
}
@keyframes topo-drift { to { transform: translateY(-600px); } }

/* Rayons dorés du blason */
.rays {
    position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 1;
    width: var(--rays-size, 70rem); left: 50%; top: var(--rays-top, 0); translate: -50% -50%;
    background: repeating-conic-gradient(from 0deg, rgb(201 162 74 / .35) 0deg 1.4deg, transparent 1.4deg 9deg);
    -webkit-mask: radial-gradient(closest-side, #000 8%, rgb(0 0 0 / .6) 35%, transparent 72%);
            mask: radial-gradient(closest-side, #000 8%, rgb(0 0 0 / .6) 35%, transparent 72%);
    animation: rays-turn 180s linear infinite;
}
@keyframes rays-turn { to { rotate: 360deg; } }

/* 5. En-tête ---------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
            backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
    view-transition-name: site-header;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -18px rgb(0 0 0 / .5); }
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand__badge {
    display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #2a1512, var(--ink) 70%);
    box-shadow: inset 0 0 0 1.5px rgb(201 162 74 / .55), 0 4px 14px -6px rgb(0 0 0 / .6);
    view-transition-name: brand-badge;
}
.brand__badge img { width: 2.15rem; height: auto; }
.brand__text { display: flex; flex-direction: column; gap: .3rem; line-height: 1; }
.brand__small { font-size: .62rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); }
.brand__name { font: 400 1.45rem/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; color: var(--heading); }

.nav__list { display: flex; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.nav__list a {
    position: relative; display: block; padding: .5rem .8rem; border-radius: 999px;
    color: var(--text-muted); font-size: .94rem; font-weight: 500; text-decoration: none; white-space: nowrap;
    transition: color .2s, background-color .2s;
}
.nav__list a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.nav__list a[aria-current="page"] { color: var(--accent-text); }
.nav__list a[aria-current="page"]::after {
    content: ""; position: absolute; left: 50%; bottom: .2rem; width: 5px; height: 5px; translate: -50% 0;
    border-radius: 50%; background: currentColor;
}
.nav__cta { display: none; }

.header-actions { display: flex; align-items: center; gap: .4rem; }
.icon-btn {
    display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0;
    border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text);
    cursor: pointer; transition: transform .2s var(--ease), border-color .2s;
}
.icon-btn:hover { border-color: var(--gold); transform: rotate(-8deg); }
.icon-btn .icon { width: 1.15rem; height: 1.15rem; }
.theme-toggle .i-sun { display: var(--sun-display); }
.theme-toggle .i-moon { display: var(--moon-display); }
.menu-btn { display: none; }
.menu-btn .i-close, .site-header[data-open] .menu-btn .i-menu { display: none; }
.site-header[data-open] .menu-btn .i-close { display: block; }

@media (max-width: 960px) {
    .menu-btn { display: inline-grid; }
    .header-actions .header-cta { display: none; }
    .js .nav {
        position: absolute; inset: 100% 0 auto; padding: 1rem var(--gutter) 1.5rem;
        background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
        opacity: 0; visibility: hidden; translate: 0 -.5rem;
        transition: opacity .25s var(--ease), translate .25s var(--ease), visibility 0s .25s;
    }
    .js .site-header[data-open] .nav { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
    .js .nav__list { flex-direction: column; gap: .25rem; }
    .js .nav__list a { padding: .85rem 1rem; font-size: 1.1rem; border-radius: var(--radius-sm); }
    .js .nav__list a[aria-current="page"]::after { left: auto; right: 1rem; bottom: 50%; translate: 0 50%; }
    .js .nav__cta { display: block; margin-top: .75rem; }
    .js .nav__cta .btn { width: 100%; }
    /* Sans JavaScript : la navigation reste visible, sur sa propre ligne */
    html:not(.js) .site-header__inner { flex-wrap: wrap; }
    html:not(.js) .nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: .5rem; }
}
body.menu-open { overflow: hidden; }

/* 6. Bandeau « En ce moment » --------------------------------------------- */
.now-bar { background: var(--ink); color: var(--on-dark); font-size: .9rem; view-transition-name: now-bar; }
.now-bar__inner { display: flex; align-items: center; gap: .75rem; min-height: 2.6rem; padding-block: .4rem; }
.now-bar__dot { position: relative; width: .6rem; height: .6rem; flex: none; border-radius: 50%; background: var(--gold); }
.now-bar--live .now-bar__dot { background: #FF3B4A; }
.now-bar--live .now-bar__dot::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
    animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse { to { transform: scale(3); opacity: 0; } }
.now-bar__state { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; color: var(--gold); }
.now-bar--live .now-bar__state { color: #FF6B77; }
.now-bar__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-bar__text strong { font-weight: 600; }
.now-bar__when { color: var(--on-dark-muted); }
.now-bar__link { display: inline-flex; align-items: center; gap: .3rem; margin-left: auto; flex: none; color: var(--gold-light); font-weight: 600; text-decoration: none; }
.now-bar__link:hover { text-decoration: underline; }
@media (max-width: 640px) { .now-bar__link span { display: none; } .now-bar__when { display: block; } .now-bar__text { white-space: normal; } }

/* 7. Boutons ------------------------------------------------------------------ */
.btn {
    --btn-bg: var(--red); --btn-fg: #fff; --btn-border: transparent;
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 3rem; padding: .8rem 1.5rem; border: 2px solid var(--btn-border); border-radius: 999px;
    background: var(--btn-bg); color: var(--btn-fg);
    font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .2s, color .2s;
}
.btn::before { /* reflet doré au survol */
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .28) 50%, transparent 70%);
    translate: -120% 0; transition: translate .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--btn-bg) 80%, black); }
.btn:hover::before { translate: 120% 0; }
.btn:active { transform: translateY(0); }
.btn .icon { transition: translate .3s var(--ease); }
.btn:hover .icon { translate: 3px 0; }
.btn--primary { --btn-bg: var(--red); }
.btn--primary:hover { --btn-bg: var(--red-deep); }
.btn--gold { --btn-bg: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep)); --btn-fg: var(--ink); background: var(--btn-bg); }
.btn--gold:hover { box-shadow: 0 10px 28px -10px rgb(201 162 74 / .8); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--heading); --btn-border: currentColor; }
.btn--ghost:hover { --btn-bg: color-mix(in srgb, var(--heading) 8%, transparent); box-shadow: none; }
.btn--light { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-border: rgb(243 237 228 / .45); }
.btn--light:hover { --btn-border: var(--gold); --btn-fg: var(--gold-light); box-shadow: none; }
.btn--sm { min-height: 2.5rem; padding: .5rem 1.1rem; font-size: .9rem; }
.btn--lg { min-height: 3.5rem; padding: 1rem 2rem; font-size: 1.08rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent-text); font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: translate .3s var(--ease); }
.link-arrow:hover .icon { translate: 4px 0; }

/* 8. Titres de section --------------------------------------------------------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1rem;
    color: var(--gold-text); font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; }
.center .eyebrow::after, .eyebrow--center::after { content: ""; width: 1.6rem; height: 2px; background: currentColor; }
.display, .section__title {
    color: var(--heading); font-family: var(--font-display); font-weight: 400;
    line-height: .98; letter-spacing: .005em; text-transform: uppercase;
}
.section__title { font-size: clamp(2.3rem, 5.5vw, 4rem); margin-bottom: 1.25rem; }
.section__title em { font-style: normal; color: var(--accent-text); }
.section__lead { max-width: 40rem; font: italic 400 clamp(1.1rem, 2vw, 1.3rem)/1.55 var(--font-serif); color: var(--text-muted); }
.center .section__lead { margin-inline: auto; }
.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__foot { margin-top: 2.5rem; }

/* 9. Hero ----------------------------------------------------------------------- */
.hero {
    --pattern: var(--red); --pattern-opacity: .09; --topo-color: var(--gold); --topo-opacity: .1;
    position: relative; isolation: isolate; overflow: hidden;
    padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5rem);
    background: radial-gradient(120% 80% at 50% 0%, #3a0f14 0%, #1a0c0c 45%, var(--ink) 75%);
    color: var(--on-dark); text-align: center;
}
.hero__quake { position: absolute; inset: -2rem; z-index: -1; animation: quake 1.25s .35s var(--ease) both; }
.hero__quake.pattern-cross, .hero__quake.pattern-topo { position: absolute; overflow: visible; }
.hero .rays { --rays-size: min(80rem, 190vw); --rays-top: 9rem; }
.hero__logo {
    width: clamp(9rem, 22vw, 14rem); margin: 0 auto 1.5rem;
    filter: drop-shadow(0 10px 40px rgb(201 162 74 / .35));
    animation: anchor 1.25s .35s var(--ease) both;
    view-transition-name: hero-logo;
}
.hero .eyebrow { color: var(--gold); }
.hero__title { margin: 0 0 1.25rem; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: 1; }
.hero__title-small { display: block; font-size: clamp(1.2rem, 3vw, 1.8rem); letter-spacing: .35em; color: var(--gold-light); margin-bottom: .4rem; }
.hero__title-main {
    display: block; padding-top: .12em; font-size: clamp(2.9rem, 13vw, 9.5rem); letter-spacing: .01em; line-height: 1;
    background: linear-gradient(180deg, #FFF8EC 30%, #E9D3A6 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
    text-shadow: 0 0 60px rgb(215 25 42 / .25);
}
.hero__motto { max-width: 40rem; margin: 0 auto 2.25rem; font: italic 400 clamp(1.15rem, 2.4vw, 1.45rem)/1.5 var(--font-serif); color: var(--on-dark-muted); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.hero__stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1px;
    max-width: 52rem; margin: clamp(3rem, 7vw, 4.5rem) auto 0; padding: 0; list-style: none;
    border: 1px solid rgb(201 162 74 / .25); border-radius: var(--radius); overflow: hidden;
    background: rgb(201 162 74 / .25);
}
.hero__stats li { padding: 1.1rem 1rem; background: rgb(14 11 10 / .75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero__stats strong { display: block; font: 400 clamp(1.8rem, 4vw, 2.4rem)/1 var(--font-display); color: var(--gold-light); }
.hero__stats span { font-size: .85rem; color: var(--on-dark-muted); }

/* Signature : tout tremble… sauf le nom. */
@keyframes quake {
    0% { transform: translate(0, 0); }
    8% { transform: translate(-6px, 3px) rotate(-.35deg); }
    16% { transform: translate(6px, -4px) rotate(.35deg); }
    24% { transform: translate(-5px, -2px) rotate(-.25deg); }
    32% { transform: translate(5px, 3px) rotate(.2deg); }
    42% { transform: translate(-3px, 1px); }
    55% { transform: translate(2px, -1px); }
    70% { transform: translate(-1px, 0); }
    100% { transform: translate(0, 0); }
}
@keyframes anchor {
    0% { opacity: 0; transform: translateY(-14px) scale(.94); }
    60% { opacity: 1; transform: translateY(2px) scale(1.01); }
    100% { opacity: 1; transform: none; }
}

/* 10. Piliers ---------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.pillar {
    position: relative; display: flex; flex-direction: column; gap: .75rem; padding: 2rem 1.75rem 1.75rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; isolation: isolate;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.pillar::before { /* bande rouge, rappel du maillot */
    content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--red), var(--burgundy));
    transform-origin: left; transform: scaleX(.25); transition: transform .6s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--gold) 50%, var(--border)); }
.pillar:hover::before { transform: scaleX(1); }
.pillar__icon {
    display: grid; place-items: center; width: 3.3rem; height: 3.3rem; border-radius: 1rem;
    background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--accent-text);
}
.pillar__icon .icon { width: 1.7rem; height: 1.7rem; }
.pillar__num { position: absolute; top: 1rem; right: 1.25rem; font: 400 3.5rem/1 var(--font-display); color: color-mix(in srgb, var(--gold) 28%, transparent); }
.pillar__title { font-size: 1.12rem; font-weight: 700; letter-spacing: .01em; color: var(--heading); }
.pillar p { margin: 0; color: var(--text-muted); }

/* 11. Programme (cartes) --------------------------------------------------------- */
.agenda { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.agenda-card {
    position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
    padding: 1.35rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.agenda-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.agenda-card__day {
    display: grid; place-items: center; width: 5.6rem; min-height: 4.6rem; padding: .45rem;
    border-radius: 14px; background: var(--burgundy); color: #fff; text-align: center;
    font: 700 .7rem/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; overflow-wrap: anywhere;
}
.agenda-card:nth-child(even) .agenda-card__day { background: var(--red); }
.agenda-card__title { margin-bottom: .2rem; font-size: 1.05rem; font-weight: 700; color: var(--heading); }
.agenda-card__desc { margin: 0 0 .6rem; font-size: .93rem; color: var(--text-muted); }
.agenda-card__meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 0; padding: 0; list-style: none; font-size: .88rem; font-weight: 600; }
.agenda-card__meta li { display: inline-flex; align-items: center; gap: .35rem; }
.agenda-card__meta .icon { color: var(--gold-text); width: 1.05rem; height: 1.05rem; }
.agenda-card.is-live { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent); }
.agenda-card.is-live::after {
    content: "En direct"; position: absolute; top: -.7rem; right: 1rem; padding: .15rem .6rem; border-radius: 999px;
    background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

/* 12. Verset ------------------------------------------------------------------- */
.verse {
    --pattern: var(--gold); --pattern-opacity: .06;
    position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(5rem, 12vw, 8rem);
    background: radial-gradient(90% 120% at 50% 100%, #5a0d14 0%, var(--burgundy) 30%, #3d080c 100%);
    color: var(--on-dark); text-align: center;
}
.verse .rays { --rays-size: 64rem; --rays-top: 100%; opacity: .7; }
.verse__mark { width: 3rem; height: 3rem; margin: 0 auto 1.5rem; color: var(--gold); fill: currentColor; stroke: none; }
.verse__text { max-width: 54rem; margin: 0 auto 1.75rem; font: italic 400 clamp(1.4rem, 3.2vw, 2.25rem)/1.45 var(--font-serif); }
.verse__text strong { font-weight: 600; color: var(--gold-light); }
.verse__ref { margin: 0; color: var(--gold); font-weight: 700; letter-spacing: .24em; text-transform: uppercase; font-size: .82rem; }

/* 13. Bandeau d'appel (rejoindre) --------------------------------------------- */
.cta-band {
    --pattern: #fff; --pattern-opacity: .1;
    position: relative; isolation: isolate; overflow: hidden;
    padding: clamp(2.5rem, 6vw, 4.5rem); border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 55%, var(--burgundy) 100%);
    color: #fff; box-shadow: var(--shadow-lg);
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
}
.cta-band .section__title { color: #fff; margin-bottom: .75rem; }
.cta-band .eyebrow { color: var(--gold-light); }
.cta-band p { color: rgb(255 255 255 / .88); max-width: 34rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }
.cta-band .btn--light { --btn-border: rgb(255 255 255 / .6); --btn-fg: #fff; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } .cta-band__actions { justify-content: flex-start; } }

/* 14. Témoignage ------------------------------------------------------------------ */
.testimony {
    position: relative; display: flex; flex-direction: column; gap: 1.25rem; height: 100%;
    padding: 2.25rem 2rem 1.75rem; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.testimony__mark { width: 2.4rem; height: 2.4rem; color: var(--gold); fill: currentColor; stroke: none; }
.testimony__text { margin: 0; font: 400 1.12rem/1.6 var(--font-serif); }
.testimony__author { display: flex; align-items: center; gap: .75rem; margin-top: auto; font-weight: 700; color: var(--accent-text); font-style: italic; }
.testimony__author::before { content: ""; width: 2rem; height: 2px; background: currentColor; }
.testimony__num {
    position: absolute; top: -.9rem; left: 1.75rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem;
    border-radius: 10px; background: #FFD95A; color: var(--red); font: 400 1.2rem/1 var(--font-display);
}

/* 15. Formulaires ---------------------------------------------------------------- */
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field__label { font-weight: 600; font-size: .95rem; }
.field__label .req { color: var(--accent-text); }
.field__help { margin: 0; font-size: .85rem; color: var(--text-muted); }
.input, .select, .textarea {
    width: 100%; min-height: 3.1rem; padding: .75rem 1rem;
    border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text);
    font: inherit; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 9rem; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--gold) 60%, var(--border)); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 22%, transparent); }
.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--accent-text); }
.field__error { display: flex; align-items: center; gap: .35rem; margin: 0; font-size: .87rem; font-weight: 600; color: var(--accent-text); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--red); flex: none; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .75rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__box {
    display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1.1rem; border: 1.5px solid var(--border);
    border-radius: 14px; background: var(--surface-2); transition: border-color .2s, box-shadow .2s, transform .3s var(--ease);
}
.choice__box .icon { width: 1.6rem; height: 1.6rem; color: var(--accent-text); }
.choice input:checked + .choice__box { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent); transform: translateY(-2px); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--gold); outline-offset: 2px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* 16. Divers ----------------------------------------------------------------------- */
.callout { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.5rem; border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); background: var(--surface); }
.callout .icon { color: var(--gold-text); margin-top: .2rem; }
.callout p:last-child { margin: 0; }
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-weight: 500; }
.alert--success { background: color-mix(in srgb, #1f9d55 12%, var(--surface)); border: 1px solid color-mix(in srgb, #1f9d55 40%, transparent); }
.alert--error { background: color-mix(in srgb, var(--red) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--red) 40%, transparent); }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold-text); }
.badge--red { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--accent-text); }
.divider-cross { display: flex; align-items: center; gap: 1rem; color: var(--gold-text); margin: 2rem auto; max-width: 20rem; }
.divider-cross::before, .divider-cross::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .5; }

/* 17. Pied de page -------------------------------------------------------------------- */
.site-footer {
    --pattern: var(--gold); --pattern-opacity: .04;
    position: relative; isolation: isolate; overflow: hidden;
    padding-block: clamp(3.5rem, 8vw, 5rem) 2rem; background: var(--ink); color: var(--on-dark-muted); font-size: .95rem;
}
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer__brand { display: flex; gap: 1.25rem; align-items: flex-start; }
.site-footer__brand img { width: 6.5rem; flex: none; }
.site-footer__motto { margin: .5rem 0 0; color: var(--gold-light); font: italic 400 1.15rem/1.45 var(--font-serif); }
.site-footer h2 { margin-bottom: 1rem; color: var(--on-dark); font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(243 237 228 / .12); font-size: .85rem; }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* 18. Transitions de pages & animations ----------------------------------------------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* Apparition au défilement, sans JavaScript (navigateurs récents) */
@supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
    .reveal-stagger > * { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 20%; }
    .reveal-stagger > :nth-child(2) { animation-range: entry 5% cover 24%; }
    .reveal-stagger > :nth-child(3) { animation-range: entry 10% cover 28%; }
    .reveal-stagger > :nth-child(4) { animation-range: entry 15% cover 32%; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    @view-transition { navigation: none; }
}

/* 19. Guide de style (local uniquement) ------------------------------------------------ */
.sg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.sg-swatch { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); font-size: .85rem; }
.sg-swatch__color { height: 4.5rem; }
.sg-swatch p { margin: 0; padding: .6rem .75rem; }
.sg-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.sg-block { margin-bottom: 4rem; }
.sg-block > h2 { margin-bottom: 1.25rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }
.sg-pattern { height: 10rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.sg-icons { display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--heading); }
.sg-icons figure { display: grid; justify-items: center; gap: .4rem; margin: 0; font-size: .75rem; color: var(--text-muted); }
.sg-icons .icon { width: 1.75rem; height: 1.75rem; color: var(--heading); }
.debug { margin-top: 2rem; padding: 1rem; background: var(--surface); border: 1px solid var(--red); border-radius: 8px; font-size: .85rem; }
.debug pre { overflow-x: auto; white-space: pre-wrap; }
.now-bar__text, .site-footer p { margin: 0; }
.site-footer__brand p + .site-footer__motto { margin-top: .5rem; }
fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }

/* ==========================================================================
   20. Pages intérieures (phase 3)
   ========================================================================== */
.page-hero {
    --pattern: var(--red); --pattern-opacity: .08; --topo-color: var(--gold); --topo-opacity: .09;
    position: relative; isolation: isolate; overflow: hidden;
    padding-block: clamp(4rem, 10vw, 7rem) clamp(3rem, 7vw, 5rem);
    background: radial-gradient(110% 90% at 50% 0%, #3a0f14 0%, #1a0c0c 50%, var(--ink) 80%);
    color: var(--on-dark);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg.pattern-cross, .page-hero__bg.pattern-topo { position: absolute; }
.page-hero .rays { --rays-size: 60rem; --rays-top: 0; left: 85%; opacity: .7; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero__title { max-width: 18ch; margin-bottom: 1rem; font: 400 clamp(2.6rem, 7vw, 5.2rem)/1.02 var(--font-display); text-transform: uppercase; color: #FFF8EC; }
.page-hero__title em { font-style: normal; color: var(--gold-light); }
.page-hero__lead { max-width: 38rem; margin: 0; font: italic 400 clamp(1.1rem, 2.2vw, 1.35rem)/1.5 var(--font-serif); color: var(--on-dark-muted); }
.page-hero--photo { padding-block: clamp(6rem, 16vw, 11rem) clamp(3rem, 7vw, 5rem); }
.page-hero__photo { position: absolute; inset: 0; z-index: -3; }
.page-hero__photo picture, .page-hero__photo img { width: 100%; height: 100%; }
.page-hero__photo img { object-fit: cover; }
.page-hero--photo::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background: linear-gradient(180deg, rgb(14 11 10 / .35) 0%, rgb(14 11 10 / .65) 45%, rgb(14 11 10 / .95) 100%),
                linear-gradient(90deg, rgb(58 15 20 / .7), transparent 70%);
}

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--portrait { grid-template-columns: minmax(0, 26rem) 1fr; }
@media (max-width: 900px) { .split, .split--portrait { grid-template-columns: 1fr; } }
.prose-lead { font-size: 1.15rem; line-height: 1.7; }
.subhead { margin: 3rem 0 1.5rem; font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); text-align: center; }

/* Cadre photo : bordure dorée décalée, rappel du blason */
.frame { position: relative; isolation: isolate; margin: 0 1.1rem 1.1rem 0; }
.frame::before {
    content: ""; position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem; z-index: -1;
    border: 2px solid var(--gold); border-radius: var(--radius-lg); opacity: .7;
}
.frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.frame--portrait img { aspect-ratio: 4 / 5; object-position: 50% 20%; }
.frame figcaption { margin-top: 1.6rem; font: italic .95rem/1.4 var(--font-serif); color: var(--text-muted); text-align: center; }

.vision { position: relative; max-width: 54rem; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem); text-align: center;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.vision__label { margin: 0 0 .75rem; font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); }
.vision__text { margin: 0; font: italic 400 clamp(1.3rem, 2.8vw, 1.9rem)/1.45 var(--font-serif); color: var(--heading); }

.mission { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.mission__item { position: relative; display: grid; align-content: start; gap: .8rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.mission__item p { margin: 0; }
.mission__num { position: absolute; top: 1rem; right: 1.25rem; font: 400 2.2rem/1 var(--font-display); color: color-mix(in srgb, var(--gold) 35%, transparent); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature + .feature { margin-top: clamp(4rem, 9vw, 7rem); }
.feature--reverse .frame { order: 2; margin: 0 0 1.1rem 1.1rem; }
.feature--reverse .frame::before { inset: 1.1rem 1.1rem -1.1rem -1.1rem; }
.feature .badge .icon { width: 1rem; height: 1rem; }
.feature__title { margin: 1rem 0 .9rem; font: 400 clamp(1.9rem, 4vw, 2.8rem)/1.05 var(--font-display); text-transform: uppercase; color: var(--heading); }
.feature__note { font: italic 1.1rem/1.5 var(--font-serif); color: var(--gold-text); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature--reverse .frame { order: 0; margin: 0 1.1rem 1.1rem 0; } .feature--reverse .frame::before { inset: 1.1rem -1.1rem -1.1rem 1.1rem; } }

.checklist { display: grid; gap: .6rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 1.75rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .5em; width: .8rem; height: .8rem; border-radius: 3px; background: var(--red); transform: rotate(45deg) scale(.7); }

.shepherd-teaser { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.shepherd-teaser__photo { margin: 0; width: clamp(12rem, 24vw, 18rem); }
.shepherd-teaser__photo img { aspect-ratio: 1; object-fit: cover; object-position: 50% 15%; border-radius: 50%; box-shadow: 0 0 0 3px var(--gold), 0 0 0 10px rgb(201 162 74 / .15), var(--shadow-lg); }
@media (max-width: 760px) { .shepherd-teaser { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

.engagement { margin: 2rem 0; padding: 1.75rem; border-radius: var(--radius); background: var(--bg-alt); border-left: 4px solid var(--gold); }
.engagement__label { margin: 0 0 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); }
.engagement__verbs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.engagement__verbs li { padding: .45rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font: 400 1.15rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: var(--heading); }
.engagement p:last-child { margin: 0; font-style: italic; font-family: var(--font-serif); }

.motto { margin: 0 0 2rem; font: 400 clamp(2rem, 5vw, 3.4rem)/1.1 var(--font-display); text-transform: uppercase; color: var(--heading); }
.motto span { color: var(--accent-text); }

/* Programme */
.programme-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.programme-bar__status { display: flex; align-items: center; gap: .75rem; margin: 0; padding: .7rem 1.1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.programme-bar__status.is-live .now-bar__dot { background: #FF3B4A; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.week__day { display: flex; flex-direction: column; gap: .75rem; min-height: 13rem; padding: 1rem .85rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.week__day.is-today { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 15%, transparent); }
.week__day.is-empty { background: transparent; border-style: dashed; }
.week__name { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font: 400 1.35rem/1 var(--font-display); text-transform: uppercase; color: var(--heading); }
.week__none { margin: 0; color: var(--text-muted); font-size: .9rem; font-style: italic; }
.week__list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.week__item { padding: .6rem .7rem; border-radius: 10px; background: var(--bg-alt); border-left: 3px solid var(--red); }
.week__item:nth-child(even) { border-left-color: var(--gold); }
.week__item.is-live { background: color-mix(in srgb, var(--red) 12%, var(--surface)); }
.week__time { display: block; font-size: .78rem; font-weight: 700; color: var(--gold-text); }
.week__title { display: block; font-size: .88rem; font-weight: 600; line-height: 1.3; text-decoration: none; }
.week__title:hover { color: var(--accent-text); text-decoration: underline; }
.week__weekly { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 1.25rem 0 0; color: var(--text-muted); }
@media (max-width: 1100px) {
    .week { grid-template-columns: 1fr; }
    .week__day { flex-direction: row; align-items: flex-start; min-height: 0; }
    .week__name { width: 8rem; flex: none; padding-top: .35rem; }
    .week__list { flex: 1; }
    .week__day.is-empty { display: none; }
}
@media (max-width: 520px) { .week__day { flex-direction: column; } }
.agenda-card__ics { display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; font-size: .88rem; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.agenda-card__ics:hover { text-decoration: underline; }
.agenda-card.is-next { border-color: var(--gold); }
.agenda-card { scroll-margin-top: calc(var(--header-h) + 3.5rem); }
.agenda-card:target { box-shadow: 0 0 0 3px var(--gold); }

/* Maraude */
.rdv { display: grid; grid-template-columns: minmax(0, 24rem) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.rdv__card {
    --pattern: #fff; --pattern-opacity: .1;
    padding: 2.5rem 2rem; border-radius: var(--radius-lg); text-align: center; color: #fff;
    background: linear-gradient(160deg, var(--red), var(--burgundy)); box-shadow: var(--shadow-lg);
}
.rdv__card .eyebrow { color: var(--gold-light); }
.rdv__day { margin: 0; font: 400 2rem/1 var(--font-display); text-transform: uppercase; }
.rdv__time { margin: .25rem 0 1rem; font: 400 clamp(4.5rem, 10vw, 6.5rem)/1 var(--font-display); color: var(--gold-light); }
.rdv__place { display: inline-flex; align-items: center; gap: .4rem; margin: 0; font-weight: 600; }
@media (max-width: 900px) { .rdv { grid-template-columns: 1fr; } }
.gifts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.gift { display: grid; align-content: start; gap: .6rem; justify-items: center; padding: 1.75rem 1.25rem; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.gift h3 { font: 400 1.5rem/1 var(--font-display); text-transform: uppercase; color: var(--heading); }
.gift p { margin: 0; font-size: .93rem; color: var(--text-muted); }

/* Mosaïques & galerie */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.mosaic__item { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); }
.mosaic__item picture { height: 100%; }
.mosaic__item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic__item:hover img { transform: scale(1.05); }
.mosaic--home { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 14rem); }
.mosaic--home .mosaic__item:first-child { grid-row: span 2; }
.mosaic--home img { aspect-ratio: auto; }
@media (max-width: 760px) {
    .mosaic { grid-template-columns: 1fr 1fr; }
    .mosaic--home { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
    .mosaic--home .mosaic__item:first-child { grid-column: span 2; grid-row: auto; }
    .mosaic--home img { aspect-ratio: 4 / 3; }
}
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.section__head--row .section__title { margin-bottom: 0; }

.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.album-card { position: relative; display: block; height: 100%; overflow: hidden; border-radius: var(--radius-lg); color: #fff; text-decoration: none; background: var(--ink); box-shadow: var(--shadow); isolation: isolate; }
.album-card__cover img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .9s var(--ease), opacity .4s; }
.album-card:hover .album-card__cover img { transform: scale(1.06); opacity: .85; }
.album-card__body { position: absolute; inset: auto 0 0; display: grid; gap: .35rem; padding: 4rem 1.5rem 1.5rem; background: linear-gradient(transparent, rgb(14 11 10 / .92) 55%); }
.album-card__count { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
.album-card__title { font: 400 1.9rem/1 var(--font-display); text-transform: uppercase; }
.album-card__desc { font-size: .9rem; color: rgb(243 237 228 / .8); }
.album-card:focus-visible { outline-offset: 4px; }

.masonry { columns: 3 18rem; column-gap: 1rem; margin: 0; padding: 0; list-style: none; }
.masonry__item { break-inside: avoid; margin-bottom: 1rem; }
.masonry__item a { display: block; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; }
.masonry__item img { width: 100%; transition: transform .7s var(--ease); }
.masonry__item a:hover img { transform: scale(1.04); }
.back-link { margin: 0 0 2rem; }
.flip, .link-arrow--back .icon { rotate: 180deg; }
.link-arrow--back:hover .icon { translate: -4px 0; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; text-decoration: none; }
.chip span { font-size: .75rem; color: var(--text-muted); }
.chip:hover { border-color: var(--gold); }

/* Visionneuse */
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(8 6 5 / .96); color: var(--on-dark); }
.lightbox::backdrop { background: rgb(0 0 0 / .6); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .3s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__figure { display: grid; gap: .75rem; justify-items: center; margin: 0; padding: 4rem 1rem 1.5rem; }
.lightbox__img { max-width: min(92vw, 1600px); max-height: calc(100dvh - 9rem); width: auto; height: auto; border-radius: 10px; object-fit: contain; }
.lightbox__caption { max-width: 50rem; font-size: .9rem; text-align: center; color: var(--on-dark-muted); }
.lightbox__count { color: var(--gold); font-weight: 700; }
.lightbox__btn { position: fixed; display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid rgb(243 237 228 / .25); border-radius: 50%; background: rgb(14 11 10 / .6); color: #fff; cursor: pointer; }
.lightbox__btn:hover { border-color: var(--gold); color: var(--gold-light); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev, .lightbox__next { top: 50%; translate: 0 -50%; }
.lightbox__prev .icon { rotate: 180deg; }
.lightbox__next { right: 1rem; }
.lightbox__prev { left: 1rem; }

/* Témoignages */
.testimonies { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 2.25rem 1.5rem; margin: 0; padding: 1rem 0 0; list-style: none; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: min(85%, 24rem); gap: 1.5rem; margin: 0; padding: 1.25rem .25rem 1.5rem; list-style: none;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: .25rem; scrollbar-width: thin; overscroll-behavior-x: contain; }
.carousel__item { scroll-snap-align: start; }
.carousel-nav { display: flex; gap: .5rem; }
html:not(.js) .carousel-nav { display: none; }
.empty { display: grid; justify-items: center; gap: .75rem; max-width: 32rem; margin: 0 auto; padding: 3rem 2rem; text-align: center; border: 1.5px dashed var(--border); border-radius: var(--radius-lg); }
.empty .icon { width: 2.5rem; height: 2.5rem; color: var(--gold-text); }
.empty h2 { font: 400 1.8rem/1.1 var(--font-display); text-transform: uppercase; color: var(--heading); }
.empty p { margin: 0; color: var(--text-muted); }

/* ==========================================================================
   21. Formulaires (phase 4)
   ========================================================================== */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } }
.form-card { padding: clamp(1.5rem, 4vw, 2.75rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.form-card--wide { max-width: 56rem; margin-inline: auto; }
.form-card__title { margin-bottom: 1.5rem; font: 400 clamp(1.8rem, 4vw, 2.6rem)/1.05 var(--font-display); text-transform: uppercase; color: var(--heading); }
.form-card .alert { margin-bottom: 1.5rem; }
.form-card .alert:focus { outline: none; }
.form-aside { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 960px) { .form-aside { position: static; } }
.form__row--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.field__optional { font-weight: 400; color: var(--text-muted); font-size: .85rem; }
.textarea--tall { min-height: 12rem; }
.check a { color: var(--accent-text); }
.choice-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.choice-grid--dates { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.choice__box strong { font-size: 1rem; line-height: 1.3; }
.choice__box small { font-size: .85rem; color: var(--text-muted); line-height: 1.4; }
.choice__box--date { align-items: flex-start; }
.field--error .choice__box { border-color: color-mix(in srgb, var(--accent-text) 50%, var(--border)); }

.form-success { display: grid; justify-items: center; gap: .75rem; padding: 1.5rem 0; text-align: center; }
.form-success:focus { outline: none; }
.form-success__icon { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--accent-text); animation: anchor .8s var(--ease) both; }
.form-success__icon .icon { width: 2.2rem; height: 2.2rem; }
.form-success h2 { font: 400 clamp(2rem, 5vw, 2.8rem)/1.05 var(--font-display); text-transform: uppercase; color: var(--heading); }
.form-success p { max-width: 30rem; margin: 0; }
.form-success__motto { font: italic 1.1rem/1.5 var(--font-serif); color: var(--gold-text); }

/* Encart Elvanto + QR code */
.elvanto {
    --pattern: var(--gold); --pattern-opacity: .06;
    display: grid; justify-items: center; gap: 1rem; padding: 2rem 1.75rem; text-align: center;
    border-radius: var(--radius-lg); background: radial-gradient(120% 90% at 50% 0%, #3a0f14, var(--ink) 75%); color: var(--on-dark);
    box-shadow: var(--shadow-lg);
}
.elvanto .eyebrow { color: var(--gold); margin: 0; }
.elvanto__title { font: 400 1.9rem/1.05 var(--font-display); text-transform: uppercase; color: #FFF8EC; }
.elvanto p { margin: 0; color: var(--on-dark-muted); font-size: .95rem; }
.elvanto__qr { display: block; padding: .9rem; border-radius: 18px; background: #fff; box-shadow: 0 0 0 3px var(--gold), 0 18px 40px -16px rgb(0 0 0 / .8); transition: transform .4s var(--ease); }
.elvanto__qr:hover { transform: scale(1.03) rotate(-1deg); }
.elvanto__qr img { width: 11rem; height: 11rem; image-rendering: pixelated; }
.elvanto__url { font-size: .78rem !important; word-break: break-all; opacity: .8; }

/* ==========================================================================
   22. Composants partagés (site public et administration)
   ========================================================================== */
.btn--xs { min-height: 2.1rem; padding: .3rem .8rem; font-size: .82rem; }
.btn--danger { --btn-bg: transparent; --btn-fg: var(--accent-text); --btn-border: color-mix(in srgb, var(--accent-text) 45%, transparent); }
.btn--danger:hover { --btn-bg: var(--red); --btn-fg: #fff; box-shadow: none; }
.btn--plain { --btn-bg: var(--surface); --btn-fg: var(--text); --btn-border: var(--border); }
.btn--plain:hover { --btn-border: var(--gold); box-shadow: none; }
.btn.is-busy { opacity: .8; cursor: progress; }
.btn.is-busy::after { content: ""; width: 1rem; height: 1rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.badge--ok { background: color-mix(in srgb, #1f9d55 15%, transparent); color: #187a43; }
:root[data-theme="dark"] .badge--ok { color: #5fd394; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge--ok { color: #5fd394; } }
.badge--muted { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text-muted); }
.muted { color: var(--text-muted); }
.small { font-size: .87rem; }
.panel__title { margin-bottom: 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 1rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.stat { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat__icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; flex: none; border-radius: 12px; background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--accent-text); }
.stat strong { display: block; font: 400 2rem/1 var(--font-display); color: var(--heading); }
.stat span { font-size: .86rem; color: var(--text-muted); }
.cards { display: grid; gap: 1rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.card { padding: 1.1rem 1.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.card__actions form, .inline-form { margin: 0; }
.inline-form { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.select--sm, .input--sm { min-height: 2.3rem; padding: .35rem .65rem; font-size: .88rem; border-radius: 9px; }
.dropzone { display: grid; gap: .6rem; padding: 1.4rem; border: 2px dashed var(--border); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; }
.dropzone.is-over { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, var(--surface)); }
.chip--sm { padding: .3rem .75rem; font-size: .82rem; font-weight: 500; margin: .15rem 0; }

/* ==========================================================================
   23. Espace Emploi
   ========================================================================== */
.emploi-bar { background: var(--ink); color: var(--on-dark); border-top: 1px solid rgb(201 162 74 / .25); }
.emploi-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; min-height: 3.4rem; padding-block: .4rem; }
.emploi-bar__brand { display: inline-flex; align-items: center; gap: .45rem; color: var(--gold-light); font: 400 1.15rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; }
.emploi-bar__nav { display: flex; flex-wrap: wrap; gap: .15rem; }
.emploi-bar__nav a, .emploi-bar__user a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .7rem; border-radius: 9px; color: var(--on-dark-muted); font-size: .9rem; text-decoration: none; }
.emploi-bar__nav a:hover, .emploi-bar__user a:hover { color: #fff; background: rgb(243 237 228 / .08); }
.emploi-bar__nav a[aria-current="page"] { color: #fff; background: rgb(215 25 42 / .35); }
.emploi-bar__nav .icon { width: 1rem; height: 1rem; }
.emploi-bar__user { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.emploi-bar__user form { margin: 0; }
.emploi-bar__user .btn { color: var(--ink); }
.emploi-bar__logout { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 1px solid rgb(243 237 228 / .2); border-radius: 50%; background: transparent; color: var(--on-dark); cursor: pointer; }
@media (max-width: 760px) { .emploi-bar__nav span, .emploi-bar__user a span { display: none; } .emploi-bar__nav a { padding: .55rem; } }
.emploi-notice { margin-top: 1.25rem; }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.subhead--left { text-align: left; margin-top: 0; }

.job-search { display: grid; grid-template-columns: 2fr 1.3fr auto auto; gap: .6rem; align-items: center; margin-bottom: .75rem; }
.job-search--hero { max-width: 48rem; margin-top: 2rem; padding: .6rem; border-radius: 18px; background: rgb(255 255 255 / .08); border: 1px solid rgb(201 162 74 / .3); grid-template-columns: 2fr 1.3fr auto; }
.job-search .check { white-space: nowrap; }
@media (max-width: 760px) { .job-search, .job-search--hero { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.step { position: relative; display: grid; align-content: start; gap: .7rem; padding: 1.6rem 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step__num { position: absolute; top: 1rem; right: 1.2rem; font: 400 2.6rem/1 var(--font-display); color: color-mix(in srgb, var(--gold) 35%, transparent); }
.step h3 { font-size: 1.08rem; color: var(--heading); }
.step p { margin: 0; color: var(--text-muted); font-size: .95rem; }

.onboarding { margin-bottom: 1.5rem; padding: 1.25rem 1.5rem; border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--border)); border-radius: var(--radius); background: color-mix(in srgb, var(--gold) 7%, var(--surface)); }
.onboarding__title { margin: 0 0 .75rem; font-weight: 700; }
.onboarding__steps { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.onboarding__steps li { display: flex; align-items: center; gap: .5rem; }
.onboarding__steps li.is-done span:last-child { color: var(--text-muted); text-decoration: line-through; }
.onboarding__check { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border: 2px solid var(--gold); border-radius: 50%; color: #fff; }
.is-done .onboarding__check { background: #1f9d55; border-color: #1f9d55; }
.onboarding__check .icon { width: .85rem; height: .85rem; stroke-width: 3; }

.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); gap: 1rem; }
.offers-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.75rem 0 1rem; }
.offers-head .subhead { margin: 0; }
.offers-head form { margin: 0; }
.offer-card { display: flex; flex-direction: column; gap: .7rem; padding: 1.25rem 1.35rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.offer-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.offer-card__head { display: flex; justify-content: space-between; gap: 1rem; }
.offer-card__title { font-size: 1.08rem; line-height: 1.3; }
.offer-card__title a { color: var(--heading); text-decoration: none; }
.offer-card__title a:hover { text-decoration: underline; }
.offer-card__company { margin: .2rem 0 0; color: var(--text-muted); font-size: .92rem; }
.offer-card__meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: 0; padding: 0; list-style: none; font-size: .86rem; }
.offer-card__meta li { display: inline-flex; align-items: center; gap: .3rem; }
.offer-card__meta .icon { width: 1rem; height: 1rem; color: var(--gold-text); }
.offer-card__excerpt { margin: 0; font-size: .92rem; color: var(--text-muted); }
.offer-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--border); }
.offer-card__source { font-size: .8rem; color: var(--text-muted); }
.offer-card__actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.offer-description { max-height: 32rem; overflow: auto; margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); white-space: pre-wrap; font-size: .95rem; }

.score { display: grid; justify-items: center; align-content: center; flex: none; width: 3.6rem; height: 3.6rem; border-radius: 50%; border: 3px solid currentColor; line-height: 1; }
.score strong { font-size: .95rem; }
.score small { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.score--high { color: #1f9d55; }
.score--mid { color: var(--gold-text); }
.score--low { color: var(--text-muted); }
.score--lg { width: 5.5rem; height: 5.5rem; }
.score--lg strong { font-size: 1.5rem; }
.match { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.match p { margin: 0; }
.checklist--gaps li::before { background: var(--gold); }

.cv-compare { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem; }
.cv-compare--single { grid-template-columns: 1fr; }
@media (max-width: 960px) { .cv-compare { grid-template-columns: 1fr; } }
.cv-compare__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.cv-compare__head .panel__title { margin: 0; }
.cv-text { max-height: 40rem; overflow: auto; margin: 0 0 .75rem; padding: 1.4rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); white-space: pre-wrap; overflow-wrap: anywhere; font: 400 .95rem/1.65 var(--font-body); }
.cv-text--improved { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.form-card + .form-card { margin-top: 1.25rem; }
.form-card--danger { border-color: color-mix(in srgb, var(--red) 35%, var(--border)); }
.form-layout > .form-card + .form-card { margin-top: 0; }

.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; align-items: start; }
.pipeline__col { padding: 1rem; border-radius: var(--radius); background: var(--bg-alt); }
.pipeline__title { display: flex; justify-content: space-between; margin-bottom: .75rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--heading); }
.pipeline__title span { padding: 0 .5rem; border-radius: 999px; background: var(--surface); }
.pipeline__list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.pipeline__card { display: grid; gap: .35rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.pipeline__card p { margin: 0; }
.pipeline__job { font-weight: 700; color: var(--heading); text-decoration: none; }
.pipeline__notes { padding: .4rem .6rem; border-left: 3px solid var(--gold); background: var(--surface-2); white-space: pre-wrap; }
.alert-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.alert-row p { margin: .2rem 0 0; }

/* 24. Pages de texte (mentions légales, confidentialité) */
.prose { max-width: 46rem; }
.prose--wide { max-width: 64rem; }
.prose h2 { margin: 2.25rem 0 .75rem; font: 400 1.6rem/1.1 var(--font-display); text-transform: uppercase; color: var(--heading); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.prose .table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.prose .table th { padding: .7rem .9rem; background: var(--surface-2); text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.prose .table td { padding: .75rem .9rem; border-top: 1px solid var(--border); vertical-align: top; }
mark.todo { padding: .05rem .4rem; border-radius: 6px; background: color-mix(in srgb, var(--gold) 30%, transparent); color: var(--text); font-weight: 600; }

/* 25. Cookies, conditions générales, liens légaux */
.cookie-banner {
    position: fixed; z-index: 150; left: 50%; bottom: 1rem; translate: -50% 0;
    display: grid; grid-template-columns: 1fr auto; gap: 1rem 1.5rem; align-items: center;
    width: min(100% - 2rem, 62rem); padding: 1.1rem 1.3rem;
    background: var(--surface); color: var(--text); border: 1px solid var(--border); border-top: 3px solid var(--gold);
    border-radius: var(--radius); box-shadow: 0 20px 50px -15px rgb(0 0 0 / .45);
    animation: cookie-in .5s var(--ease) both;
}
@keyframes cookie-in { from { opacity: 0; translate: -50% 1rem; } }
.cookie-banner__title { margin-bottom: .3rem; font-size: 1rem; color: var(--heading); }
.cookie-banner p { margin: 0; font-size: .9rem; color: var(--text-muted); }
.cookie-banner a { color: var(--accent-text); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.cookie-banner__actions .btn { min-width: 9rem; }
@media (max-width: 760px) { .cookie-banner { grid-template-columns: 1fr; bottom: .5rem; } .cookie-banner__actions .btn { flex: 1; min-width: 0; } }
@media print { .cookie-banner { display: none; } }

.cookie-choices { display: grid; gap: .25rem; margin-bottom: 1rem; }
.cookie-choice { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.cookie-choice > span:first-child { display: grid; gap: .15rem; }
.cookie-choice p { margin: 0; }
.switch { position: relative; flex: none; width: 3.1rem; height: 1.75rem; }
.switch input { position: absolute; inset: 0; z-index: 1; opacity: 0; cursor: pointer; margin: 0; }
.switch__track { position: absolute; inset: 0; border-radius: 999px; background: color-mix(in srgb, var(--text) 25%, transparent); transition: background-color .2s; }
.switch__track::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: translate .25s var(--ease); }
.switch input:checked + .switch__track { background: #1f9d55; }
.switch input:checked + .switch__track::after { translate: 1.35rem 0; }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--gold); outline-offset: 2px; }

.legal-layout { display: grid; grid-template-columns: 15rem 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 1rem); padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: .9rem; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { color: var(--accent-text); text-decoration: underline; }
.prose h2[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } .legal-toc { position: static; } }

.site-footer__legal { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
