/* =========================================================
   RB ENTREPRISE 1.0
   Dépend de css/style.css
========================================================= */


/* =========================================================
   NAVIGATION
========================================================= */

.simple-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  margin-right: 24px;
}

.simple-nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

.simple-nav a:hover,
.simple-nav a:focus-visible,
.simple-nav a.active {
  color: var(--text);
}

.simple-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
}


/* =========================================================
   HERO ENTREPRISE
========================================================= */

.company-hero {
  padding-top: 180px;
  padding-bottom: 80px;
  text-align: center;
}

.company-hero h1 {
  max-width: 1080px;
  margin: 16px auto 24px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.company-intro {
  max-width: 820px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}


/* =========================================================
   CARTES GÉNÉRALES
========================================================= */

.story-grid,
.mission-card,
.values-box,
.founder-card,
.expertise-grid article,
.company-contact-box {
  border: 1px solid var(--line);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.017)
    );
  box-shadow: 0 25px 75px rgba(0, 0, 0, 0.3);
}


/* =========================================================
   ESPACEMENT DES SECTIONS
========================================================= */

.company-story,
.mission-section,
.values-section,
.founder-section,
.company-expertise {
  padding-bottom: 108px;
}


/* =========================================================
   HISTOIRE DE L’ENTREPRISE
========================================================= */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 50px;
  padding: 46px;
  border-radius: 26px;
}

.story-main {
  align-self: center;
}

.story-main h2,
.values-intro h2,
.company-contact-box h2 {
  margin: 12px 0 22px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.story-main > p:not(.kicker) {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.75;
}


/* =========================================================
   SIGNATURE DE L’ENTREPRISE
========================================================= */

.story-signature {
  position: relative;

  min-height: 350px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 18px;

  padding: 40px 30px;

  overflow: hidden;

  text-align: center;

  border: 1px solid var(--line-gold);
  border-radius: 21px;

  background:
    radial-gradient(
      circle at 50% 28%,
      rgba(217, 172, 58, 0.16),
      transparent 12rem
    ),
    linear-gradient(
      180deg,
      rgba(18, 18, 20, 0.96) 0%,
      rgba(6, 6, 7, 0.98) 100%
    );

  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.story-signature::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      115deg,
      transparent 0%,
      transparent 35%,
      rgba(255, 255, 255, 0.045) 50%,
      transparent 65%,
      transparent 100%
    );

  transform: translateX(-120%);
  transition: transform 0.8s ease;

  pointer-events: none;
}

.story-signature::after {
  content: "";

  position: absolute;

  width: 220px;
  height: 220px;

  top: -110px;
  right: -110px;

  border-radius: 50%;

  background: rgba(217, 172, 58, 0.08);
  filter: blur(20px);

  pointer-events: none;
}

.story-signature:hover {
  transform: translateY(-5px);

  border-color: rgba(217, 172, 58, 0.7);

  box-shadow:
    0 28px 75px rgba(0, 0, 0, 0.52),
    0 0 35px rgba(217, 172, 58, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.story-signature:hover::before {
  transform: translateX(120%);
}


/* Logo de la signature */

.story-signature img {
  position: relative;
  z-index: 2;

  display: block;

  width: min(220px, 80%);
  max-width: 100%;
  height: auto;

  object-fit: contain;

  filter:
    drop-shadow(0 0 18px rgba(217, 172, 58, 0.2))
    drop-shadow(0 12px 28px rgba(0, 0, 0, 0.38));

  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.story-signature:hover img {
  transform: scale(1.045);

  filter:
    drop-shadow(0 0 28px rgba(217, 172, 58, 0.34))
    drop-shadow(0 14px 32px rgba(0, 0, 0, 0.48));
}


/* Compatibilité avec l’ancien symbole texte */

.signature-symbol {
  position: relative;
  z-index: 2;

  margin-bottom: auto;

  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 1;

  color: transparent;

  -webkit-text-stroke: 1px rgba(247, 214, 120, 0.55);
}


/* Sous-titre */

.story-signature p {
  position: relative;
  z-index: 2;

  margin: 0;

  color: var(--gold-light);

  font-size: 0.68rem;
  font-weight: 800;

  line-height: 1.6;
  letter-spacing: 0.14em;

  text-transform: uppercase;
}


/* Slogan */

.story-signature strong {
  position: relative;
  z-index: 2;

  display: block;

  color: var(--text);

  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;

  line-height: 1.5;
  letter-spacing: 0.03em;
}


/* =========================================================
   TITRES DE SECTIONS
========================================================= */

.section-heading {
  max-width: 800px;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin: 10px 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-wrap: balance;
}


/* =========================================================
   MISSION
========================================================= */

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mission-card {
  min-height: 330px;
  padding: 30px;
  border-radius: 22px;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-gold);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.38);
}

.mission-card > span {
  color: rgba(247, 214, 120, 0.42);
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
}

.mission-card h3 {
  margin: 45px 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  line-height: 1.2;
}

.mission-card p {
  color: var(--muted);
  line-height: 1.7;
}


/* =========================================================
   VALEURS
========================================================= */

.values-box {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: 45px;
  padding: 46px;
  border-radius: 26px;
}

.values-intro {
  align-self: start;
}

.values-list article {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.values-list article:first-child {
  padding-top: 0;
}

.values-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.values-list strong {
  display: block;
  margin-bottom: 7px;
  color: var(--gold-light);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
}

.values-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}


/* =========================================================
   FONDATEUR
========================================================= */

.founder-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 55px;

  padding: 46px;

  border-radius: 26px;
}


/* Photo du fondateur */

.founder-visual {
  position: relative;

  width: min(100%, 380px);
  aspect-ratio: 1 / 1;

  justify-self: center;

  overflow: hidden;

  border: 4px solid rgba(214, 173, 57, 0.9);
  border-radius: 50%;

  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(217, 172, 58, 0.13),
      transparent 65%
    ),
    #111;

  box-shadow:
    0 0 0 8px rgba(214, 173, 57, 0.08),
    0 15px 45px rgba(0, 0, 0, 0.45),
    0 0 38px rgba(214, 173, 57, 0.1);

  display: flex;
  align-items: center;
  justify-content: center;

  isolation: isolate;
}

.founder-visual::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 2;

  border-radius: inherit;

  background:
    linear-gradient(
      180deg,
      transparent 60%,
      rgba(0, 0, 0, 0.18) 100%
    );

  pointer-events: none;
}

.founder-visual img {
  position: relative;
  z-index: 1;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center top;

  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

.founder-visual:hover img {
  transform: scale(1.05);
  filter: contrast(1.03) brightness(1.03);
}


/* Contenu du fondateur */

.founder-content {
  min-width: 0;
  align-self: center;
}

.founder-content h2 {
  margin: 10px 0 5px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.founder-content h3 {
  margin: 0 0 24px;
  color: var(--gold-light);
  font-size: 1rem;
  line-height: 1.5;
}

.founder-content > p {
  margin: 15px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.founder-content blockquote {
  margin: 28px 0 0;
  padding: 20px 0 0 22px;

  border-left: 2px solid var(--gold);

  color: #e5e5e6;

  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.55;
}


/* =========================================================
   EXPERTISE
========================================================= */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.expertise-grid article {
  min-height: 170px;
  padding: 27px;
  border-radius: 20px;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.expertise-grid article:hover {
  transform: translateY(-5px);
  border-color: var(--line-gold);
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.38);
}

.expertise-grid span {
  color: var(--gold-light);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.expertise-grid h3 {
  margin: 50px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  line-height: 1.3;
}


/* =========================================================
   CONTACT
========================================================= */

.company-contact {
  padding-bottom: 100px;
}

.company-contact-box {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 32px;

  padding: 42px;

  border-radius: 26px;
}

.company-contact-box h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.company-contact-actions {
  min-width: 225px;

  display: flex;
  flex-direction: column;

  gap: 12px;
}


/* =========================================================
   TABLETTE
========================================================= */

@media (max-width: 980px) {

  .simple-nav {
    display: none;
  }

  .story-grid,
  .values-box,
  .founder-card {
    grid-template-columns: 1fr;
  }

  .story-grid {
    gap: 36px;
  }

  .values-box {
    gap: 32px;
  }

  .founder-card {
    gap: 40px;
  }

  .mission-grid,
  .expertise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-signature {
    min-height: 320px;
  }

  .founder-visual {
    width: min(100%, 340px);
  }

  .company-contact-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .company-contact-actions {
    width: 100%;
    min-width: 0;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

  .company-hero {
    padding-top: 135px;
    padding-bottom: 60px;
  }

  .company-hero h1 {
    font-size: clamp(2.6rem, 13vw, 4.4rem);
  }

  .company-story,
  .mission-section,
  .values-section,
  .founder-section,
  .company-expertise {
    padding-bottom: 78px;
  }

  .story-grid,
  .values-box,
  .founder-card,
  .company-contact-box {
    padding: 28px;
    border-radius: 22px;
  }

  .story-grid,
  .values-box,
  .founder-card {
    gap: 30px;
  }

  .mission-grid,
  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .mission-card {
    min-height: auto;
    padding: 26px;
  }

  .mission-card h3 {
    margin-top: 32px;
  }

  .story-signature {
    min-height: auto;
    padding: 32px 22px;
    border-radius: 18px;
  }

  .story-signature img {
    width: min(180px, 75%);
  }

  .story-signature p {
    font-size: 0.66rem;
    letter-spacing: 0.11em;
  }

  .story-signature strong {
    font-size: 0.84rem;
  }

  .founder-visual {
    width: min(100%, 300px);
  }

  .founder-content h2 {
    font-size: clamp(2.25rem, 12vw, 3.4rem);
  }

  .founder-content blockquote {
    padding-left: 18px;
    font-size: 1.08rem;
  }

  .expertise-grid h3 {
    margin-top: 38px;
  }

  .company-contact {
    padding-bottom: 78px;
  }
}


/* =========================================================
   PETITS ÉCRANS
========================================================= */

@media (max-width: 420px) {

  .story-grid,
  .values-box,
  .founder-card,
  .company-contact-box {
    padding: 22px;
  }

  .story-signature {
    padding: 28px 18px;
  }

  .story-signature img {
    width: min(155px, 75%);
  }

  .story-signature p {
    font-size: 0.62rem;
    letter-spacing: 0.09em;
  }

  .story-signature strong {
    font-size: 0.78rem;
  }

  .founder-visual {
    width: min(100%, 260px);
  }

  .founder-content h3 {
    font-size: 0.92rem;
  }
}


/* =========================================================
   ACCESSIBILITÉ
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .story-signature,
  .story-signature::before,
  .story-signature img,
  .mission-card,
  .expertise-grid article,
  .founder-visual img,
  .simple-nav a {
    transition: none;
  }

  .story-signature:hover,
  .mission-card:hover,
  .expertise-grid article:hover {
    transform: none;
  }

  .story-signature:hover img,
  .founder-visual:hover img {
    transform: none;
  }
}