/*--------------------------------------------------------------
# Page Espace recruteur (/recruteur)
# Mobile-first. Toutes les couleurs derivent des variables du
# theme definies dans css/style.css (--color-primary, etc.).
# Aucune couleur de la maquette n'est reprise en dur.
--------------------------------------------------------------*/

.rec {
  /* Fond "couleur principale a 10%".
     La 1re declaration sert de repli sans color-mix. */
  --rec-tint: var(--color-primary-light);
  --rec-tint: color-mix(in srgb, var(--color-primary) 10%, transparent);
  /* Gris neutre (fond sous les images, survol du bouton secondaire),
     derive du texte du theme. */
  --rec-ph-bg: #eef1f3;
  --rec-ph-bg: color-mix(in srgb, var(--color-secondary) 8%, #fff);
  --rec-radius-card: 24px;
  --rec-shadow: var(--shadow-soft);
  --rec-shadow-sm: 0 10px 24px rgba(31, 74, 80, 0.10);
  color: var(--color-muted);
}

/* Le header est fixe (64px) : on decale les ancres. */
.rec [id] {
  scroll-margin-top: 88px;
}

.rec .rec-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* style.css centre tous les titres du site : on repasse a gauche ici. */
.rec h1,
.rec h2,
.rec h3 {
  color: var(--color-secondary);
  font-family: "Montserrat", sans-serif;
  text-align: left;
}

/*--------------------------------------------------------------
# Elements partages
--------------------------------------------------------------*/

.rec-eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
}

.rec-lead {
  margin: 0;
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1.65;
}

/* Carte blanche qui encadre un visuel : 12px de marge interieure. */
.rec-figure {
  margin: 0;
  padding: 12px;
  border-radius: var(--rec-radius-card);
  background: #fff;
  box-shadow: var(--rec-shadow);
}

.rec-figure-media {
  overflow: hidden;
  border-radius: 14px;
  background: var(--rec-ph-bg);
}

.rec-figure-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*--------------------------------------------------------------
# Boutons
# On reprend le rayon et la couleur des composants du projet ;
# seuls les etats de survol demandes sont redefinis.
--------------------------------------------------------------*/

.rec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap; /* texte sur une seule ligne */
  transition: background-color 180ms ease, opacity 180ms ease;
}

.rec-btn:hover,
.rec-btn:focus {
  text-decoration: none;
}

/* Focus visible au clavier */
.rec-btn:focus-visible,
.rec-list-link:focus-visible {
  outline: 3px solid var(--color-primary-darker);
  outline-offset: 3px;
}

.rec-btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}

.rec-btn-primary:hover,
.rec-btn-primary:focus {
  opacity: 0.9; /* assombrissement leger */
  color: #fff;
}

.rec-btn-secondary {
  background-color: #fff;
  color: var(--color-secondary);
  box-shadow: var(--rec-shadow-sm);
}

.rec-btn-secondary:hover,
.rec-btn-secondary:focus {
  background-color: var(--rec-ph-bg); /* fond gris clair */
  color: var(--color-secondary);
}

/*--------------------------------------------------------------
# 1. Hero
--------------------------------------------------------------*/

.rec-hero {
  padding: 48px 0 56px;
  background: var(--color-bg-soft);
}

.rec-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.rec-title {
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
}

.rec-hero .rec-lead {
  margin-bottom: 28px;
}

.rec-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Capture CVtheque : le cadre suit le ratio de l'image (1448 x 1086, 4:3)
   pour qu'elle ne soit jamais rognee. */
.rec-hero-media {
  aspect-ratio: 1448 / 1086;
}

/*--------------------------------------------------------------
# 2. Pourquoi
--------------------------------------------------------------*/

.rec-why {
  padding: 64px 0;
  background: #fff;
}

.rec-why-head {
  max-width: 670px;
  margin: 0 0 40px;
}

.rec-why-head h2 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.rec-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.rec-card {
  padding: 24px;
  border-radius: var(--rec-radius-card);
  background: #fff;
  box-shadow: var(--rec-shadow-sm);
}

.rec-card i {
  display: block;
  margin-bottom: 14px;
  color: var(--color-primary);
  font-size: 24px;
  line-height: 1;
}

.rec-card p {
  margin: 0;
  color: var(--color-secondary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

/*--------------------------------------------------------------
# 3. Vision du profil
--------------------------------------------------------------*/

.rec-vision {
  padding: 64px 0;
  background: var(--rec-tint);
}

.rec-vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

/* Liste de profils : le cadre suit le ratio de l'image (1672 x 941, ~16:9).
   En 8:3, la tablette perdrait son en-tete et ses dernieres lignes. */
.rec-vision-media {
  aspect-ratio: 1672 / 941;
}

.rec-vision-content h2 {
  margin: 0 0 24px;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.rec-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rec-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.6;
}

.rec-list li:last-child {
  margin-bottom: 0;
}

.rec-list i {
  flex: none;
  margin-top: 2px;
  color: var(--color-primary);
  font-size: 20px;
  line-height: 1.4;
}

/*--------------------------------------------------------------
# 4. CTA final
--------------------------------------------------------------*/

.rec-cta {
  padding: 64px 0 80px;
  background: #fff;
  text-align: center;
}

.rec-cta-inner {
  max-width: 640px;
  margin-inline: auto;
}

.rec-cta-icon {
  display: block;
  margin-bottom: 20px;
  color: var(--color-primary);
  font-size: 32px;
  line-height: 1;
}

.rec-cta h2 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.rec-cta .rec-lead {
  margin-bottom: 28px;
}

/*--------------------------------------------------------------
# Tablette / desktop
--------------------------------------------------------------*/

@media (min-width: 768px) {
  .rec-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .rec-hero {
    padding: 72px 0 88px;
  }

  .rec-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
  }

  .rec-why,
  .rec-vision {
    padding: 88px 0;
  }

  .rec-vision-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
  }

  .rec-cta {
    padding: 88px 0 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rec-btn {
    transition: none;
  }
}
