/*
Theme Name: Apprentissimo
Author: Codex
Description: Landing page WordPress pour le salon Apprentissimo.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: apprentissimo
*/

:root {
  --app-navy: #19182e;
  --app-muted: #6f7786;
  --app-soft: #fff8f5;
  --app-soft-pink: #fff0f6;
  --app-soft-orange: #fff8ed;
  --app-soft-purple: #f9effd;
  --app-pink: #ff5f99;
  --app-orange: #ffa220;
  --app-purple: #a62ac4;
  --app-line: #eadde6;
  --app-card: #ffffff;
  --app-shadow: 0 28px 70px rgba(25, 24, 46, 0.14);
  --app-radius: 22px;
  --app-max: 1120px;
}

.apprentissimo-page,
.apprentissimo-page *,
.apprentissimo-page *::before,
.apprentissimo-page *::after,
.app-footer,
.app-footer *,
.app-footer *::before,
.app-footer *::after {
  box-sizing: border-box;
}

.apprentissimo-page {
  margin: 0;
  color: var(--app-navy);
  background: #ffffff;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.app-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.apprentissimo-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.apprentissimo-page a,
.app-footer a {
  color: inherit;
  text-decoration: none;
}

.apprentissimo-page button,
.apprentissimo-page input,
.apprentissimo-page textarea {
  font: inherit;
}

.apprentissimo-page {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 95, 153, 0.08), transparent 30%),
    radial-gradient(circle at 91% 11%, rgba(255, 162, 32, 0.08), transparent 34%),
    #ffffff;
}

.app-container {
  width: min(var(--app-max), calc(100% - 48px));
  margin-inline: auto;
}

.app-hero {
  min-height: 940px;
  padding: 88px 0 78px;
  background:
    linear-gradient(128deg, rgba(255, 95, 153, 0.08) 0%, rgba(255, 162, 32, 0.12) 51%, rgba(166, 42, 196, 0.08) 100%),
    #fff9f3;
}

.app-hero__inner {
  display: grid;
  justify-items: center;
  text-align: center;
}

.app-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 18px;
  color: var(--app-pink);
  background: rgba(255, 95, 153, 0.11);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.app-eyebrow svg {
  width: 16px;
  height: 16px;
  color: var(--app-navy);
}

.app-hero h1 {
  margin: 34px 0 18px;
  color: var(--app-purple);
  font-size: clamp(50px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 800;
}

.app-hero__claim {
  margin: 0;
  color: var(--app-navy);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  font-weight: 800;
}

.text-pink {
  color: var(--app-pink);
}

.text-orange {
  color: var(--app-orange);
}

.text-purple {
  color: var(--app-purple);
}

.app-hero__lead {
  width: min(630px, 100%);
  margin: 28px auto 0;
  color: var(--app-muted);
  font-size: 20px;
  line-height: 1.42;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.app-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 34px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.app-button svg {
  width: 18px;
  height: 18px;
}

.app-button:hover,
.app-button:focus-visible {
  transform: translateY(-2px);
}

.app-button--primary {
  color: #fff;
  background: linear-gradient(100deg, var(--app-pink), #ff7a77 48%, var(--app-pink));
  box-shadow: 0 18px 34px rgba(255, 95, 153, 0.22);
}

.app-button--outline {
  color: var(--app-purple);
  background: rgba(255, 255, 255, 0.38);
  border-color: var(--app-purple);
}

.app-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 24px;
  width: min(460px, 100%);
  margin: 48px auto 46px;
}

.app-stat strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.app-stat span {
  display: block;
  margin-top: 4px;
  color: var(--app-muted);
  font-size: 13px;
}

.app-hero__image {
  width: min(824px, 100%);
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(25, 24, 46, 0.15);
}

.app-section {
  padding: 94px 0;
  background: #fff;
}

.app-section--soft {
  background:
    linear-gradient(180deg, #fff 0%, #fffdfb 100%);
}

.app-section__header {
  width: min(830px, 100%);
  margin: 0 auto 58px;
  text-align: center;
}

.app-section__header h2 {
  margin: 0;
  color: var(--app-navy);
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.14;
  font-weight: 800;
}

.app-section__header p {
  width: min(760px, 100%);
  margin: 12px auto 0;
  color: var(--app-muted);
  font-size: 19px;
  line-height: 1.45;
}

.app-info-grid,
.app-sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.app-card {
  min-height: 200px;
  padding: 30px 32px;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  background: var(--app-card);
}

.app-card--pink {
  background: var(--app-soft-pink);
  border-color: #ffd3e2;
}

.app-card--orange {
  background: var(--app-soft-orange);
  border-color: #ffe0ad;
}

.app-card--purple {
  background: var(--app-soft-purple);
  border-color: #eac7f3;
}

.app-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  color: #fff;
  border-radius: 50%;
}

.app-icon svg {
  width: 25px;
  height: 25px;
}

.app-icon--pink {
  background: var(--app-pink);
}

.app-icon--orange {
  background: var(--app-orange);
  color: var(--app-navy);
}

.app-icon--purple {
  background: var(--app-purple);
}

.app-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 800;
}

.app-card p {
  margin: 0;
  color: var(--app-muted);
  font-size: 15px;
}

.app-card strong {
  display: block;
  margin-bottom: 3px;
  color: var(--app-navy);
}

.app-reasons {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 58px;
  align-items: center;
  margin-top: 64px;
  padding: 50px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(25, 24, 46, 0.06);
}

.app-reasons h3 {
  margin: 0 0 20px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
}

.app-check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-check-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--app-navy);
  font-size: 16px;
}

.app-check-list svg {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--app-pink);
}

.app-reasons__image {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(25, 24, 46, 0.13);
}

.app-sector-card {
  min-height: 154px;
  padding: 24px;
}

.app-sector-card .app-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
}

.app-sector-card h3 {
  font-size: 18px;
}

.app-brand-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 58px;
}

.app-brand-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  color: var(--app-muted);
  background: #fff;
  border: 1px solid #e4e4e9;
  border-radius: 999px;
  font-size: 15px;
}

.app-signup {
  padding: 86px 0 94px;
  background:
    linear-gradient(138deg, rgba(255, 95, 153, 0.08) 0%, rgba(255, 162, 32, 0.08) 46%, rgba(166, 42, 196, 0.08) 100%),
    #fffaf8;
}

.app-signup .app-section__header {
  margin-bottom: 36px;
}

.app-form-card {
  width: min(790px, 100%);
  margin: 0 auto;
  padding: 50px;
  background: #fff;
  border: 1px solid rgba(25, 24, 46, 0.08);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
}

.app-form-feedback {
  margin: 0 0 22px;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
}

.app-form-feedback--success {
  color: #17663b;
  background: #eaf8ef;
}

.app-form-feedback--error {
  color: #8e1d2c;
  background: #ffe9ee;
}

.app-signup-form {
  display: grid;
  gap: 24px;
}

.app-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.app-field {
  display: grid;
  gap: 10px;
}

.app-field--full {
  grid-column: 1 / -1;
}

.app-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--app-navy);
  font-weight: 700;
}

.app-label svg {
  width: 18px;
  height: 18px;
}

.app-label--pink svg {
  color: var(--app-pink);
}

.app-label--orange svg {
  color: var(--app-orange);
}

.app-label--purple svg {
  color: var(--app-purple);
}

.app-input,
.app-textarea {
  width: 100%;
  border: 1px solid #dddfe6;
  background: #fafbfc;
  color: var(--app-navy);
  border-radius: 20px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.app-input {
  min-height: 50px;
  padding: 0 18px;
}

.app-textarea {
  min-height: 120px;
  padding: 16px 18px;
  resize: vertical;
}

.app-input:focus,
.app-textarea:focus {
  background: #fff;
  border-color: var(--app-pink);
  box-shadow: 0 0 0 4px rgba(255, 95, 153, 0.12);
}

.app-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 6px;
  color: #fff;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(100deg, var(--app-pink) 0%, #ff8b68 45%, var(--app-orange) 55%, var(--app-purple) 100%);
  cursor: pointer;
}

.app-submit:hover,
.app-submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(166, 42, 196, 0.18);
}

.app-form-note {
  width: min(560px, 100%);
  margin: 4px auto 0;
  color: var(--app-muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.app-footer {
  padding: 66px 0 44px;
  color: rgba(255, 255, 255, 0.72);
  background: #19182e;
}

.app-footer__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.2fr 1.35fr;
  gap: 52px;
}

.app-footer h2,
.app-footer h3 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
}

.app-footer h2 {
  color: var(--app-pink);
  font-size: 21px;
}

.app-footer p,
.app-footer ul {
  margin: 0;
}

.app-footer ul {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.app-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.app-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--app-pink);
  border-radius: 50%;
  transition: transform 180ms ease, background-color 180ms ease;
}

.app-socials a:hover,
.app-socials a:focus-visible {
  transform: translateY(-2px);
  background: var(--app-purple);
}

.app-socials svg {
  width: 20px;
  height: 20px;
}

.app-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: 52px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
}

.app-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.apprentissimo-fallback {
  width: min(760px, calc(100% - 48px));
  margin: 80px auto;
}

.apprentissimo-fallback article + article {
  margin-top: 36px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.apprentissimo-editor-preview {
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.editor-styles-wrapper .apprentissimo-page,
.editor-styles-wrapper .app-footer,
.apprentissimo-editor-preview .apprentissimo-page,
.apprentissimo-editor-preview .app-footer {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 980px) {
  .app-hero {
    min-height: auto;
    padding: 70px 0;
  }

  .app-info-grid,
  .app-sector-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 0;
  }

  .app-reasons {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 34px;
  }

  .app-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .app-container {
    width: min(100% - 28px, var(--app-max));
  }

  .app-hero {
    padding: 48px 0 58px;
  }

  .app-hero h1 {
    margin-top: 26px;
  }

  .app-hero__lead,
  .app-section__header p {
    font-size: 17px;
  }

  .app-actions {
    width: 100%;
  }

  .app-button {
    width: 100%;
    padding-inline: 20px;
  }

  .app-stats {
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 36px auto;
  }

  .app-section,
  .app-signup {
    padding: 64px 0;
  }

  .app-section__header {
    margin-bottom: 36px;
  }

  .app-card,
  .app-reasons,
  .app-form-card {
    padding: 26px;
  }

  .app-form-row {
    grid-template-columns: 1fr;
  }

  .app-footer__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .app-footer__bottom {
    display: grid;
  }

  .app-footer__legal {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .apprentissimo-page *,
  .apprentissimo-page *::before,
  .apprentissimo-page *::after,
  .app-footer *,
  .app-footer *::before,
  .app-footer *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
