/* assurance-commerce-lyon.fr : ce qui n'appartient qu'à ce site. Le reste est dans reseau-local/commun/css/reseau.css.
   Thème « devanture » (16 novembre 2026) : un fond crème comme le papier d'un sac de boulangerie, une encre brun-noir,
   un seul vert de devanture pour les actions, les titres en Gambarino (la police à empattements de la feuille commune).
   Distinct du site BTP (blanc, ardoise, orange, Archivo) et d'assurance-lyon.com (noir et champagne).
   Les noms des jetons restent ceux de la feuille commune (--nuit = le fond, --ivoire = l'encre, --champagne = l'accent). */

:root {
  --nuit: #fbf8f2;          /* le fond : crème */
  --nuit-2: #f3ede2;        /* une section sur deux : le lin */
  --nuit-3: #e9e0d0;
  --nuit-4: #d6c9b2;
  --profond: #183a30;       /* le vert sombre : le pied de page et la bande « En bref » */
  --ivoire: #22201c;        /* l'encre */
  --doux: #57514a;          /* le texte secondaire */
  --champagne: #1f6b52;     /* le vert de devanture : boutons, liens, repères */
  --champagne-2: #17543f;
  --store: #b5512c;         /* la toile du store, décor seulement (jamais pour du texte) */
  --filet: rgba(34, 32, 28, 0.14);
  --ouvert: #2f7d3a;
  --ferme: #6f685f;
  --t-titre: clamp(2.125rem, 1.3rem + 2.5vw, 3.375rem);
}
html { color-scheme: light; scrollbar-color: var(--nuit-4) var(--nuit); }
::selection { background: #cfe6dc; color: var(--ivoire); }

.enseigne__liens a[aria-current="page"] { color: var(--champagne); }

/* les titres : Gambarino n'a qu'une graisse, on n'en simule aucune autre */
.entree h1, .titre-section, .etape__titre, .besoin__nom, .besoins__tete h2, .dirigeant h2, .presentation h2, .demarche h2,
.agences h2, .questions h2, .dernier h2, .essentiel h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.06; }
.colonnes h3, .famille h3, .agence h3, .secteur h3, .encadre h3, .exemple h3, .fiche h3, .legal__texte h2,
.questions summary, .decoupe__liste b, .demarche li b, .etapes li { font-weight: 500; letter-spacing: -0.005em; }
.agence__tel, .dernier__tete .tels a, .devis__cote .tels a { font-weight: 500; }
.marque { color: var(--ivoire); }
.marque .logo { color: var(--champagne); }

/* les actions : un rectangle vert plein, du texte blanc */
.bouton { color: #fff; font-weight: 500; }
.bouton:hover { background: var(--champagne-2); }
.puce span { box-shadow: inset 0 0 0 1.5px var(--nuit-4); }
.puce input:hover + span, .puce--lien:hover span { box-shadow: inset 0 0 0 1.5px var(--doux); }
.puce input:checked + span { color: #fff; }
.puce input:checked + span::before { background: #fff; }

/* les champs : blancs, bordés, lisibles */
.appel input[type="tel"], .formulaire input[type="tel"], .formulaire input[type="text"], .formulaire input[type="email"], .formulaire select, .formulaire textarea {
  background: #fff; color: var(--ivoire); box-shadow: inset 0 0 0 1.5px var(--nuit-4); }
.appel input:focus, .formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { box-shadow: inset 0 0 0 2px var(--champagne); outline: none; }
.appel input::placeholder, .formulaire input::placeholder, .formulaire textarea::placeholder { color: #6f685f; }
.accord input::after { border-color: #fff; }

/* l'en-tête et le bandeau qui suit le défilement : crème */
.enseigne { background: var(--nuit); }
.enseigne__liens a { color: var(--ivoire); font-weight: 500; }
.enseigne__liens a:hover { color: var(--champagne); }
.barre { background: var(--nuit); color: var(--ivoire); box-shadow: 0 6px 22px rgba(34, 32, 28, 0.10); }

/* l'entrée de l'accueil : le texte à gauche, la photo à droite jusqu'au bord, sous un store rayé */
.entree:has(.entree__photo) { padding-top: clamp(24px, 3vw, 48px); padding-bottom: 0; align-items: stretch; }
.entree:has(.entree__photo) .entree__texte { grid-column: 1 / span 7; align-self: center; padding-block: clamp(24px, 4vw, 72px); padding-right: clamp(0px, 2vw, 32px); }
.entree:has(.entree__photo) h1 { font-size: clamp(2.375rem, 1.3rem + 2.9vw, 4.25rem); max-width: 18ch; }
.entree__phrase { color: var(--doux); }
.entree__photo { grid-column: 8 / -1; margin: 0 calc(-1 * var(--marge)) 0 0; position: relative; }
.entree__photo img { width: 100%; height: 100%; min-height: 520px; max-height: 720px; object-fit: cover; object-position: 50% 60%; }
.entree__photo figcaption { position: absolute; left: 16px; bottom: 14px; padding: 4px 10px; background: rgba(24, 58, 48, 0.82); color: #fff; font-size: var(--t-petit); }
/* le store : des bandes vert et crème, festonnées par en dessous */
.entree__photo::before { content: ""; position: absolute; inset: 0 0 auto; height: 30px; z-index: 1;
  background: repeating-linear-gradient(90deg, var(--champagne) 0 36px, var(--nuit) 36px 72px);
  -webkit-mask: radial-gradient(18px 12px at 18px 100%, #0000 98%, #000) 0 0 / 36px 100%;
          mask: radial-gradient(18px 12px at 18px 100%, #0000 98%, #000) 0 0 / 36px 100%;
  filter: drop-shadow(0 3px 2px rgba(34, 32, 28, 0.18)); }

/* les métiers en un clic : des étiquettes qu'on touche du pouce */
.metiers-rapides { margin-top: clamp(36px, 4vw, 56px); }
.metiers-rapides h2 { font: 500 var(--t-petit)/1.4 var(--sans); color: var(--ivoire); }
.metiers-rapides ul { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.metiers-rapides a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--nuit-2); color: var(--ivoire);
  font-weight: 500; text-decoration: none; transition: background-color 180ms, color 180ms, transform 180ms var(--sortie); }
.metiers-rapides a:hover { background: var(--champagne); color: #fff; }
.metiers-rapides a:active { transform: translateY(1px); }
.metiers-rapides li:last-child a { background: transparent; color: var(--champagne); text-decoration: underline; text-underline-offset: 0.25em; }
.metiers-rapides li:last-child a:hover { color: var(--champagne-2); }

/* « En bref » de l'accueil : une bande vert sombre sur toute la largeur, quatre repères côte à côte */
.essentiel--bande { grid-column: auto; align-self: auto; margin-top: 0 !important; max-width: none !important; background: var(--profond); color: #fff; box-shadow: none; padding: clamp(48px, 6vw, 88px) var(--marge); clip-path: none !important; animation: none !important; }
.essentiel--bande h2 { grid-column: 1 / -1; font: 400 var(--t-lead)/1.1 var(--serif); color: #fff; }
.essentiel--bande dl { grid-column: 1 / -1; margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--g); }
.essentiel--bande dt { color: #f3c9a8; font-size: var(--t-texte); font-weight: 500; }
.essentiel--bande dd { color: #d9e4de; font-size: var(--t-texte); }
.essentiel__note { grid-column: 1 / -1; margin-top: 32px; max-width: 72ch; color: #d9e4de; font-size: var(--t-petit); }

/* une photo de Lyon à pleine largeur, entre deux parties */
.bande-photo { margin: 0; position: relative; }
.bande-photo img { width: 100%; height: clamp(220px, 34vw, 520px); object-fit: cover; object-position: 50% 40%; }
.bande-photo--metier img { height: clamp(200px, 26vw, 380px); object-position: 50% 45%; }
.bande-photo figcaption { position: absolute; left: var(--marge); bottom: 14px; padding: 4px 10px; background: rgba(24, 58, 48, 0.82); color: #fff; font-size: var(--t-petit); }

/* les repères de la feuille commune, plus francs */
.colonnes > * { border-top-width: 3px; }
.questions summary:hover { color: var(--champagne); }

/* le pied de page : le vert sombre, texte clair */
.pied { background: var(--profond); color: #c4d3cc; }
.pied .marque { color: #fff; }
.pied .marque .logo { color: #f3c9a8; }
.pied__marque p { color: #c4d3cc; }
.pied__cols h3 { color: #fff; }
.pied__cols a:hover { color: #fff; }
.pied__legal { border-top-color: rgba(255, 255, 255, 0.16); }
.pied__legal a { color: #fff; }

/* sur téléphone : les trois actions toujours à portée de pouce, en bas de l'écran ; le bandeau du haut s'efface */
.actions-mobile { display: none; }
@media (max-width: 760px) {
  .actions-mobile { position: fixed; inset: auto 0 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr 1.3fr;
    background: #fff; box-shadow: 0 -6px 22px rgba(34, 32, 28, 0.12); padding-bottom: env(safe-area-inset-bottom); }
  .actions-mobile a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 60px;
    color: var(--ivoire); font-size: var(--t-petit); font-weight: 500; text-decoration: none; }
  .actions-mobile a .ico { width: 20px; height: 20px; color: var(--champagne); }
  .actions-mobile a:active { background: var(--nuit-2); }
  .actions-mobile .actions-mobile__principal { background: var(--champagne); color: #fff; }
  .actions-mobile .actions-mobile__principal .ico { color: #fff; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .barre { display: none; }

  .entree:has(.entree__photo) .entree__texte { grid-column: 1 / -1; padding-block: 8px 32px; }
  .entree__photo { grid-column: 1 / -1; margin: 0 calc(-1 * var(--marge)); }
  .entree__photo img { min-height: 0; height: 56svh; max-height: 520px; }
  .entree__photo::before { height: 24px; }
  .essentiel--bande dl { grid-template-columns: 1fr; gap: 22px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .essentiel--bande dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* le nom du site, plus long qu'« Assurance Lyon », passe sur deux lignes dans le bandeau pour laisser le bouton entier */
@media (max-width: 480px) {
  .barre__nom { min-width: 0; white-space: normal; font-size: 1.1rem; line-height: 1.1; }
  .barre .bouton { padding: 0 14px; }
}

/* plus aéré : les filets fins de la feuille commune deviennent des plaques claires */
:root { --tuile: var(--nuit-2); }
.section--2, .agences, .dernier { --tuile: #fff; }
.decoupe__liste li, .decoupe__liste li:last-child, .questions details, .questions details:last-child, .voisins li, .produit,
.dirigeant__liste li, .dirigeant__liste li:last-child, .etapes li, .etapes li:last-child, .pieces li, .besoin + .besoin,
.fiche__en-ligne, .secteur, .legal__texte > section + section, .legal__texte .credits li + li, .presentation__faits li { border: 0; }
.decoupe__liste { display: grid; gap: 8px; }
.decoupe__liste li { background: var(--tuile); padding: 22px clamp(18px, 2vw, 28px); }
.questions__liste { display: grid; gap: 8px; }
.questions details { background: var(--tuile); padding: 0 clamp(18px, 2vw, 28px); }
.voisins { row-gap: 8px; }
.produit, .voisins .produit { background: var(--tuile); padding: 16px 18px; font-weight: 500; }
.produit:hover { color: var(--champagne); }
.pieces { row-gap: 4px; }
.pieces li { padding-block: 10px; }
.pieces li::before { top: calc(10px + 0.72em); }
.etapes li { padding-block: 10px; }

/* sous le titre d'une page : le rappel que les chiffres cités sont ceux de l'offre prise en exemple */
.entree__note { margin-top: 20px; max-width: 60ch; font-size: var(--t-petit); color: var(--doux); }

/* les trois situations des pages métiers : la garantie en jeu est une phrase, pas un montant ; elle passe sous son intitulé et revient à la ligne
   (la feuille commune garde les montants sur une ligne, pour les calculs de franchise) */
.exemples--situations .exemple dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.exemples--situations .exemple dd { padding-left: 0; text-align: left; white-space: normal; }
