/* Site vitrine GARAGE Gestion : couleurs de l'application (shared/web/theme.css), en plus chaleureux.
   Tout est servi par le site lui-même : polices Barlow Semi Condensed et IBM Plex Sans embarquées
   (licence SIL OFL 1.1, fonts/LICENSE.txt), aucun script ni traceur d'un autre site. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
    /* Couleurs de l'application */
    --nuit: #14324a;          /* bandeau de l'appli tablette */
    --bleu: #1d5f8a;          /* couleur principale (--accent) */
    --bleu-fonce: #164b6e;
    --bleu-clair: #dcebf5;
    --vert: #18794e;          /* « Disponible » (--ok) */
    --vert-fond: #dcf3e7;
    --ambre: #8a4b06;         /* « En préparation » (texte foncé, contraste AA) */
    --ambre-fond: #fdf0dc;
    /* Couleurs des activités du planning, reprises pour donner de la couleur au site */
    --orange: #c2410c;        /* Carrosserie (version foncée pour du texte blanc) */
    --orange-vif: #ea580c;
    --jaune: #fbbf24;
    --sarcelle: #0f766e;      /* Pneus */
    --violet: #7c3aed;        /* Atelier */
    --indigo: #2563eb;        /* Service */
    --cyan: #0891b2;          /* Car Cleaning */
    /* Fond chaleureux */
    --fond: #faf7f2;
    --fond-2: #f2ece2;
    --surface: #ffffff;
    --texte: #17202a;
    --texte-doux: #4b5866;
    --ligne: #e3dccf;
    --erreur: #b42318;
    --titres: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
    --texte-police: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --large: 74rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--texte-police); color: var(--texte); background: var(--fond); line-height: 1.55; overflow-wrap: break-word; font-size: 1rem; }
img { max-width: 100%; height: auto; }
a { color: var(--bleu); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--orange-vif); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--titres); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 2.75rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.3rem; margin: 0 0 0.4rem; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.aller-au-contenu { position: absolute; left: -999px; top: 0; background: #fff; padding: 0.5rem 1rem; z-index: 20; }
.aller-au-contenu:focus { left: 0.5rem; }

/* Bande de couleurs du planning : le motif du site. */
.rayures { height: 6px; background: linear-gradient(90deg, var(--indigo) 0 16%, var(--sarcelle) 16% 32%, var(--violet) 32% 48%, var(--cyan) 48% 64%, var(--orange-vif) 64% 80%, var(--jaune) 80% 100%); }

/* En-tête : bleu nuit, comme le bandeau de l'appli. */
.entete { background: var(--nuit); color: #fff; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 10px rgba(20, 50, 74, 0.25); }
.entete-contenu { max-width: var(--large); margin: 0 auto; padding: 0.55rem 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.marque { color: #fff; text-decoration: none; font-family: var(--titres); font-size: 1.45rem; font-weight: 700; display: inline-flex; align-items: center; gap: 0.55rem; margin-right: auto; letter-spacing: 0.01em; }
.marque img { border-radius: 9px; }
.marque span { color: var(--jaune); }
.menu { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; list-style: none; margin: 0; padding: 0; }
.menu a { color: #fff; text-decoration: none; padding: 0.5rem 0.15rem; display: inline-block; font-weight: 500; }
.menu a:hover, .menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--jaune); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.se-connecter { color: var(--nuit); background: #fff; border-radius: 999px; padding: 0.4rem 1rem; text-decoration: none; font-weight: 600; white-space: nowrap; }
.se-connecter:hover { background: var(--bleu-clair); }
.menu-bouton { display: none; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 999px; padding: 0.35rem 0.9rem; font: inherit; cursor: pointer; }

/* Téléphone : menu replié derrière « Menu » (avec JavaScript ; sans lui, le menu s'affiche sur plusieurs lignes). */
@media (max-width: 61.99rem) {
    .js .menu-bouton { display: inline-block; }
    .js .navigation { flex-basis: 100%; order: 5; }
    .entete-contenu { gap: 0.5rem; }
    .marque { font-size: 1.25rem; }
    .se-connecter { order: 1; padding: 0.35rem 0.7rem; }
    .menu-bouton { order: 2; }
    .js .navigation:not(.ouverte) { display: none; }
    .js .menu { flex-direction: column; padding-bottom: 0.5rem; }
}

.bandeau { padding: 0.75rem 1rem; text-align: center; font-weight: 600; }
.bandeau-apercu { background: var(--ambre-fond); color: var(--ambre); border-bottom: 2px solid #e0a800; }

/* Mise en page */
main { display: block; }
.contenu { max-width: var(--large); margin: 0 auto; padding: 2.5rem 1rem 3rem; }
.section { padding: 3.5rem 1rem; }
.section > .interieur { max-width: var(--large); margin: 0 auto; }
.section-claire { background: var(--surface); }
.section-chaude { background: var(--fond-2); }
.section-bleue { background: linear-gradient(160deg, #e8f2fa, #dcebf5); }
.surtitre { font-family: var(--titres); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.95rem; margin: 0 0 0.35rem; color: var(--orange); }
.intro { font-size: 1.15rem; color: var(--texte-doux); max-width: 48rem; }
.boutons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.bouton { display: inline-block; background: var(--orange); color: #fff; border: 2px solid var(--orange); border-radius: 999px; padding: 0.65rem 1.4rem; text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; }
.bouton:hover { background: #9a3412; border-color: #9a3412; }
.bouton-secondaire { background: transparent; color: var(--bleu); border-color: var(--bleu); }
.bouton-secondaire:hover { background: var(--bleu-clair); color: var(--bleu-fonce); border-color: var(--bleu-fonce); }
.bouton[disabled] { background: #9aa5b1; border-color: #9aa5b1; cursor: not-allowed; }

/* Accueil : grand bandeau coloré */
.hero { background: radial-gradient(circle at 85% 10%, rgba(251, 191, 36, 0.22), transparent 40%), linear-gradient(135deg, var(--nuit) 0%, var(--bleu) 62%, var(--sarcelle) 100%); color: #fff; padding: 3.5rem 1rem 0; overflow: hidden; }
.hero-interieur { max-width: var(--large); margin: 0 auto; display: grid; gap: 2rem; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--jaune); }
.hero .intro { color: #e3eef7; }
.hero .bouton-secondaire { color: #fff; border-color: #fff; }
.hero .bouton-secondaire:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; color: #e3eef7; font-size: 0.95rem; }
.hero-points li::before { content: "✓ "; color: var(--jaune); font-weight: 700; }
.hero-image { margin: 0; align-self: end; }
.hero-image .ecran { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: -1px; }
@media (min-width: 62rem) {
    .hero-interieur { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); align-items: center; }
    .hero-texte { padding-bottom: 3rem; }
}

/* Captures dans un cadre de navigateur */
.ecran { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 45px rgba(20, 50, 74, 0.28), 0 0 0 1px rgba(20, 50, 74, 0.12); }
.ecran::before { content: ""; display: block; height: 26px; border-bottom: 1px solid #d5dbe2;
    background: radial-gradient(circle at 16px 13px, #ef6a5f 4.5px, transparent 5px), radial-gradient(circle at 32px 13px, #f6bf4f 4.5px, transparent 5px), radial-gradient(circle at 48px 13px, #5cc35f 4.5px, transparent 5px), #e9edf1; }
.ecran img { display: block; width: 100%; }
figcaption { font-size: 0.9rem; color: var(--texte-doux); margin-top: 0.6rem; }

/* iPad dessiné autour des captures de l'appli tablette */
.ipad { margin: 0; background: #1d2128; border-radius: 26px; padding: 16px; box-shadow: 0 20px 50px rgba(20, 50, 74, 0.35), inset 0 0 0 2px #3b3f46; }
.ipad img { display: block; width: 100%; border-radius: 10px; }

/* Blocs « vedette » : texte et image côte à côte */
.vedette { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 62rem) {
    .vedette { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
    .vedette.inverse > :first-child { order: 2; }
}
.liste-coches { list-style: none; padding: 0; margin: 1rem 0; }
.liste-coches li { padding-left: 1.9rem; position: relative; margin-bottom: 0.55rem; }
.liste-coches li::before { content: "✓"; position: absolute; left: 0; top: 0.05rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--vert-fond); color: var(--vert); font-weight: 700; font-size: 0.85rem; display: grid; place-items: center; }
.paire { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 48rem) { .paire { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Étiquettes de couleur, comme dans le planning */
.etiquettes { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; padding: 0; list-style: none; }
.etiquette { display: inline-flex; align-items: center; gap: 0.4rem; background: #fff; border: 1px solid var(--ligne); border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.9rem; }
.etiquette::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--c, var(--bleu)); }

/* Plaques suisses (écussons ajoutés par js/plaques.js, repris de l'application) */
.plate { display: inline-block; border: 2px solid #17202a; border-radius: 6px; padding: 0.1rem 0.6rem; font-family: ui-monospace, Consolas, "Courier New", monospace; font-weight: 600; background: #fff; color: #17202a; letter-spacing: 0.03em; font-size: 1.15rem; }
.plaques { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; padding: 0; list-style: none; }

/* Cartes des points forts */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.1rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.carte { background: var(--surface); border: 1px solid var(--ligne); border-radius: 14px; padding: 1.3rem; position: relative; }
.cartes .carte { border-top: 5px solid var(--c, var(--bleu)); }
.carte p { margin: 0.3rem 0 0; color: var(--texte-doux); }
.carte .statut { margin-top: 0.75rem; display: inline-block; }
.icone { width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--bleu)) 14%, #fff); color: var(--c, var(--bleu)); margin-bottom: 0.7rem; }
.icone svg { width: 1.5rem; height: 1.5rem; }

/* Étapes (inscription de la tablette) */
.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.6rem; }
.etapes li { counter-increment: etape; padding-left: 2.6rem; position: relative; min-height: 2rem; }
.etapes li::before { content: counter(etape); position: absolute; left: 0; top: -0.1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 700; display: grid; place-items: center; font-family: var(--titres); }

/* Bandeau d'appel final */
.appel { background: linear-gradient(120deg, var(--orange) 0%, #b45309 100%); color: #fff; border-radius: 18px; padding: 2rem 1.5rem; text-align: center; }
.appel h2 { color: #fff; }
.appel p { color: #fff3e6; max-width: 40rem; margin: 0 auto; }
.appel .boutons { justify-content: center; }
.appel .bouton { background: #fff; color: var(--orange); border-color: #fff; }
.appel .bouton:hover { background: #fff3e6; }
.appel .bouton-secondaire { background: transparent; color: #fff; }
.appel .bouton-secondaire:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* Statuts, toujours écrits en toutes lettres (la couleur ne suffit jamais) */
.statut { font-size: 0.8rem; font-weight: 600; padding: 0.1rem 0.6rem; border-radius: 1rem; white-space: nowrap; font-family: var(--texte-police); }
.statut-disponible { background: var(--vert-fond); color: var(--vert); }
.statut-en-preparation { background: var(--ambre-fond); color: var(--ambre); }
.legende { color: var(--texte-doux); }

/* Page Fonctions */
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.themes .carte { border-top: 5px solid var(--c, var(--bleu)); }
.themes h2 { font-size: 1.6rem; display: flex; align-items: center; gap: 0.6rem; }
.themes h2 .icone { margin: 0; width: 2.2rem; height: 2.2rem; }
.fonctions { list-style: none; padding: 0; margin: 0; }
.fonction { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--ligne); }
.fonction:last-child { border-bottom: 0; }

/* Tarifs */
.bandeau-prix { background: var(--ambre-fond); color: var(--ambre); border: 2px solid #e0a800; border-radius: 12px; padding: 0.8rem 1rem; font-weight: 700; font-size: 1.15rem; margin: 0 0 1.5rem; }
.formules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; align-items: start; }
.formule { border-top: 6px solid var(--c, var(--bleu)); }
.formule.recommandee { box-shadow: 0 14px 35px rgba(194, 65, 12, 0.18); border-color: var(--orange); }
.formule .badge { position: absolute; top: -0.85rem; right: 1rem; background: var(--orange); color: #fff; border-radius: 999px; padding: 0.15rem 0.8rem; font-size: 0.85rem; font-weight: 600; }
.formule h2 { margin: 0 0 0.25rem; font-size: 1.9rem; color: var(--c, var(--bleu)); }
.prix { font-family: var(--titres); font-size: 2.1rem; font-weight: 700; color: var(--texte); margin: 0.25rem 0; }
.prix small { font-family: var(--texte-police); font-size: 1rem; font-weight: 400; color: var(--texte-doux); }
.formule ul { padding-left: 1.1rem; }
.formule li { margin-bottom: 0.4rem; }
.formule .statut { font-size: 0.72rem; margin-left: 0.25rem; }
table { border-collapse: collapse; width: 100%; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--ligne); }
th { background: var(--fond-2); font-family: var(--titres); font-size: 1.05rem; }

/* FAQ en accordéon (details / summary : fonctionne sans JavaScript) */
.faq { display: grid; gap: 0.7rem; margin-top: 1.5rem; max-width: 54rem; }
.faq details { background: #fff; border: 1px solid var(--ligne); border-radius: 12px; border-left: 5px solid var(--c, var(--bleu)); }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--orange); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .reponse { padding: 0 1.2rem 1.1rem; color: var(--texte-doux); }
.faq .reponse p { margin: 0 0 0.6rem; }
.a-completer { display: inline-block; background: var(--ambre-fond); color: var(--ambre); border: 1px dashed #e0a800; border-radius: 6px; padding: 0 0.45rem; font-size: 0.85rem; font-weight: 600; }

/* Formulaire de demande */
.formulaire { max-width: 40rem; background: #fff; border: 1px solid var(--ligne); border-radius: 14px; padding: 1.5rem; }
.choix-demande { border: 0; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.6rem; }
.choix-demande legend { font-weight: 600; margin-bottom: 0.4rem; }
.choix-demande label { display: flex; gap: 0.6rem; align-items: flex-start; border: 2px solid var(--ligne); border-radius: 12px; padding: 0.75rem 0.9rem; cursor: pointer; }
.choix-demande label:has(input:checked) { border-color: var(--orange); background: #fff7ed; }
.choix-demande input { margin-top: 0.3rem; accent-color: var(--orange); }
.choix-demande small { display: block; color: var(--texte-doux); }
.deux-champs { display: grid; gap: 0 1rem; }
@media (min-width: 36rem) { .deux-champs { grid-template-columns: 1fr 1fr; } }
.champ { display: flex; flex-direction: column; margin-bottom: 1rem; min-width: 0; }
.champ label { font-weight: 500; margin-bottom: 0.25rem; }
.champ label small { font-weight: 400; color: var(--texte-doux); }
.champ input, .champ select, .champ textarea { font: inherit; padding: 0.55rem 0.7rem; border: 1px solid #b7ad9c; border-radius: 8px; background: #fff; color: var(--texte); width: 100%; }
.champ textarea { min-height: 6rem; resize: vertical; }
.champ-case label { font-weight: 400; display: flex; gap: 0.5rem; align-items: flex-start; }
.champ-case input { width: auto; margin-top: 0.3rem; accent-color: var(--orange); }
.aide-champ { color: var(--texte-doux); font-size: 0.875rem; margin: 0.25rem 0 0; }
.erreur-champ { color: var(--erreur); font-size: 0.875rem; margin: 0.25rem 0 0; }
.erreur-champ:empty { display: none; }
.champ input[aria-invalid="true"], .champ select[aria-invalid="true"], .champ textarea[aria-invalid="true"] { border-color: var(--erreur); }
.confirmation { background: var(--vert-fond); color: var(--vert); border: 1px solid var(--vert); border-radius: 12px; padding: 1rem; font-weight: 500; max-width: 40rem; }
.sans-js { background: var(--ambre-fond); color: var(--ambre); padding: 0.75rem 1rem; border-radius: 8px; }
.brouillon { display: inline-block; background: var(--ambre-fond); color: var(--ambre); border: 2px solid #e0a800; border-radius: 6px; padding: 0.25rem 0.75rem; font-weight: 700; }
.encadre { background: var(--bleu-clair); border-radius: 12px; padding: 1rem 1.2rem; }
.identifiants { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; padding: 0; margin: 1rem 0; }
.identifiants li { background: #fff; border: 1px dashed var(--bleu); border-radius: 10px; padding: 0.5rem 1rem; }
.identifiants strong { font-family: ui-monospace, Consolas, monospace; font-size: 1.15rem; color: var(--bleu-fonce); }

/* Pied de page */
.pied { background: var(--nuit); color: #d5e2ec; }
.pied-contenu { max-width: var(--large); margin: 0 auto; padding: 1.5rem 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; }
.pied a { color: #fff; }
.pied .marque-pied { font-family: var(--titres); font-weight: 700; font-size: 1.2rem; color: #fff; margin-right: auto; }
