/* Ta Sophro des Réseaux : feuille de style
   Reprise fidèle du site Carrd (couleurs, polices, tailles).
   Les couleurs principales sont regroupées ici pour être changées facilement. */

:root {
  --fond-page: #211629;          /* violet très sombre derrière tout */
  --carte-debut: #2C2035;        /* dégradé des cartes */
  --carte-fin: #493657;
  --titre-site: #E8C985;         /* « Ta Sophro des Réseaux » */
  --sous-titre: rgba(242, 212, 199, 0.7);
  --titre-carte: #FFD58C;        /* titres des cartes */
  --texte: #F6E8F4;
  --nom: #FFF5E8;

  --or: #F3C77F;                 /* boutons dorés */
  --or-survol: #FFE1A8;
  --or-texte: #1C1222;
  --lavande: linear-gradient(90deg, #A895E3, #9E86C4);
  --lavande-survol: #B4A2EB;
  --rose: #E7A8E8;
  --rose-survol: #F7CAF5;
  --rose-texte: #301537;

  --police: "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--fond-page);
  color: var(--texte);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.75;
  text-align: center;
  overflow-x: hidden;
  animation: apparition 0.75s ease-in-out both;
}

/* Image de fond (papier déchiré violet), fixe sur ordinateur */
.fond {
  position: fixed;
  inset: 0;
  background: #392240 url("images/fond.jpg") left top / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 96px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

/* En-tête */
.entete { width: 100%; }

.titre-site {
  margin: 0;
  font-weight: 400;
  font-size: 44px;
  line-height: 1.375;
  color: var(--titre-site);
}

.sous-titre {
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  color: var(--sous-titre);
}

/* Cartes */
.carte {
  width: 100%;
  padding: 64px 48px;
  border-radius: 36px;
  background: linear-gradient(45deg, var(--carte-debut) 0%, var(--carte-fin) 100%);
  box-shadow: 0 22px 48px rgba(44, 32, 53, 0.47);
  animation: apparition 1s ease-in-out both;
}

.carte h2 {
  margin: 0 0 22px;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.375;
  letter-spacing: -0.06em;
  color: var(--titre-carte);
}

.carte p { margin: 0 0 1.1em; }
.carte p:last-child { margin-bottom: 0; }
.carte strong { font-weight: 700; }

#references .titre-ref strong { color: var(--titre-site); }
#references .nom { color: var(--nom); }

.photo {
  display: block;
  margin: 38px auto 0;
  width: 162px;
  height: 244px;
  object-fit: cover;
  animation: apparition 1s 0.25s ease-in-out both;
}

/* Boutons */
.boutons {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 40px;
}

.boutons-etroits { align-items: center; }
.boutons-etroits .bouton { width: 100%; max-width: 482px; }

.bouton {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 10px 34px;
  border-radius: 48px;
  font-family: var(--police);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  transition: background-color 0.25s ease, filter 0.25s ease;
}

.bouton svg {
  flex: none;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
}

.bouton-or { background: var(--or); color: var(--or-texte); }
.bouton-or:hover { background: var(--or-survol); }

.bouton-lavande { background: var(--lavande); color: var(--or-texte); }
.bouton-lavande:hover { background: var(--lavande-survol); }

.bouton-rose { background: var(--rose); color: var(--rose-texte); }
.bouton-rose:hover { background: var(--rose-survol); }
.bouton-rose svg { color: #58265D; opacity: 1; }

/* Flèches de navigation */
.fleche {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 48px;
  background: rgba(242, 212, 199, 0.19);
  color: #FAE3D9;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.fleche:hover {
  background: rgba(242, 212, 199, 0.37);
  transform: scale(1.1);
}

.fleche svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a:focus-visible { outline: 2px solid var(--titre-site); outline-offset: 3px; }

@keyframes apparition {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Téléphone : comme sur Carrd, l'image de fond n'occupe que le haut de la page */
@media (max-width: 736px) {
  body { font-size: 14.67px; }

  .fond {
    position: absolute;
    bottom: auto;
    height: 270px;
  }

  .page { padding: 58px 29px; gap: 44px; }

  .titre-site { font-size: 29.3px; }
  .sous-titre { font-size: 16.5px; }

  .carte { padding: 44px 29px; border-radius: 33px; }
  .carte h2 { font-size: 20.2px; margin-bottom: 20px; }

  .photo { width: 148px; height: 275px; }

  .bouton { min-height: 62px; padding: 8px 28px; font-size: 14.67px; }
  .boutons { gap: 20px; }

  .fleche { width: 44px; height: 44px; }
}
