/* ==========================================================================
   AZIMUT PARTNERS — pages.css
   Gabarit commun des pages intérieures de l'univers institutionnel
   (toutes les pages sauf l'accueil, qui a sa propre feuille).

   Sommaire
     1. En-tête de page : surtitre, titre, chapô, sommaire de la page
     2. Sections : rythme vertical, en-tête de section, utilitaires de texte
     3. Bandeau d'action : les deux actions commerciales, en bas de chaque page

   Dépend de socle.css et institutionnel.css.
   ========================================================================== */


/* 1. EN-TÊTE DE PAGE ----------------------------------------------------- */

.page-entete {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eef3f9 0%, #f8fafc 60%, #ffffff 100%);
}

.page-entete__contenu {
  position: relative;
  max-width: 58rem;
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 84px) clamp(32px, 4.4vw, 60px);
  text-align: center;
}

/* Arcs lumineux décoratifs, dessinés par le code : ils se tracent à l'arrivée sur la page */
.page-entete__decor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-entete__arc {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: trace-arc 2.2s var(--courbe) 0.3s forwards;
}

.page-entete__arc--2 {
  stroke-width: 1.2;
  opacity: 0.7;
  animation-delay: 0.7s;
}

@keyframes trace-arc {
  to {
    stroke-dashoffset: 0;
  }
}

/* Surtitre : petite étiquette au-dessus d'un titre */
.surtitre {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--turquoise-brume);
  color: #016c6a;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.page-entete__titre {
  margin-top: 18px;
  font-size: clamp(2.125rem, 1.3rem + 3.4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
}

.page-entete__titre span {
  display: block;
}

.page-entete__accent {
  margin-top: 0.1em;
  color: var(--turquoise);
}

.page-entete__chapo {
  max-width: 40em;
  margin: clamp(16px, 2vw, 24px) auto 0;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
}

/* Sommaire : accès direct aux sections de la page */
.sommaire {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin-top: clamp(24px, 3vw, 36px);
}

.sommaire a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 16px 6px 8px;
  border: 1px solid var(--filet);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--marine);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.25s, border-color 0.25s;
}

.sommaire a:hover {
  border-color: rgba(1, 131, 134, 0.45);
  background: var(--turquoise-pale);
}

/* Numéro d'ordre de la section */
.sommaire span {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--turquoise-pale);
  color: #046a6e;
  font-size: 0.8125rem;
  font-weight: 700;
}


/* 2. SECTIONS ------------------------------------------------------------ */

.section {
  padding-top: var(--espace-section);
}

/* En-tête de section, centré. Il porte l'ancre de la section : la marge de
   défilement le place sous l'en-tête fixe du site. */
.section__entete {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
  scroll-margin-top: 104px;
}

.section__titre {
  margin-top: 16px;
  font-size: clamp(1.75rem, 1.15rem + 2vw, 2.75rem);
  line-height: 1.12;
}

.section__chapo {
  max-width: 36em;
  margin: 16px auto 0;
  color: var(--encre-douce);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.5;
}

/* Passage surligné, à la manière d'un feutre (même règle que sur l'accueil) */
.surligne {
  background: linear-gradient(transparent 62%, rgba(5, 163, 153, 0.24) 62%, rgba(5, 163, 153, 0.24) 94%, transparent 94%);
  font-style: normal;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Retour à la ligne actif uniquement sur grand écran (même règle que sur l'accueil) */
.retour-large {
  display: none;
}

@media (min-width: 900px) {
  .retour-large {
    display: inline;
  }
}


/* 3. BANDEAU D'ACTION ---------------------------------------------------- */
/* En bas de chaque page intérieure : les deux actions commerciales du site
   et le rappel de la gratuité. Bloc identique d'une page à l'autre. */

.appel {
  padding-block: var(--espace-section);
}

.appel__panneau {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 26px;
  padding: clamp(26px, 4vw, 60px);
  border: 1.5px solid rgba(1, 131, 134, 0.32);
  border-radius: var(--rayon-xl);
  background: linear-gradient(135deg, #eef8f8 0%, #ffffff 52%, #eef4f9 100%);
  box-shadow: 0 34px 70px -48px rgba(1, 131, 134, 0.65);
}

/* Arc décoratif */
.appel__decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.appel__decor path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.appel__titre {
  font-size: clamp(1.625rem, 1.1rem + 1.8vw, 2.5rem);
  line-height: 1.14;
}

.appel__titre span {
  display: block;
  color: var(--turquoise);
}

.appel__texte p {
  max-width: 34em;
  margin-top: 14px;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.55;
}

/* Les deux boutons : l'un sous l'autre sur téléphone, toujours côte à côte au-delà */
.appel__boutons {
  display: grid;
  gap: 12px;
}

.appel__boutons .bouton {
  justify-content: flex-start;
  gap: 0.7rem;
  padding-inline: 1.25rem;
}

.appel__boutons .bouton__fleche {
  margin-left: auto;
}

.appel__boutons .bouton__libelle,
.appel__boutons .bouton__libelle-court {
  text-wrap: balance;
}

.appel__boutons .bouton__libelle-court {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
}

/* Rappel de la gratuité */
.appel__gratuite {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.appel__gratuite .icone {
  flex: none;
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: var(--turquoise-brume);
  color: #016c6a;
  stroke-width: 2.6;
}

.appel__gratuite span {
  display: grid;
  gap: 1px;
  padding-top: 3px;
}

.appel__gratuite strong {
  color: var(--marine);
}

.appel__gratuite em {
  color: #02777a;
  font-style: normal;
  font-weight: 700;
}

.appel__gratuite small {
  color: var(--encre-douce);
  font-size: 0.875rem;
}

@media (min-width: 600px) {
  .appel__boutons {
    display: flex;
    flex-wrap: nowrap;          /* jamais de retour à la ligne entre les deux boutons */
  }

  .appel__boutons .bouton {
    flex: 0 1 auto;
    min-width: 0;
    gap: 0.55rem;
    padding-inline: 0.9rem 1rem;
    font-size: 0.9375rem;
  }

  .appel__boutons .bouton__fleche {
    margin-left: 0;
  }

  .appel__boutons .bouton__libelle {
    max-width: 9.7em;
  }

  .appel__boutons .bouton__libelle-court {
    max-width: 11.9em;
    font-size: 0.875rem;
  }
}

/* Deux colonnes : le texte à gauche, les actions à droite */
@media (min-width: 1280px) {
  .appel__panneau {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(40px, 5vw, 88px);
  }
}
