/* Base */
* {
  box-sizing: border-box;
}

:root {
  --bg: #c5c7cb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: rgba(31, 41, 55, 0.10);
  --shadow: 0 10px 30px rgba(31, 41, 55, 0.12);
  --radius: 16px;
}

/* Page */
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% 0%, #eef2ff 0%, var(--bg) 55%);
  line-height: 1.6;
}

/* Conteneur global : centre horizontal + scroll vertical naturel */
.page {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 28px 14px; /* espace autour, même sur mobile */
}

/* Carte */
.card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden; /* important : empêche l'image de sortir du cadre */
}

/* Largeur responsive :
   - Mobile: 100%
   - Desktop: 50% mais bornée pour éviter trop large / trop étroit
*/
@media (min-width: 768px) {
  .card {
    width: 50%;
    max-width: 900px;   /* limite confortable */
    min-width: 520px;   /* évite une carte trop étroite */
  }
}

/* Blocs texte */
.block {
  padding: 22px 22px;
  text-align: center;
}

h1 {
  margin: 0 0 10px 0;
  font-size: 1.6rem;
  letter-spacing: 0.2px;
}

p {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere; /* protège contre mots très longs */
}

/* Média */
.media {
  margin: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}

/* Image toujours contenue dans la carte */
.media img {
  display: block;
  width: 100%;
  height: auto;          /* garde les proportions */
  max-width: 100%;       /* empêche tout débordement horizontal */
  padding: 50px;
}

/* Optionnel : si tu veux éviter une image trop haute sur desktop,
   décommente ces lignes :
*/
/*
@media (min-width: 768px) {
  .media img {
    max-height: 420px;
    object-fit: cover;
  }
}
*/

.media figcaption {
  padding: 10px 16px 14px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* Liens plus "pro" */
a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

#mon_image1 {
	padding: 0px;
	width: 50%;
}

#mon_image2 {
	padding: 0px;
	width: 80%;
}