/* Charte graphique Artmusez'Vous ! (2026), d'après la maquette validée de la page d'accueil.
   Chargée en dernier sur chaque page : elle remplace les couleurs, polices et formes du thème
   Freelancer (2017) sans toucher à la mise en page. Les couleurs et polices sont des variables :
   les réutiliser plutôt que d'écrire des codes couleur. */

:root {
  --amv-creme: #F7F1E3;        /* fond des pages */
  --amv-sable: #EDE2CC;        /* fond des sections mises en avant */
  --amv-carte: #FFFBF3;        /* fond des cartes et des champs de formulaire */
  --amv-ligne: #D9CDB6;        /* traits et bordures */
  --amv-encre: #1B1712;        /* texte, boutons, pied de page */
  --amv-texte: #3A3128;        /* paragraphes */
  --amv-texte-doux: #5A4E42;   /* texte secondaire : contraste 7:1 sur le crème */
  --amv-orange: #E4683A;       /* accent : aplats, soulignés. Jamais pour du texte (contraste 2,9:1) */
  --amv-orange-fonce: #B2451B; /* texte orangé, survol des liens : contraste 4,9:1 sur le crème */
  --amv-surligne: #F2B28A;     /* bandeau derrière un mot mis en valeur */
  --amv-profond: #12505A;      /* aplats sombres, texte blanc (contraste 9:1) */
  --amv-peche: #EFC7A5;        /* aplat clair (tuiles), texte encre */
  --amv-ocre: #F2C14E;         /* aplat jaune (tuiles), texte encre */
  --amv-police-titres: 'Fraunces', Georgia, serif;
  --amv-police-texte: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --amv-rayon: 28px;
  --amv-rayon-petit: 16px;
}

/* ---------- Base ---------- */

body {
  background-color: var(--amv-creme);
  color: var(--amv-encre);
  font-family: var(--amv-police-texte);
  font-size: 1.0625rem;
  line-height: 1.6;
}

::selection {
  background-color: var(--amv-surligne);
  color: var(--amv-encre);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--amv-police-titres);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  overflow-wrap: break-word; /* un mot trop long pour un téléphone passe à la ligne au lieu de déborder */
}
.display-4 {
  font-weight: 800;
}
@media (max-width: 575.98px) {
  .display-4 {
    font-size: 2.5rem;
  }
}

/* Sous-titre dans un titre : « Nos Ateliers <small>Cabanes</small> » */
h1 small, .h1 small {
  font-family: var(--amv-police-texte);
  font-weight: 500;
  font-size: 60%;
  letter-spacing: 0;
  color: var(--amv-texte-doux);
}

/* Titres de section : Freelancer fixait une hauteur de ligne en rem, trop serrée pour un titre sur deux lignes. */
section h1.section-heading,
section h2.section-heading {
  font-size: 2.5rem;
  line-height: 1.1;
}
@media (min-width: 992px) {
  section h1.section-heading,
  section h2.section-heading {
    font-size: 3.25rem;
  }
}

hr {
  border-top-color: var(--amv-ligne);
}

.text-muted {
  color: var(--amv-texte-doux) !important; /* le gris de Bootstrap tombe à 4:1 sur le crème */
}

/* ---------- Liens ---------- */

a {
  color: var(--amv-encre);
  text-decoration-color: var(--amv-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover,
a:focus,
a:active {
  color: var(--amv-orange-fonce);
}
/* Liens dans le texte : toujours soulignés, pour se distinguer sans dépendre de la couleur. */
p a,
li a,
small a,
dd a {
  text-decoration-line: underline;
}
.navbar a,
.timeline a,
a.btn {
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--amv-orange-fonce);
  outline-offset: 3px;
  box-shadow: none;
}

/* ---------- Boutons : pilule noire, flèche dans un rond (voir .amv-btn dans amv.css) ---------- */

.btn {
  border-radius: 999px;
  font-family: var(--amv-police-texte);
  font-weight: 700;
}
.btn-primary {
  background-color: var(--amv-encre);
  border-color: var(--amv-encre);
  color: var(--amv-creme);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--amv-orange);
  border-color: var(--amv-orange);
  color: var(--amv-encre);
}

/* ---------- Couleurs utilitaires de Bootstrap et Freelancer ---------- */

.bg-primary,
.bg-secondary,
.bg-dark {
  background-color: var(--amv-encre) !important;
}
.text-primary {
  color: var(--amv-orange-fonce) !important;
}
.text-secondary {
  color: var(--amv-texte) !important;
}

/* ---------- Héritage du thème de 2017, encore utile ---------- */

/* Espacement des sections des pages pas encore refondues (L'association, Notre démarche) ;
   les sections refondues (.amv-section, .amv-entete-page) fixent le leur. */
section {
  padding: 6rem 0;
}

/* ---------- Cartes Bootstrap ---------- */

.portfolio-item {
  margin-bottom: 24px;
}

.card {
  background-color: var(--amv-carte);
  border: 0;
  border-radius: 32px;
  padding: 14px;
}
.card-img-top {
  border-radius: 22px;
}
.card-body {
  padding: 1.25rem 0.75rem 0.75rem;
}
.card-title {
  font-size: 1.625rem;
}
.card-title a {
  color: var(--amv-encre);
}

/* ---------- Photos : coins arrondis ---------- */

.amv-photo,
.col-md-8 > img.img-fluid,
a[data-toggle="lightbox"] img {
  border-radius: var(--amv-rayon-petit);
}
.amv-photo {
  border-radius: var(--amv-rayon);
}

/* ---------- Frise « Notre démarche » ---------- */

.timeline:before {
  background-color: var(--amv-ligne);
}
.timeline > li .timeline-image {
  border-color: var(--amv-creme);
  background-color: var(--amv-creme);
}
.timeline .timeline-heading h4 {
  font-size: 1.75rem;
}
.timeline > li .timeline-image h4 {
  font-family: var(--amv-police-texte);
  font-weight: 700;
  letter-spacing: 0;
}
.timeline > li .timeline-image.amv-fond-orange {
  background-color: var(--amv-orange);
  border-color: var(--amv-orange);
  color: var(--amv-encre);
}
.timeline > li .timeline-image.amv-fond-profond {
  background-color: var(--amv-profond);
  border-color: var(--amv-profond);
  color: #FFFFFF;
}

/* ---------- Formulaire ---------- */

.form-control {
  background-color: var(--amv-carte);
  border: 1.5px solid var(--amv-ligne);
  border-radius: 12px;
  color: var(--amv-encre);
}
.form-control:focus {
  background-color: var(--amv-carte);
  border-color: var(--amv-encre);
  box-shadow: 0 0 0 3px rgba(228, 104, 58, 0.35);
  color: var(--amv-encre);
}
