:root {
  --ink: #172033;
  --muted: #667085;
  --white: #ffffff;

  --blue: #2563eb;
  --cyan: #06b6d4;
  --teal: #0f766e;
  --green: #16a34a;
  --yellow: #facc15;
  --orange: #f97316;
  --pink: #ec4899;
  --purple: #7c3aed;
  --red: #ef4444;

  --radius-xl: 34px;
  --radius-lg: 24px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.13);
  --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.14);
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 9%, rgba(250, 204, 21, 0.55), transparent 18rem),
    radial-gradient(circle at 96% 12%, rgba(236, 72, 153, 0.22), transparent 20rem),
    radial-gradient(circle at 80% 86%, rgba(6, 182, 212, 0.28), transparent 22rem),
    linear-gradient(135deg, #fff7ed 0%, #eff6ff 46%, #fdf2f8 100%);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  transform: translateY(-180%);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.outline-icon {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  margin-bottom: clamp(1.25rem, 3vw, 2.4rem);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px);
}

.brand-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.5);
  outline-offset: 4px;
}

.site-logo {
  display: block;
  width: min(295px, 72vw);
  height: auto;
}

/* =========================
   Logo principal dans l'en-tête
   Remplace le bloc texte Portail familial / Faucon.info / accroche.
========================= */

.hero-logo-card {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 430px);
  padding: clamp(0.8rem, 2vw, 1.35rem);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(12px);
  text-decoration: none;
}

.hero-logo-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.5);
  outline-offset: 4px;
}

.hero-main-logo {
  display: block;
  width: min(100%, 340px);
  height: auto;
}

/* =========================
   En-tête
========================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem) 0 1.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 1rem;
  z-index: -1;
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.36));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.kicker,
.section-label {
  margin: 0 0 0.65rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.3rem, 9vw, 7.4rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
}

.lead {
  max-width: 42rem;
  margin-top: 1.3rem;
  color: #475467;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
}

.hero-bubbles {
  position: relative;
  min-height: 310px;
}

.bubble {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(5.4rem, 10vw, 8rem);
  aspect-ratio: 1;
  border: 4px solid rgba(255, 255, 255, 0.72);
  border-radius: 36% 64% 60% 40% / 46% 35% 65% 54%;
  color: white;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-card);
}

.bubble .outline-icon {
  width: 54%;
  height: 54%;
  stroke-width: 1.7;
}

.bubble-1 {
  top: 1.2rem;
  left: 13%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.bubble-2 {
  top: 5.5rem;
  right: 8%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.bubble-3 {
  bottom: 2rem;
  left: 3%;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
}

.bubble-4 {
  right: 25%;
  bottom: 0.2rem;
  background: linear-gradient(135deg, var(--green), var(--teal));
}

/* =========================
   Sections
========================= */

.page-stack {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 0 2rem;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.1rem, 3vw, 2rem);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.panel::after {
  content: "";
  position: absolute;
  inset: auto -8% -48% auto;
  width: 22rem;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.22;
  pointer-events: none;
}

.panel-tools::after { background: var(--cyan); }
.panel-nas::after { background: var(--purple); }
.panel-photos::after { background: var(--orange); }

.section-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.icon-grid,
.nas-grid,
.photo-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

/* =========================
   Outils communs
========================= */

.icon-card {
  display: grid;
  min-height: 12.4rem;
  padding: 1.15rem;
  border-radius: var(--radius-lg);
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.icon-card:hover,
.icon-card:focus-visible,
.nas-card:hover,
.nas-card:focus-visible,
.photo-card:hover,
.photo-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.20);
  outline: none;
}

.icon {
  display: grid;
  place-items: center;
  width: 4.2rem;
  aspect-ratio: 1;
  margin-bottom: auto;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 2rem;
  color: #ffffff;
}

.icon .outline-icon {
  width: 2.2rem;
  height: 2.2rem;
  stroke-width: 1.8;
}

.card-title {
  display: block;
  margin-top: 2rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.card-text {
  display: block;
  margin-top: 0.2rem;
  max-width: 15rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.color-mail { background: linear-gradient(145deg, #2563eb, #06b6d4); }
.color-drive { background: linear-gradient(145deg, #0f766e, #22c55e); }
.color-calendar { background: linear-gradient(145deg, #f97316, #facc15); }
.color-check { background: linear-gradient(145deg, #ec4899, #ef4444); }

/* =========================
   NAS : image PNG dans boîte colorée
   - pas d'icône texte
   - image centrée
   - object-fit: contain, donc aucune déformation
========================= */

.nas-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 13.8rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #ffffff;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.nas-card::before {
  content: "";
  position: absolute;
  inset: -30% -30% auto auto;
  width: 12rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.nas-card::after {
  content: "";
  position: absolute;
  inset: auto auto -38% -30%;
  width: 13rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.nas-renard {
  background: linear-gradient(145deg, #f97316, #facc15);
}

.nas-krokmou {
  background: linear-gradient(145deg, #111827, #16a34a);
}

.nas-baymax {
  background: linear-gradient(145deg, #64748b, #e2e8f0);
}

.nas-stitch {
  background: linear-gradient(145deg, #2563eb, #06b6d4);
}

.nas-image-box {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 10.7rem;
  padding: 1rem 1rem 0.35rem;
}

.nas-image-box img {
  display: block;
  width: 100%;
  max-width: 10.8rem;
  height: 8.6rem;
  object-fit: contain;
  filter: drop-shadow(0 16px 20px rgba(15, 23, 42, 0.22));
}

.nas-title {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0.85rem 1rem 1rem;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-align: center;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.25);
}

/* =========================
   Galerie photos
========================= */

.photo-card {
  position: relative;
  overflow: hidden;
  min-height: 16rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #38bdf8, #ec4899);
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.photo-card img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.03);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.72));
}

.photo-card span {
  position: absolute;
  z-index: 1;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.footer {
  padding: 1rem 0 2.5rem;
  color: #667085;
  text-align: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-bubbles {
    min-height: 220px;
  }

  .icon-grid,
  .nas-grid,
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hero::before {
    inset: 0.5rem;
    border-radius: 28px;
  }

  .brand-bar {
    justify-content: center;
  }

  .hero-logo-card {
    width: min(100%, 360px);
    margin-inline: auto;
  }

  .hero-main-logo {
    width: min(100%, 300px);
  }

  .section-head {
    display: block;
  }

  .icon-grid,
  .nas-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .icon-card {
    min-height: 10.5rem;
  }

  .hero-bubbles {
    min-height: 180px;
  }

  .bubble {
    width: 5.2rem;
  }

  .nas-card {
    min-height: 12.6rem;
  }

  .nas-image-box {
    min-height: 9.8rem;
  }

  .nas-image-box img {
    height: 8rem;
  }
}

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