/* Atelier Durand, accueil : feuille propre à la page (après commun.css).
   Une idée : le repère de chantier. Quatre équerres de cuivre marquent la place de chaque photo, dans la marge, jamais dessus. */

/* Arrivée : la photo sort de la vapeur (0,7 s, une fois par visite, jamais en mouvement réduit). La classe eq-anim n'est posée que par le script du <head> ; sans lui, tout est déjà visible. */
.eq-anim .fondu { animation: buee-entree .7s ease-out both; }
@keyframes buee-entree { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 7. Premier écran : le cuivre fait presque toute la page ----------
   La photo (nette, 1 : 1 jusqu'à 1 600 px de large) occupe tout le premier écran, mais sans bord : un masque la fond vers l'émail côté texte, en haut et en bas ;
   une ombre brune ferme les coins, une lueur d'ambre rayonne depuis le raccord et déborde sur l'émail. Le texte reste sur l'émail seul (la photo y est à moins de 10 %).
   Aucun flou : seule la profondeur de champ de la photo (tuyaux voisins hors champ) est floue, et elle est recadrée ou fondue. */
.ouv { --tpos: 72vw; --tx: calc(max(var(--g), (100vw - var(--wmax)) / 2 + var(--g)) + 31rem); position: relative; isolation: isolate; overflow: hidden; padding-block: .625rem 2.5rem; }
.ouv-grille { position: relative; z-index: 3; display: grid; gap: .75rem; }
.ouv-photo { position: absolute; z-index: 1; inset: 0; margin: 0; min-width: 0; }
.fondu { position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, transparent calc(var(--tx) - 30px), rgba(0,0,0,.12) calc(var(--tx) + 5vw), rgba(0,0,0,.55) calc(var(--tx) + 13vw), #000 calc(var(--tx) + 22vw)), linear-gradient(to bottom, transparent 0, rgba(0,0,0,.6) 7%, #000 17%, #000 76%, rgba(0,0,0,.5) 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, transparent calc(var(--tx) - 30px), rgba(0,0,0,.12) calc(var(--tx) + 5vw), rgba(0,0,0,.55) calc(var(--tx) + 13vw), #000 calc(var(--tx) + 22vw)), linear-gradient(to bottom, transparent 0, rgba(0,0,0,.6) 7%, #000 17%, #000 76%, rgba(0,0,0,.5) 90%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.fondu picture { display: block; width: 100%; height: 100%; }
/* la photo : le raccord en T à 72 % de la largeur (--tpos) ; le haut du cadre est tenu au ras du haut de l'écran */
.fondu img { position: absolute; top: -3%; left: calc(var(--tpos) - .47 * var(--iw)); display: block; width: var(--iw); height: auto; max-width: none; filter: saturate(1.1) contrast(1.05) brightness(1.04); --iw: min(max(1600px, 105vw), 1760px); }
/* l'ombre : coins et bord droit assombris en brun chaud (profondeur) */
.fondu::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 62% 78% at var(--tpos) 42%, rgba(40, 20, 8, 0) 46%, rgba(40, 20, 8, .38) 100%); }
/* la lueur : de l'ambre qui rayonne depuis le raccord et fait briller le cuivre */
.fondu::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background:
    radial-gradient(ellipse 22% 38% at var(--tpos) 30%, rgba(255, 196, 120, .9) 0, rgba(255, 170, 90, 0) 100%),
    radial-gradient(ellipse 48% 70% at var(--tpos) 40%, rgba(255, 160, 80, .55) 0, rgba(255, 160, 80, 0) 100%); }
/* la lueur déborde sur l'émail, derrière la photo : le cuivre semble éclairer la page */
.ouv::before { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 34% 62% at var(--tpos) 38%, rgba(239, 150, 70, .34) 0, rgba(239, 150, 70, .12) 55%, rgba(239, 150, 70, 0) 100%),
    radial-gradient(ellipse 58% 90% at var(--tpos) 46%, rgba(239, 168, 94, .22) 0, rgba(239, 168, 94, 0) 100%); }
/* une ombre portée douce sous le haut du cadre, pour que le bandeau d'état et l'en-tête reposent sur quelque chose */
.ouv::after { content: ""; position: absolute; z-index: 2; inset: 0 0 auto 0; height: 90px; pointer-events: none; background: linear-gradient(to bottom, rgba(120, 60, 24, .1), rgba(120, 60, 24, 0)); }
.ouv-photo .legende { position: absolute; z-index: 4; bottom: 14px; right: max(var(--g), calc((100vw - var(--wmax)) / 2 + var(--g))); margin: 0; padding: .125rem .6rem; border-radius: 999px; background: rgba(246, 240, 228, .92); font-size: .875rem; color: var(--encre); }
.ouv h1.t-filet { font-size: clamp(2.75rem, .9rem + 4.6vw, 4.875rem); line-height: 1.04; }
.ouv-texte { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding-top: calc(var(--ph) - 96px); }
.ouv-sous { max-width: 34rem; margin-top: .6rem; font-size: 1.0625rem; line-height: 1.42; }
.ouv-actions { display: grid; gap: .5rem; width: 100%; margin-top: .75rem; }
.ouv-actions .btn { min-height: 2.875rem; }
/* Le voyant de permanence : ce que seul ce site fait, en direct (app.js), en 18 px ; point plein quand l'urgence est joignable */
.statut-ouv { align-items: flex-start; gap: .7rem; margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.4; font-weight: 600; }
.statut-ouv .dot { width: .75rem; height: .75rem; margin-top: .38em; }
.ouv-gestes { margin-top: .1rem; padding-left: 1.45rem; }
.garanties { display: grid; gap: .3rem; margin: 1.6rem 0 0; padding: 0; list-style: none; font-weight: 500; }
.garanties li { display: flex; align-items: center; gap: .6rem; min-height: 2rem; }
.garanties .ico { color: var(--cuivre); }
/* Téléphone : le titre, puis les boutons, puis la phrase d'explication (les 2 boutons restent dans le premier écran) */
@media (max-width: 719px) {
  /* la photo couvre le haut de l'écran sur --ph de hauteur (tout l'écran moins l'en-tête et le bloc titre + boutons) ; le titre en recouvre le bas, déjà fondu */
  .ouv { --ph: clamp(210px, calc(100svh - 360px), 560px); --tpos: 49vw; }
  .ouv-photo { bottom: auto; height: var(--ph); }
  .fondu { -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.6) 28px, #000 64px, #000 calc(100% - 210px), rgba(0,0,0,.5) calc(100% - 150px), rgba(0,0,0,.16) calc(100% - 96px), rgba(0,0,0,.05) calc(100% - 50px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.6) 28px, #000 64px, #000 calc(100% - 210px), rgba(0,0,0,.5) calc(100% - 150px), rgba(0,0,0,.16) calc(100% - 96px), rgba(0,0,0,.05) calc(100% - 50px), transparent 100%); }
  .fondu img { --iw: 300vw; top: -34px; }
  .fondu::before { background: radial-gradient(ellipse 80% 90% at var(--tpos) 38%, rgba(40, 20, 8, 0) 50%, rgba(40, 20, 8, .45) 100%); }
  .ouv-photo .legende { top: 10px; bottom: auto; right: auto; left: var(--g); font-size: .8125rem; }
  /* la puce « Démo » (script partagé) reste en haut à droite, sur la photo, sous l'en-tête : elle ne recouvre ni titre ni bouton */
  .demo-pastille.reduite { transform: translate(calc(var(--demo-vw, 100vw) - 100% - 10px), 98px) !important; }
  .ouv h1.t-filet { font-size: 2.75rem; }
  .ouv-sous { order: 3; margin-top: 1rem; }
  .ouv-actions { order: 2; }
  .statut-ouv { order: 4; }
  .ouv-gestes { order: 5; }
}
/* Petits téléphones (jusqu'à 379 px) : titre et texte resserrés, pour que le titre et les deux boutons tiennent au-dessus de la barre d'appel */
@media (max-width: 379px) {
  .ouv { padding-block: .5rem 2rem; }
  .ouv h1.t-filet { font-size: 2.375rem; }
  .ouv-sous { margin-top: .5rem; font-size: 1.0625rem; line-height: 1.4; }
  .ouv-actions { margin-top: .75rem; }
  .ouv-actions .btn { min-height: 2.75rem; }
}
@media (min-width: 480px) { .ouv-actions { display: flex; flex-wrap: wrap; width: auto; gap: .75rem; } .ouv-actions .btn { min-height: 3.25rem; } }
@media (min-width: 720px) {
  .ouv { display: flex; align-items: center; min-height: clamp(620px, calc(100svh - 116px), 900px); padding-block: 2rem clamp(2rem, 4vw, 4rem); }
  .ouv-grille { width: 100%; }
  .ouv-grille { grid-template-columns: minmax(0, 1fr); }
  .ouv-texte { padding-top: 0; width: min(100%, 36rem); }
  .ouv-sous { margin-top: 1.1rem; font-size: 1.0625rem; line-height: 1.6; max-width: 30rem; }
  .ouv-actions { margin-top: 1.6rem; }
  /* Ordinateur : la photo couvre tout le premier écran ; le texte reste à gauche sur l'émail, la photo y est fondue */
}
@media (min-width: 720px) and (max-width: 1099px) { .ouv { --tpos: 77vw; --tx: 41vw; } .ouv-texte { width: 52%; } .fondu img { --iw: 1600px; } }

/* Services : quatre colonnes ouvertes, ni carte ni ombre */
.svc-grille { display: grid; gap: 2.5rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.fiche { display: flex; flex-direction: column; min-width: 0; }
.fiche .photo { margin-bottom: 1rem; }
.fiche-t { font-size: 1.375rem; line-height: 1.15; }
.fiche-r { margin: .5rem 0 1.1rem; color: var(--doux); }
.prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .6rem; margin-top: auto; padding-top: .95rem; border-top: 1px solid var(--filet); }
.prix b { font: 600 1.75rem/1.1 var(--titre); color: var(--cuivre); }
.prix span { font-size: .9375rem; color: var(--doux); }
.fiche-d { margin-top: .3rem; font-size: .9375rem; color: var(--doux); }
.fiche-l { align-self: flex-start; margin-top: .2rem; }
.fiche-bas { display: flex; flex-direction: column; align-items: flex-start; }
.note { max-width: 54ch; margin-top: 2.25rem; font-size: .9375rem; color: var(--doux); }
/* 2 rangées de 2 : chaque photo fait plus de 600 px de large sur ordinateur */
@media (min-width: 640px) { .svc-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4.5rem) clamp(1.75rem, 3.5vw, 3.5rem); } .fiche .photo img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; } .fiche-t { font-size: 1.75rem; } }
@media (max-width: 639px) {
  .svc-grille { gap: 2rem; }
  .fiche { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); grid-template-areas: "ph t" "ph p" "r r" "b b"; column-gap: 1rem; align-content: start; }
  .fiche .photo { grid-area: ph; margin: 0; }
  .fiche-t { grid-area: t; font-size: 1.375rem; align-self: end; }
  .fiche-r { grid-area: r; margin: .75rem 0 0; font-size: 1.0625rem; line-height: 1.45; }
  .prix { grid-area: p; align-self: start; margin-top: .5rem; padding-top: .5rem; }
  .fiche-bas { grid-area: b; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 1rem; }
  .fiche-bas .fiche-d, .fiche-bas .fiche-l { margin-top: 0; }
}

/* Bandeau de l'atelier : sur l'émail clair, entre 2 filets pleine largeur (le sombre n'arrive qu'une fois, à la fin) */
.atelier { padding-block: var(--sp); background: var(--email-clair); border-block: 1px solid var(--filet); }
.atelier + .sec { padding-top: var(--sp); }
/* Pause large : la photo des raccords sur toute la largeur du contenu (1 216 px au plus), puis le texte en 2 colonnes */
.pause { margin: 0 0 clamp(2rem, 1rem + 3vw, 3.5rem); }
.pause img { aspect-ratio: 3 / 2; object-fit: cover; }
.atelier-grille { display: grid; gap: 2.25rem; }
.rdv { display: flex; align-items: flex-start; gap: .65rem; margin-top: 1.1rem; font-size: 1.125rem; }
.rdv .ico { margin-top: .2rem; color: var(--accent); }
.engagements { display: grid; gap: .55rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.engagements li { display: flex; align-items: flex-start; gap: .65rem; max-width: 32rem; }
.engagements .ico { margin-top: .2rem; color: var(--accent); }
.atelier-actions { margin-top: 1.9rem; }
.atelier .legende, .contact .legende { color: var(--doux); }
@media (max-width: 639px) { .estim { display: none; }  .zrep-n { min-height: 0; padding: 1rem 1.1rem; } .zcas { gap: .45rem; } }
@media (min-width: 720px) { .pause img { aspect-ratio: 12 / 5; } }
@media (min-width: 860px) { .atelier-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; } .engagements { margin-top: .4rem; } .atelier-actions { margin-top: 1.5rem; } }

/* Réalisations */
.real-grille { display: grid; gap: 2.5rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.real { min-width: 0; }
.real .photo { margin-bottom: 1rem; }
.real-t { font-size: 1.375rem; line-height: 1.15; }
.real-m { margin-top: .4rem; color: var(--doux); }
.real-lien { margin-top: 1.25rem; }
@media (min-width: 640px) { .real-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } .real-t { font-size: 1.375rem; } }
@media (min-width: 960px) { .real-t { font-size: 1.375rem; } }
@media (max-width: 639px) {
  .real-grille { gap: 1.75rem; }
  .real { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); grid-template-areas: "ph t" "ph m"; column-gap: 1rem; align-content: start; }
  .real .photo { grid-area: ph; margin: 0; }
  .real-t { grid-area: t; align-self: end; font-size: 1.375rem; }
  .real-m { grid-area: m; margin-top: .3rem; }
}

/* Zone : le schéma au trait, cadré en équerres comme une photo */
.zone-schema { min-width: 0; width: 100%; max-width: 560px; margin: 0; }
.zone-schema svg { display: block; width: 100%; height: auto; }
.zone-schema .legende { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1rem; }
.zs text { font-family: var(--texte); font-weight: 600; fill: var(--encre); paint-order: stroke; stroke: #FFFCF5; stroke-width: 5px; stroke-linejoin: round; }
.zs .zs-k text { font-weight: 500; fill: #3F4B4D; stroke: #E4F0EC; }
.zs .zs-k text:first-child { stroke: #FFFCF5; }
/* 15 px à l'écran au moins, quelle que soit la largeur du schéma (600 unités) */
.zs text { font-size: 32px; }
@media (min-width: 420px) { .zs text { font-size: 25px; } }
@media (min-width: 500px) { .zs text { font-size: 21px; } }
@media (min-width: 600px) { .zs text { font-size: 17px; } }
.zno { margin-top: .9rem; max-width: 34rem; }


/* Devis en trois étapes : le tube */
.devis-grille { display: grid; gap: 2.25rem; grid-template-areas: "tete" "tube" "estim" "actions"; }
.devis-tete { grid-area: tete; margin: 0; }
.tube { grid-area: tube; display: grid; gap: 2.25rem; margin: 0; padding: 0; list-style: none; }
.estim { grid-area: estim; max-width: 34rem; padding: 1.1rem 1.25rem; border: 1px solid var(--filet); background: var(--email-clair); }
.devis-actions { grid-area: actions; }
.estim-tag { display: inline-block; padding: .1rem .6rem; border: 1.5px solid var(--cuivre); border-radius: 4px; font-size: .9375rem; font-weight: 600; color: var(--cuivre); }
.estim-l { margin-top: .7rem; font-size: 1.0625rem; }
.estim-v { display: block; margin-top: .1rem; font: 600 1.75rem/1.2 var(--titre); color: var(--cuivre); }
.estim-n { max-width: 50ch; margin-top: .6rem; font-size: .9375rem; color: var(--doux); }
.tube-choix { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem !important; }
.tube-choix a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .9rem; border: 1.5px solid var(--encre); border-radius: 6px; color: var(--encre); font-weight: 600; font-size: 1.0625rem; text-decoration: none; }
.tube-choix a:hover { background: var(--encre); color: var(--email); }
@media (min-width: 860px) {
  .devis-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); grid-template-rows: auto auto 1fr; column-gap: clamp(2rem, 6vw, 6rem); row-gap: 2rem; grid-template-areas: "tete tube" "estim tube" "actions tube"; align-items: start; }
}


/* Fin de page : l'appel, la ligne du jour (app.js), un lien vers les horaires et les premiers gestes de la page Contact */
.jour { font-size: 1.125rem; font-weight: 600; }
.contact-liens { margin-top: .2rem; }
.gestes-ligne { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; }
.gestes-ligne .ico { color: var(--accent); }
.contact .lien { color: var(--email); text-decoration-color: var(--cuivre-clair); }
.contact .lien:hover { color: var(--email-clair); }
/* Pied de l'accueil : sans « Nous joindre » (numéro, statut et adresse sont juste au-dessus) */

/* Pause de l'atelier (grande photo de la main au raccord) : photo de contenu, nette, sans équerres ni filet de cadre */
.pause .cadre { padding: 0; }
.pause .cadre .eq { display: none; }
.pause .cadre img { outline: 0; }
