/* Webyland : la structure de storiaweb.fr, à notre sauce.
   Signature : Weby, la fenêtre de site qui salue (logo), reprise par la vitrine du haut de page. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --encre: #13213C;
  --encre-douce: #4A5672;
  --lagon: #0E7C86;
  --lagon-texte: #0B6870;
  --marine: #1B5A9E;
  --lagon-clair: #2EC4B6;
  --ecume: #E6F5F4;
  --soleil: #FFC94D;
  --fond: #FFFFFF;
  --fond-teinte: #F4F9F9;
  --trait: #DDE8EA;
  --degrade: linear-gradient(100deg, var(--lagon) 0%, var(--marine) 100%);
  --ombre: 0 22px 44px -26px rgba(19, 33, 60, .38);
  --ombre-bouton: 0 12px 24px -12px rgba(14, 124, 134, .7);
  --titres: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --texte: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --entete: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titres); line-height: 1.08; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--marine); outline-offset: 3px; border-radius: 6px; }

.evitement { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--encre); color: #fff; padding: 10px 16px; border-radius: 8px; }
.evitement:focus { left: 16px; }

.conteneur { width: min(1180px, 100% - 48px); margin-inline: auto; }
.conteneur--etroit { width: min(820px, 100% - 48px); }

/* --- Titres bicolores et étiquettes ------------------------------------- */
.degrade {
  background: var(--degrade);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Étiquette de prix : bout pointu et trou de ficelle, comme en boutique */
.etiquette {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px 6px 28px;
  background: var(--ecume);
  color: var(--lagon-texte);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  border-radius: 0 8px 8px 0;
  clip-path: polygon(13px 0, 100% 0, 100% 100%, 13px 100%, 0 50%);
  -webkit-mask: radial-gradient(circle 3.5px at 16px 50%, #0000 96%, #000);
  mask: radial-gradient(circle 3.5px at 16px 50%, #0000 96%, #000);
  margin-bottom: 18px;
}
.etiquette--claire { background: rgba(255, 255, 255, .16); color: #fff; }

/* --- Boutons ------------------------------------------------------------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--texte);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.bouton--plein { background: var(--degrade); color: #fff; box-shadow: var(--ombre-bouton); }
.bouton--plein:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -12px rgba(14, 124, 134, .8); }
.bouton--contour { background: #fff; color: var(--encre); border: 2px solid var(--encre); }
.bouton--contour:hover { background: var(--ecume); }
.bouton--grand { min-height: 56px; padding: 14px 28px; font-size: 17px; }

/* --- En-tête ------------------------------------------------------------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.entete.est-defile { border-bottom-color: var(--trait); }
.entete__ligne { display: flex; align-items: center; gap: 28px; height: var(--entete); }

.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); }
.marque__weby { width: 56px; height: 46px; flex: none; color: var(--encre); }
.marque__nom { font-family: var(--titres); font-weight: 800; font-size: 26px; letter-spacing: -.035em; line-height: 1; }

.menu { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.menu a:not(.bouton) { text-decoration: none; font-weight: 600; font-size: 16px; color: var(--encre); padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:not(.bouton):hover { border-bottom-color: var(--lagon-clair); }
.menu a[aria-current="page"] { border-bottom-color: var(--lagon); color: var(--lagon-texte); }
.menu__appel { display: none; }
.entete__burger { display: none; }

/* --- Haut de page -------------------------------------------------------- */
.haut {
  position: relative;
  overflow: hidden;
  padding: 64px 0 88px;
  background:
    radial-gradient(520px 420px at 4% 18%, rgba(46, 196, 182, .16), transparent 70%),
    radial-gradient(460px 380px at 96% 70%, rgba(255, 201, 77, .20), transparent 70%),
    linear-gradient(180deg, #F2FAF9 0%, #FFFFFF 100%);
}
.haut__grille { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.haut h1 {
  font-size: clamp(42px, 5.4vw, 70px);
  font-weight: 800;
  font-stretch: 92%;
  letter-spacing: -.03em;
  line-height: 1.02;
  max-width: 13ch;
}
.haut__chapo { margin-top: 24px; font-size: 19px; color: var(--encre-douce); max-width: 34em; }
.haut__boutons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.haut__prix { margin-top: 20px; font-size: 16px; color: var(--encre-douce); }
.haut__prix strong { color: var(--encre); }

/* La vitrine : le vrai site de Chez Izza, sans cadre, et son téléphone par-dessus */
.vitrine { position: relative; margin: 0; padding: 0 22px 0 0; }
.vitrine__fenetre {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--ombre);
}
.vitrine__fenetre img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.vitrine__tel {
  position: absolute;
  right: 0;
  bottom: -36px;
  width: 150px;
  border: 6px solid var(--encre);
  border-radius: 26px;
  overflow: hidden;
  background: var(--encre);
  box-shadow: 0 26px 40px -22px rgba(19, 33, 60, .6);
  z-index: 3;
}
.vitrine__tel img { width: 100%; aspect-ratio: 390 / 760; object-fit: cover; object-position: top; border-radius: 20px; }
.vitrine figcaption { margin-top: 18px; font-size: 14.5px; color: var(--encre-douce); max-width: calc(100% - 170px); }
.vitrine figcaption a { color: var(--lagon-texte); font-weight: 700; text-underline-offset: 3px; }
.insecable { white-space: nowrap; }


/* --- Blocs ---------------------------------------------------------------- */
.bloc { padding: 96px 0; }
/* Fondu entre les sections (Tommy, 25/10) : le fond teinté naît et meurt dans le blanc, sans ligne nette */
.bloc--teinte { background: linear-gradient(180deg, #fff 0, var(--fond-teinte) 140px, var(--fond-teinte) calc(100% - 140px), #fff 100%); }
/* Première section d'une page intérieure : le fond du haut de page, et un titre un cran plus grand */
.bloc--entree {
  padding-top: 72px;
  background:
    radial-gradient(520px 360px at 4% 0%, rgba(46, 196, 182, .14), transparent 70%),
    linear-gradient(180deg, #F2FAF9 0%, #FFFFFF 420px);
}
.bloc__tete { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.bloc__tete h2, .bloc__tete h1 { font-size: clamp(32px, 3.6vw, 46px); font-weight: 800; font-stretch: 94%; }
.bloc__tete h1 { font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -.03em; }
.bloc__tete > p:not(.etiquette) { margin-top: 16px; color: var(--encre-douce); font-size: 18px; }

.carte { background: #fff; border: 1px solid var(--trait); border-radius: 22px; box-shadow: var(--ombre); }

/* Contrat de site payé au mois */
.contrat { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.contrat__texte h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; font-stretch: 94%; }
.contrat__texte > p:not(.etiquette) { margin-top: 18px; color: var(--encre-douce); font-size: 18px; max-width: 36em; }
.contrat__texte .bouton { margin-top: 28px; }
.contrat__etapes { padding: 32px 30px; counter-reset: sortie; }
.contrat__etapes li { position: relative; padding-left: 54px; counter-increment: sortie; }
.contrat__etapes li + li { margin-top: 24px; }
.contrat__etapes li::before {
  content: counter(sortie);
  position: absolute; left: 0; top: -3px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ecume); color: var(--lagon-texte);
  font-family: var(--titres); font-weight: 800; font-size: 19px;
}
.contrat__etapes strong { display: block; font-family: var(--titres); font-size: 20px; letter-spacing: -.01em; line-height: 1.2; }
.contrat__etapes span { display: block; margin-top: 4px; color: var(--encre-douce); font-size: 16px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { padding: 28px 24px 30px; }
.service__icone {
  width: 48px; height: 48px; padding: 11px;
  border-radius: 14px;
  background: var(--ecume);
  fill: none; stroke: var(--lagon-texte); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 18px;
}
.service h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.service p { color: var(--encre-douce); font-size: 16px; }
.service--large { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; background: var(--ecume); border-color: transparent; box-shadow: none; }
.service--large .service__icone { margin-bottom: 0; flex: none; background: #fff; }
.service--large p { max-width: 62em; }

/* Bande : notre façon de travailler */
.bande {
  padding: 104px 0;
  background: var(--degrade);
  color: #fff;
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 72px, #000 calc(100% - 72px), transparent 100%);
  mask: linear-gradient(180deg, transparent 0, #000 72px, #000 calc(100% - 72px), transparent 100%);
}
/* Dernière section de la page : elle fond dans le bleu nuit du pied de page, pas dans le blanc */
.bande:last-child {
  padding-bottom: 128px;
  background: linear-gradient(180deg, transparent 45%, var(--encre) 100%), var(--degrade);
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 72px);
  mask: linear-gradient(180deg, transparent 0, #000 72px);
}
.bande__grille { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.bande h2 { font-size: clamp(32px, 3.8vw, 50px); font-weight: 800; font-stretch: 92%; letter-spacing: -.03em; }
.bande__texte { font-size: 19px; line-height: 1.65; color: #EAF6F7; }

/* Tarifs */
.tarifs { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: stretch; max-width: 960px; margin: 0 auto; }
.tarif { padding: 36px 36px 38px; }
.tarif h3 { font-size: 24px; font-weight: 700; }
.tarif__prix { font-family: var(--titres); font-weight: 800; font-size: 56px; letter-spacing: -.035em; line-height: 1.05; margin: 14px 0 24px; }
.tarif__des { display: block; font-family: var(--texte); font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--encre-douce); }
.tarif__taxe { font-size: 22px; letter-spacing: 0; color: var(--encre-douce); }
.tarif--principal { border: 2px solid var(--lagon); }
.tarif--principal .bouton { margin-top: 28px; }
.tarif--annexe { background: var(--ecume); border-color: transparent; box-shadow: none; }
.tarifs__cote { display: grid; gap: 22px; }
.tarifs__cote .tarif { padding: 28px 30px 30px; }
.tarif--application { background: #fff; border: 1px solid var(--trait); }
.tarif__prix--offert { font-size: 34px; margin-bottom: 6px; color: var(--lagon-texte); }
.tarif__suite { font-weight: 700; margin-bottom: 18px; }
.tarif--annexe p:last-child { color: var(--encre-douce); }
.coches li { position: relative; padding-left: 32px; margin-top: 10px; }
.coches li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--ecume) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230B6870' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* Réalisations */
.realisations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.realisation { overflow: hidden; display: flex; flex-direction: column; }
.realisation__image { aspect-ratio: 16 / 10; background: var(--encre); overflow: hidden; }
.realisation__image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.realisation__image--tel { background: #F2ECF7; display: grid; place-items: end center; padding-top: 22px; }
.realisation__image--tel img {
  width: 46%; height: auto; aspect-ratio: 390 / 560; object-fit: cover; object-position: center 62%;
  border: 6px solid var(--encre); border-bottom: 0; border-radius: 22px 22px 0 0;
}
.realisation__corps { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.realisation h3 { font-size: 24px; font-weight: 700; }
.realisation__corps > p:not(.pastille) { color: var(--encre-douce); font-size: 16px; }
.pastille { align-self: flex-start; background: var(--ecume); color: var(--lagon-texte); font-size: 13.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.lien { margin-top: auto; padding-top: 8px; color: var(--lagon-texte); font-weight: 700; text-underline-offset: 4px; }

/* Avis : un bandeau qui défile tout seul (le script clone les cartes), s'arrête au survol */
.bloc--avis { padding-bottom: 72px; }
.bloc--avis .bloc__tete { margin-bottom: 36px; }
.defile {
  overflow-x: auto;
  padding: 8px 0 28px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.defile__piste { display: flex; gap: 22px; width: max-content; padding: 0 6vw; }
.defile--anime { overflow: hidden; }
.defile--anime .defile__piste { padding: 0; animation: defile 45s linear infinite; }
.defile--anime:hover .defile__piste, .defile--anime:focus-within .defile__piste { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(calc(-25% - 5.5px)); } }
.avis__carte { flex: none; width: 380px; padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.avis__carte blockquote { margin: 0; flex: 1; }
.avis__carte blockquote p { font-size: 16.5px; line-height: 1.6; }
.etoiles { display: flex; gap: 3px; }
.etoiles svg { width: 20px; height: 20px; fill: var(--soleil); }
.avis__qui { font-weight: 700; font-family: var(--titres); font-size: 18px; }

/* Étapes : une vraie suite, donc numérotée */
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: none; position: relative; }
.etapes::before {
  content: "";
  position: absolute; top: 27px; left: 16%; right: 16%;
  border-top: 2px dashed var(--trait);
}
.etape { position: relative; text-align: center; padding: 0 8px; }
.etape__numero {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--degrade); color: #fff;
  font-family: var(--titres); font-weight: 800; font-size: 24px;
  box-shadow: 0 0 0 8px #fff, var(--ombre-bouton);
  margin-bottom: 20px;
}
.etape h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.etape p { color: var(--encre-douce); font-size: 16px; max-width: 30ch; margin-inline: auto; }

/* Questions */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--trait); border-radius: 16px; }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 56px 20px 24px; position: relative;
  font-weight: 700; font-size: 17.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--lagon); border-bottom: 2.5px solid var(--lagon);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 24px 22px; color: var(--encre-douce); }

/* Contact */
.contact { text-align: center; padding: 56px 40px; }
.contact h2, .contact h1 { font-size: clamp(32px, 3.6vw, 46px); font-weight: 800; font-stretch: 94%; }
.contact > p { margin-top: 14px; color: var(--encre-douce); font-size: 18px; }
.contact__boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

/* Pied de page */
.pied { background: var(--encre); color: #C9D3E3; padding: 64px 0 28px; }
.pied .marque { color: #fff; }
.pied .marque__weby { color: #fff; }
.pied__grille { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.pied__marque { max-width: 380px; }
.pied__marque p { margin-top: 16px; font-size: 15.5px; }
.pied__liens { display: flex; flex-wrap: wrap; gap: 12px 28px; align-content: flex-start; }
.pied__liens a, .pied__bas a { color: #fff; text-decoration: none; font-weight: 600; }
.pied__liens a:hover, .pied__bas a:hover { text-decoration: underline; }
.pied__bas { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14.5px; }

/* --- Tablette et téléphone ------------------------------------------------ */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .menu { gap: 20px; }
}

@media (max-width: 960px) {
  :root { --entete: 66px; }
  .entete__appel { display: none; }
  .entete__burger {
    display: inline-grid; gap: 5px; margin-left: auto;
    width: 46px; height: 46px; place-content: center;
    background: none; border: 0; border-radius: 12px; cursor: pointer;
  }
  .entete__burger span { display: block; width: 24px; height: 2.5px; background: var(--encre); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .entete__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .entete__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .entete__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .menu {
    position: absolute; left: 0; right: 0; top: var(--entete);
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--trait);
    padding: 8px 24px 24px;
    box-shadow: 0 20px 30px -24px rgba(19, 33, 60, .5);
  }
  .js .menu:not(.est-ouvert) { display: none; }
  .menu a:not(.bouton) { padding: 14px 0; border-bottom: 1px solid var(--trait); font-size: 18px; }
  .menu__appel { display: inline-flex; margin-top: 18px; }

  .haut { padding: 40px 0 80px; }
  .haut__grille { grid-template-columns: 1fr; gap: 48px; }
  .haut h1 { max-width: 15ch; }
  .vitrine { max-width: 620px; }

  .bande__grille { grid-template-columns: 1fr; gap: 20px; }
  .contrat { grid-template-columns: 1fr; gap: 36px; }
  .tarifs { grid-template-columns: 1fr; max-width: 560px; }
  .realisations { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .etapes { grid-template-columns: 1fr; gap: 32px; max-width: 460px; margin: 0 auto; }
  .etapes::before { top: 28px; bottom: 28px; left: 50%; right: auto; border-top: 0; border-left: 2px dashed var(--trait); display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .conteneur, .conteneur--etroit { width: calc(100% - 32px); }
  .marque__nom { font-size: 24px; }
  .marque__weby { width: 49px; height: 40px; }
  .haut h1 { font-size: 40px; }
  .haut__chapo { font-size: 18px; }
  .haut__boutons .bouton { width: 100%; }
  .vitrine { padding-right: 0; }
  .vitrine__fenetre { border-radius: 16px; }
  .vitrine__tel { width: 104px; right: -4px; bottom: -28px; border-width: 4px; border-radius: 18px; }
  .vitrine__tel img { border-radius: 14px; }
  .vitrine figcaption { max-width: calc(100% - 116px); font-size: 14px; }
  .services { grid-template-columns: 1fr; }
  .avis__carte { width: 300px; padding: 22px 20px; }
  .service--large { flex-direction: column; align-items: flex-start; gap: 18px; }
  .bloc { padding: 72px 0; }
  .bloc__tete { margin-bottom: 36px; }
  .tarif { padding: 28px 24px 30px; }
  .tarif__prix { font-size: 48px; }
  .tarif__prix--offert { font-size: 30px; }
  .contact { padding: 44px 22px; }
  .contact__boutons .bouton { width: 100%; }
  .pied__bas { flex-direction: column; }
}
