/* ==========================================================================
   Solidarité & Partage — Jouy-le-Moutier
   Mise en page : bandes pleine largeur alternées (blanc / ciel / prairie),
   contenu centré sur 1140 px, cartes et images au trait irrégulier « dessiné ».
   Thème clair unique, voulu : c'est la charte du site.
   ========================================================================== */

:root {
  /* Couleurs principales de l'association : bleu violet et vert.
     Secondaires : encre violette, jaune pour les dons, fonds pâles. */
  --encre: #1E1F4B;        /* textes, traits */
  --bleu: #6478FF;         /* couleur principale : grands titres, boutons */
  --bleu-texte: #3A49C9;   /* bleu foncé pour les liens (lisible sur fond clair) */
  --vert: #82E47C;         /* couleur principale : boutons d'action */
  --vert-clair: #B5F0B1;   /* décors */
  --soleil: #FFC23D;       /* dons, accents */
  --ciel: #EEF0FF;         /* fond de bande lavande */
  --prairie: #EAFBE8;      /* fond de bande vert pâle */
  --blanc: #FFFFFF;
  --gris: #55587A;         /* textes secondaires */
  --note: #FFF1A8;         /* repère « à compléter » de la maquette */

  /* Typographie */
  --titre: "Londrina Solid", "Arial Narrow", "Trebuchet MS", sans-serif;
  --texte: "Baloo 2", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;

  /* Trait irrégulier */
  --trait-a: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --trait-b: 18px 225px 18px 255px / 255px 18px 225px 18px;
  --ombre: 5px 5px 0 var(--encre);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }  /* nécessaire pour les filtres de la page Actualités */
a { color: var(--bleu-texte); text-underline-offset: 3px; }
a:hover { color: var(--encre); }
:focus-visible { outline: 3px solid var(--soleil); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--titre); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.conteneur { max-width: 1140px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.etroit { max-width: 62ch; }
.pile { display: flex; flex-direction: column; gap: 1rem; }
.pile--large { gap: 2rem; }
.centre { text-align: center; align-items: center; }

/* ---------- Bandes ---------- */
.bande { padding-block: clamp(3rem, 7vw, 5.5rem); background: var(--blanc); }
.bande--ciel { background: var(--ciel); }
.bande--prairie { background: var(--prairie); }
.bande--soleil { background: var(--soleil); }
.bande--serree { padding-block: clamp(2rem, 4vw, 3rem); }

.titre-section {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  text-transform: uppercase;
  letter-spacing: .02em;
  padding-bottom: .35em;
  background: url("../images/illustrations/trait.svg") no-repeat left bottom / 150px 12px;
}
.centre > .titre-section { background-position: center bottom; }
.titre-bloc { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.chapeau { font-size: 1.25rem; color: var(--gris); }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--titre); font-size: 1.35rem; line-height: 1.1;
  padding: .5em 1.1em .45em;
  color: var(--encre); background: var(--vert);
  border: 3px solid var(--encre); border-radius: var(--trait-a);
  box-shadow: var(--ombre);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.bouton:hover { color: var(--encre); transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--encre); }
.bouton--soleil, .bouton--soleil:hover { background: var(--soleil); color: var(--encre); }
.bouton--bleu, .bouton--bleu:hover { background: var(--bleu); color: var(--blanc); }
.bouton--encre, .bouton--encre:hover { background: var(--encre); color: var(--blanc); }
.bouton--contour, .bouton--contour:hover { background: var(--blanc); color: var(--encre); }
.bouton--petit { font-size: 1.1rem; padding: .4em .9em .35em; box-shadow: 3px 3px 0 var(--encre); }
.groupe-boutons { display: flex; flex-wrap: wrap; gap: 1rem; }

.lien-fleche { font-family: var(--titre); font-size: 1.2rem; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; color: var(--bleu-texte); }
.lien-fleche::after { content: " →"; }
.lien-fleche:hover { text-decoration: underline; }

/* ---------- Bandeau maquette et repères « à compléter » ---------- */
.bandeau-maquette { display: none; }
.maquette .bandeau-maquette {
  display: block; background: var(--note); color: var(--encre);
  font-size: .95rem; text-align: center; padding: .35rem 16px;
  border-bottom: 2px dashed var(--encre);
}
.maquette .todo { background: var(--note); outline: 2px dashed var(--encre); outline-offset: 2px; border-radius: 3px; padding-inline: .2em; }
.maquette p.todo, .maquette li.todo { padding: .4em .6em; }

/* ---------- En-tête ---------- */
.entete { background: var(--ciel); }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.marque { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--encre); min-width: 0; }
.marque img { height: 72px; width: auto; flex: none; }   /* logo avec texte : environ 2 fois plus large que haut */
.menu { display: flex; gap: clamp(.8rem, 2vw, 1.6rem); }
.menu a { font-family: var(--titre); font-size: 1.25rem; color: var(--encre); text-decoration: none; padding-block: .3rem; border-bottom: 3px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { border-bottom-color: var(--soleil); }
.entete__actions { display: flex; gap: .7rem; flex: none; }

.barre-mobile { display: none; }

/* ---------- Accueil : ouverture ---------- */
.ouverture { background: var(--ciel); padding-block: clamp(2rem, 5vw, 4rem) calc(clamp(3rem, 6vw, 5rem) + 3.5rem); }
.ouverture__grille { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.ouverture__grille > * { min-width: 0; }
.ouverture h1 { font-size: clamp(3.2rem, 9vw, 6rem); text-transform: uppercase; line-height: .92; }
.ouverture h1 span { display: block; color: var(--bleu); }
.ouverture__texte { font-size: clamp(1.2rem, 2.2vw, 1.45rem); max-width: 34ch; }
.devise {
  align-self: flex-start; font-family: var(--titre); font-size: 1.25rem;
  background: var(--blanc); border: 3px solid var(--encre); border-radius: var(--trait-b);
  padding: .3em 1em; transform: rotate(-2deg);
}
.ouverture__image img { width: 100%; max-width: 480px; margin-inline: auto; }

/* ---------- En-tête de page intérieure ---------- */
.titre-page { background: var(--ciel); padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem); }
.titre-page h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); text-transform: uppercase; }
.titre-page h1 span { color: var(--bleu); }

/* ---------- Grandes cartes-liens ---------- */
.cartes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.carte-lien {
  display: flex; flex-direction: column; gap: .8rem; min-width: 0;
  background: var(--blanc); color: var(--encre); text-decoration: none;
  border: 3px solid var(--encre); border-radius: var(--trait-a);
  padding: 1.6rem 1.4rem 1.4rem;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.carte-lien:nth-child(even) { border-radius: var(--trait-b); }
.carte-lien:hover { color: var(--encre); transform: rotate(-1.2deg) translateY(-4px); box-shadow: var(--ombre); background: var(--prairie); }
.carte-lien:nth-child(even):hover { transform: rotate(1.2deg) translateY(-4px); }
.carte-lien img { width: 76px; height: 76px; }
.carte-lien h2 { font-size: 1.9rem; }
.carte-lien p { font-size: 1.05rem; flex: 1; }
.carte-lien .lien-fleche { font-size: 1.1rem; }
.bande--cartes { padding-top: 0; padding-bottom: clamp(1rem, 2vw, 1.5rem); background: transparent; }
.bande--cartes > .conteneur { display: flow-root; margin-top: calc(-1 * clamp(3rem, 6vw, 5rem)); }

/* ---------- Actualités ---------- */
.actus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.75rem; }
.actu { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.actu__image { border: 3px solid var(--encre); border-radius: var(--trait-b); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ciel); }
.actu__image img { width: 100%; height: 100%; object-fit: cover; }
.actu h3 { font-size: 1.65rem; }
.actu p { font-size: 1.05rem; color: var(--gris); flex: 1; }
.actu__date { font-size: .95rem; color: var(--gris); }
.etiquettes { display: flex; flex-wrap: wrap; gap: .4rem; }
.etiquette { font-size: .85rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; background: var(--prairie); border: 2px solid var(--encre); border-radius: 999px; padding: .05em .7em; }

.filtres { display: flex; flex-wrap: wrap; gap: .6rem; }
.filtre { font: 600 1rem var(--texte); color: var(--encre); background: var(--blanc); border: 2px solid var(--encre); border-radius: 999px; padding: .2em 1em; cursor: pointer; }
.filtre[aria-pressed="true"] { background: var(--encre); color: var(--blanc); }

/* ---------- Texte + image ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.duo > * { min-width: 0; }
.duo__image img { width: 100%; border: 4px solid var(--encre); border-radius: var(--trait-a); transform: rotate(-1.5deg); }
.duo--inverse .duo__image { order: 2; }
.duo--inverse .duo__image img { transform: rotate(1.5deg); border-radius: var(--trait-b); }
.duo__texte p { max-width: 62ch; }

.infos { background: var(--blanc); border: 3px solid var(--encre); border-radius: 14px; padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.infos h3 { font-size: 1.35rem; }
.infos li { font-size: 1.05rem; }

/* ---------- Galerie ---------- */
.galerie { columns: 4 220px; column-gap: 1rem; }
.galerie img { width: 100%; margin-bottom: 1rem; border: 3px solid var(--encre); border-radius: 22px 8px 26px 10px; break-inside: avoid; }

/* ---------- Trois façons d'aider ---------- */
.aides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.aide { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; min-width: 0; }
.aide img { width: 72px; height: 72px; }
.aide h3 { font-size: 1.8rem; }
.aide p { flex: 1; }

/* ---------- Bandeau d'appel ---------- */
.appel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.appel h2 { font-size: clamp(2rem, 4.5vw, 3rem); text-transform: uppercase; }

/* ---------- Association ---------- */
.reperes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.repere { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.repere strong { font-family: var(--titre); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--bleu); font-variant-numeric: tabular-nums; }
.repere span { font-size: 1.05rem; }

.valeurs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.valeur { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.valeur h3 { font-size: 1.8rem; color: var(--bleu); }

.equipe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.membre { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; min-width: 0; }
.membre img { width: 170px; height: 170px; object-fit: cover; border: 3px solid var(--encre); border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%; }
.membre h3 { font-size: 1.5rem; }

.partenaires { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.partenaires img { width: 190px; border: 2px solid var(--ciel); border-radius: 10px; }

.fiche { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; margin: 0; }
.fiche dt { font-weight: 700; }
.fiche dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact > * { min-width: 0; }
.whatsapp { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.whatsapp .bouton img { width: 28px; height: 28px; }
.coordonnees { display: flex; flex-direction: column; gap: 1.1rem; }
.coordonnees li { display: flex; gap: .8rem; align-items: flex-start; }
.coordonnees img { width: 28px; height: 28px; flex: none; margin-top: .15rem; }
.coordonnees strong { display: block; font-family: var(--titre); font-weight: 400; font-size: 1.3rem; }
.coordonnees span { overflow-wrap: anywhere; user-select: all; }

.formulaire { display: flex; flex-direction: column; gap: 1rem; background: var(--blanc); border: 3px solid var(--encre); border-radius: 18px; padding: clamp(1.2rem, 3vw, 2rem); }
.champ { display: flex; flex-direction: column; gap: .25rem; }
.champ label { font-weight: 600; }
.champ input, .champ select, .champ textarea {
  font: inherit; color: var(--encre); background: var(--blanc);
  border: 2px solid var(--encre); border-radius: 8px; padding: .5rem .7rem; width: 100%;
}
.champ textarea { min-height: 9rem; resize: vertical; }
.formulaire .bouton { align-self: flex-start; }
.message-formulaire { background: var(--prairie); border: 2px solid var(--encre); border-radius: 8px; padding: .7rem 1rem; }
.aide-formulaire { font-size: .95rem; color: var(--gris); }

.carte-plan img { width: 100%; border: 3px solid var(--encre); border-radius: 18px; }

/* ---------- Mentions légales ---------- */
.prose { display: flex; flex-direction: column; gap: 1rem; max-width: 68ch; }
.prose h2 { font-size: 1.9rem; margin-top: 1rem; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: var(--blanc); padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; font-size: 1.05rem; }
.pied a { color: var(--blanc); }
.pied a:hover { color: var(--vert); }
.pied__grille { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 2.5rem; }
.pied__grille > * { min-width: 0; display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.pied .marque img { height: 84px; }
.pied h2 { font-size: 1.4rem; text-transform: uppercase; letter-spacing: .04em; color: var(--vert); }
.pied__menu { display: flex; flex-direction: column; gap: .25rem; }
.pied__menu a { text-decoration: none; }
.pied__menu a:hover { text-decoration: underline; }
.pied address { font-style: normal; overflow-wrap: anywhere; }
.reseaux { display: flex; gap: .7rem; }
.reseaux a { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--blanc); border-radius: 50%; }
.reseaux a:hover { background: var(--bleu); }
.reseaux img { width: 22px; height: 22px; }
.pied__bas { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgb(255 255 255 / .25); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .95rem; }

/* ==========================================================================
   Écrans moyens et petits
   ========================================================================== */
@media (max-width: 1000px) {
  .cartes { grid-template-columns: repeat(2, 1fr); }
  .actus { grid-template-columns: repeat(2, 1fr); }
  .reperes { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .menu, .entete__actions .bouton--contour { display: none; }
  .site { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .barre-mobile {
    display: flex; position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
    background: var(--blanc); border-top: 3px solid var(--encre);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .barre-mobile a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .5rem 2px .4rem; font-size: .72rem; font-weight: 600; line-height: 1.1; color: var(--encre); text-decoration: none; }
  .barre-mobile img { width: 26px; height: 26px; padding: 2px; border-radius: 8px; box-sizing: content-box; }
  .barre-mobile a[aria-current="page"] img { background: var(--soleil); }
}

@media (max-width: 760px) {
  body { font-size: 1.05rem; }
  .ouverture__grille, .duo, .contact, .pied__grille { grid-template-columns: 1fr; }
  .ouverture__image { order: 2; }
  .ouverture__image img { max-width: 300px; }
  .duo--inverse .duo__image { order: 0; }
  .aides, .valeurs, .equipe { grid-template-columns: 1fr; }
  .ouverture { padding-bottom: 5rem; }
  .bande--cartes > .conteneur { margin-top: -2.5rem; }
  .marque img { height: 52px; }
  .pied .marque img { height: 72px; }
  .galerie { columns: 2 140px; }
  .fiche { grid-template-columns: 1fr; }
  .fiche dd { margin-bottom: .5rem; }
}

@media (max-width: 560px) {
  .cartes, .actus { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
