/* ==========================================================
   MATLO — STYLE GLOBAL
   Base graphique commune du site
   ========================================================== */

:root {
  /* Couleurs MATLO */
  --color-bg: #ffffff;
  --color-bg-soft: #f7f2ea;

  --color-text: #1f3f56;
  --color-text-soft: #5f6f78;

  --color-blue: #123f57;
  --color-blue-dark: #0d2f42;

  --color-teal: #4faeb3;
  --color-teal-light: #d9f0ef;

  --color-coral: #e86f51;
  --color-coral-dark: #c9573d;

  --color-cream: #f8f6f3;
  --color-line: rgba(18, 63, 87, 0.16);

  /* Alias conservés pour éviter de casser les anciens fichiers */
  --color-green: var(--color-blue);
  --color-secondary: var(--color-coral);
  --color-accent: var(--color-teal);
  --color-muted: var(--color-text-soft);

  --blue: var(--color-blue);
  --rose: var(--color-coral);
  --jaune: var(--color-teal);
  --grisbleu: var(--color-text);

  /* Layout */
  --container-width: 1200px;
  --container: min(1120px, 92vw);
  --padding-section: 4rem 2rem;

  /* Typographies */
  --font-primary: 'Arvo', serif;
--font-title: 'Arvo', serif;
--font-accent: 'Arvo', serif;

  /* Effets */
  --shadow-soft: 0 10px 28px rgba(18, 63, 87, 0.12);
  --shadow-card: 0 6px 18px rgba(18, 63, 87, 0.14);
}


/* Reset doux */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
}

/* Médias */
img,
video,
iframe {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

/* Liens */
a {
  color: inherit;
}

/* Sections */
.section {
  padding: var(--padding-section);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Titres globaux */
h1,
h2,
h3,
h4 {
  color: var(--color-blue);
  line-height: 1.15;
}

h1,
h2 {
  margin-top: 0;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

/* Texte */
p {
  margin-top: 0;
}

strong {
  color: var(--color-blue);
}

/* Boutons globaux */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.85rem 1.55rem;
  border: 0;
  border-radius: 0;

  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;

  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Bouton principal MATLO */
.btn-pink,
.btn-rose {
  background: var(--color-coral);
  color: #ffffff;
}

.btn-pink:hover,
.btn-rose:hover {
  background: var(--color-coral-dark);
  color: #ffffff;
  box-shadow: var(--shadow-card);
}

/* Bouton secondaire */
.btn-blue {
  border: 2px solid #ffffff;
  background: transparent;
  color: #ffffff;
}

.btn-blue:hover {
  background: #ffffff;
  color: var(--color-blue);
}

/* Bouton outline clair */
.btn-outline {
  border: 2px solid var(--color-teal);
  background: transparent;
  color: var(--color-blue);
}

.btn-outline:hover {
  background: var(--color-teal);
  color: #ffffff;
}

/* Étiquettes / petits bandeaux */
.section-kicker,
.label,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.35rem 0.75rem;
  background: var(--color-blue);
  color: #ffffff;

  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Cartes génériques */
.card {
  background: #ffffff;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-card);
}

/* Fonds doux */
.bg-cream {
  background: var(--color-cream);
}

.bg-teal-soft {
  background: var(--color-teal-light);
}

.bg-blue {
  background: var(--color-blue);
  color: #ffffff;
}

.bg-blue h2,
.bg-blue h3,
.bg-blue p {
  color: #ffffff;
}

/* Formulaires */
input,
textarea,
select,
button {
  font-family: var(--font-primary);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(18, 63, 87, 0.22);
  background: #ffffff;
  color: var(--color-text);
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(79, 174, 179, 0.45);
  border-color: var(--color-teal);
}

/* Sélection texte */
::selection {
  background: var(--color-teal);
  color: #ffffff;
}

/* Accessibilité */
:focus-visible {
  outline: 3px solid rgba(232, 111, 81, 0.45);
  outline-offset: 3px;
}

/* Responsive global */
@media screen and (max-width: 768px) {
  :root {
    --padding-section: 3rem 1.25rem;
  }

  body {
    font-size: 15px;
  }

  .container {
    padding: 0 1rem;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

#backToTop{
  position:fixed;
  right:25px;
  bottom:25px;

  width:48px;
  height:48px;

  display:flex;
  align-items:center;
  justify-content:center;

  background: var(--color-coral);
  color:#fff;

  text-decoration:none;
  font-size:24px;
  font-weight:bold;

  border-radius:50%;

  opacity:0;
  visibility:hidden;

  transition:.3s;
  z-index:9999;
}

#backToTop.visible{
  opacity:1;
  visibility:visible;
}

#backToTop:hover{
  background:#03738b;
}