/* ========== RESET & BASE ========== */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  background: #F1C94C;
  color: #3c3c3c;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #5C5CA7;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #5C5CA7;
  text-decoration: underline;
}

html {
  scroll-behavior: smooth;
}

.hidden {
  display: none !important;
}

/* ========== COLORS ========== */
.bg-green       { background: #FFF095 !important; color: #222 !important; }
.bg-blue        { background: #e5eefa !important; color: #222 !important; }
.bg-red         { background: #fbeee7 !important; color: #222 !important; }
.text-green     { color: #238C5A !important; }
.text-blue      { color: #1e7cf7 !important; }
.text-red       { color: #c0392b !important; }

/* ========== HEADER & NAVBAR ========== */
.header-navbar {
  background: #5C5CA7;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 0.6em 1.5em;
}
.header-logo {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35em;
  font-weight: bold;
  letter-spacing: 0.5px;
}
.header-logo a {
  font-family: 'Poiret One', Arial, sans-serif;
  color: #fff;
  font-weight: 400;
  font-size: 1.5em;
  font-style: normal;
  letter-spacing: 2px;
  text-decoration: none;
  transition: color .18s;
}
.header-logo img {
  height: 38px;
  width: auto;
}
.header-menu {
  display: flex;
  gap: 2em;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: max-height 0.3s;
}
.header-menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 6px;
  border-radius: 5px;
  transition: background 0.15s;
}
.header-menu li a:hover {
  background: rgba(255,255,255,0.16);
}
/* Menu mobile */
.header-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  gap: 6px;
}
.header-burger span {
  display: block;
  width: 100%;
  height: 4px;
  background: #fff;
  border-radius: 3px;
  transition: 0.3s;
}

/* ========== CONTAINERS ========== */
.container {
  max-width: 900px;
  margin: 2.5em auto;
  background: #FFF;
  padding: 2em 1.4em;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(50,103,214,0.06);
}

/* ========== CARDS / BLOCS ========== */

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  align-items: stretch;
  border-radius: 12px;
}

.card {
  border-radius: 12px;
  box-shadow: 0 2px 9px rgba(94, 228, 130, 0.07);
  padding: 1.3rem 1.5rem;
  text-align: center;
}
.card-hover:hover {
  transform: translateY(-2px) scale(1.022);
}

.long-card {
  max-height: 500px;
  overflow-y: auto;
}

/* ========== MAIN CARD ========== */
.main-card {
  background: #fff;
  box-shadow: 0 4px 16px rgba(94, 228, 130, 0.07);
}
.main-card h1 { 
  color: #5C5CA7;
  margin-bottom: .45em;
  font-size: 1.3rem;
  font-weight: bold;
}
.main-card p {
  font-size: 1.08em;
  margin-bottom: 0.7em;
}
.main-card img {
  max-width: 140px;
  width: 28vw;
  margin: 0 auto 1em auto;
  border-radius: 13px;
  box-shadow: 0 1px 8px rgba(94,114,228,0.03);
}

/* ========== INFO CARD ========== */
/* pour tous les rectangles */
.info-card {
  flex: 1 1 280px;
  min-width: 220px;
  max-width: 380px;

  background: transparent;           /* plus de fond */
  border: 2px solid #5C5CA7;          /* bleu ukrainien */
  border-radius: 8px;                /* optionnel */

  color: #5C5CA7;
  font-size: 1.11em;
  font-weight: 500;
  transition: box-shadow 0.13s, transform 0.13s, background 0.12s;
  align-items: center;
  justify-content: center;
}

/* pour le menu des 4 axes */
.info-card2 {
  flex: 1 1 280px;
  min-width: 220px;
  max-width: 380px;

  background: #5C5CA7;

  color: #FFFFFF;
  font-size: 1.11em;
  font-weight: 500;
  transition: box-shadow 0.13s, transform 0.13s, background 0.12s;
  align-items: center;
  justify-content: center;
}

/* pour les projets phares */
.info-card3 {
  flex: 1 1 280px;
  min-width: 220px;
  max-width: 380px;

  background: transparent;           /* plus de fond */
  border: 2px solid #F1C94C;          /* jaune ukrainien */
  border-radius: 8px;                /* optionnel */

  color: #5C5CA7;
  font-size: 1.11em;
  font-weight: 500;
  transition: box-shadow 0.13s, transform 0.13s, background 0.12s;
  align-items: center;
  justify-content: center;
}


/* test rectangle plus large */
.info-card4 {
  flex: 1 1 500px;
  min-width: 500px;
  max-width: 500px;

  background: #5C5CA7;

  color: #FFFFFF;
  font-size: 1.11em;
  font-weight: 500;
  transition: box-shadow 0.13s, transform 0.13s, background 0.12s;
  align-items: center;
  justify-content: center;
}


/* ========== PHOTO CARD ========== */
.photo-card {
  background: #FFF095;
  color: #222;
  max-width: 410px;
  flex: 1 1 290px;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.13s, transform 0.13s;
  overflow: hidden;
  display: flex;
}
.photo-main {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.8em;
  box-shadow: 0 1px 8px rgba(30,46,140,0.04);
}
.photo-text {
  color: #5C5CA7;
  font-size: 1.06em;
  text-align: left;
  margin-bottom: 0.7em;
}
.photo-side {
  width: 82%;
  max-width: 210px;
  margin-bottom: 0.2em;
  border-radius: 10px;
  box-shadow: 0 1px 7px rgba(94,114,228,0.06);
}

/* ========== IDEA CARD ========== */
.idea-card {
  background: #e8f5ee;
  color: #222;
  min-width: 220px;
  max-width: 340px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0.2em;
  overflow: hidden;
  transition: box-shadow 0.13s, transform 0.13s;
  text-align: left;
}
.idea-card img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: .4em;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.idea-card span.titre {
  font-size: 1em;
  font-weight: 600;
  letter-spacing: .1px;
  margin-bottom: .27em;
  display: block;
}
.idea-card p, .idea-card ul {
  color: #3c3c3c;
  font-size: 0.98em;
  margin-bottom: .5em;
  margin-top: 0;
  line-height: 1.6;
}
.idea-card ul {
  padding-left: 1.1em;
  margin-top: 0.3em;
}

/* ========== BUTTON ========== */

button {
  background: #5C5CA7;
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 0.75em 2em;
  font-size: 1.1em;
  font-weight: bold;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 2px 16px rgba(94,114,228,0.13);
  transition: background 0.16s, transform 0.10s, box-shadow 0.14s;
  backdrop-filter: blur(4px);
}
button:hover {
  background: #fff;
  color: #5C5CA7;
  outline: none;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 20px rgba(94,114,228,0.18);
}

/* ========== CONTACT FORM ========== */
.form-row {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}
.form-row .form-col {
    flex: 1 1 100px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
label {
    display: block;
    margin-bottom: 7px;
    font-weight: 500;
    color: #57606f;
}
input[type="text"],
input[type="email"],
select,
textarea {
    padding: 11px 10px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #dcdde1;
    background: #f1f2f6;
    font-size: 1rem;
    transition: border .2s;
}
input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    border: 1.7px solid #6a89cc;
    outline: none;
}
textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 250px;
}
.form-error {
  color: #c0392b;
  background: #fbeee7;
  padding: 12px 14px;
  border-radius: 7px;
  margin-bottom: 20px;
  border: 1px solid #fab1a0;
}
.form-loader {
  text-align: center;
  margin: 18px 0;
}
.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3.5px solid #e8f5ee;
  border-top: 3.5px solid #238C5A;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== ONTACT BUTTON ========== */
.floating-contact-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  background: transparent;
  box-shadow: none;
}

/* ========== TIMELINE VERTICALE ========= */
.vertical-timeline {
  position: relative;
  margin: 0 auto;
  padding: 2em 0;
  width: 100%;
}
.vertical-timeline::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #e8f5ee 0%, #5C5CA7 100%);
  border-radius: 4px;
}
.timeline-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 48px;
  min-height: 90px;
}
.timeline-dot {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
  margin-right: 26px;
  margin-left: 17px;
  background: #fff;
  border: 5px solid #5C5CA7;
  border-radius: 50%;
  box-shadow: 0 2px 5px #5C5CA7;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.05em;
  color: #5C5CA7;
}
.timeline-content {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(94,114,228,0.07);
  padding: 1.2em 1.2em 1.2em 1.2em;
  margin-top: -6px;
  width: 100%;
  min-width: 0;
  transition: box-shadow .13s;
  border-left: 5px solid #5C5CA7;
}
.timeline-date {
  font-weight: bold;
  color: #5C5CA7;
  font-size: 1.09em;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}
.timeline-desc {
  color: #5C5CA7;
  font-size: 1.04em;
  margin-top: 2px;
  line-height: 1.7;
}
.timeline-center {
  text-align: center;
  margin: 2em 0 2em 0;
  font-size: 1.13em;
  font-weight: 600;
  color: #5C5CA7;
  letter-spacing: 0.5px;
}

/* ========== IMAGE MODAL ========== */
.zoomable {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.zoomable:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(50,103,214,0.12);
}
.img-modal {
  display: none; position: fixed; z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.77);
  align-items: center; justify-content: center;
}
.img-modal-content {
  max-width: 96vw; max-height: 94vh; box-shadow: 0 8px 32px #0005;
  border-radius: 11px; background: #fff;
  display: block; margin: auto;
}
.img-close {
  position: absolute; top: 26px; right: 38px;
  color: #fff; font-size: 2.7em; font-weight: bold;
  cursor: pointer; text-shadow: 0 2px 14px #000a;
  z-index: 10100;
  transition: color 0.18s;
}
.img-close:hover { color: #ffdfdf; }

/* Classe pour l’icône drapeau breton Michel 28 août 2025 */
.flag-icon {
      width: 24px;        /* pixel fixe */
      height: auto;       /* conserve le ratio */
      margin-left: 6px;   /* petit espace entre le texte et le drapeau */
      vertical-align: middle; /* bien aligné au texte */
      display: inline;    /* reste dans le flux du texte */
      cursor: pointer;
    }

/* ========== RESPONSIVE (media queries) ========== */
@media (max-width: 1000px) {
  .container { max-width: 99vw; }
}
@media (max-width: 900px) {
  .actualites-grid { gap: 0.7em; }
  .actu-card { max-width: 99vw; }
  .header-navbar-inner { padding: 0.5em 1em; }
  .header-menu { gap: 1.2em; }
}
@media (max-width: 700px) {
  .header-navbar-inner {
    flex-direction: row;
    align-items: center;
  }
  .header-menu {
    position: absolute;
    right: 0;
    top: 60px;
    flex-direction: column;
    background: #5C5CA7;
    width: 100vw;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    z-index: 2000;
    transition: max-height 0.3s;
  }
  .header-menu.show {
    max-height: 320px;
    padding-bottom: 1em;
  }
  .header-burger { display: flex; }
  .idea-cards-grid {
    flex-direction: column;
    gap: 0.4em;
  }
  .idea-card {
    max-width: 98vw;
    min-width: unset;
    margin-bottom: 0.5em;
    padding: 0.7em 0.5em 0.7em 0.7em;
    font-size: 0.96em;
  }
  .intro-card img { max-width: 80px; }
  .actualites-grid {
    flex-direction: column;
    gap: 0.5em;
  }
  .actu-card {
    max-width: 99vw;
    min-width: unset;
    font-size: 0.97em;
    padding: 0.65em 0.3em 0.8em 0.3em;
    border-radius: 11px;
  }
  .actu-img-main,
  .actu-img-side {
    max-width: 98vw;
    width: 99%;
  }
  .form-row {
      flex-direction: column;
      gap: 0;
  }
}
@media (max-width: 600px) {
  .header, .bandeau, footer.site-footer {
    min-height: unset;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.3em 0.7em;
  }
  .container {
    margin: 1.2em 0.3em;
    padding: 1em 0.3em;
    border-radius: 12px;
  }
  .floating-contact-btn {
    right: 12px;
    bottom: 12px;
  }
  .floating-contact-btn .contact-btn {
    padding: 0.65em 1.3em;
    font-size: 1em;
  }
  .textcontainer, .textcontainer5 {
    padding: 0.8em 0.6em;
    font-size: 1em;
  }
  .imagepetite, .testimage, .planning {
    max-width: 80px;
    margin-bottom: 8px;
  }
  .page-presse-container {
    padding: 0 0.4em 64px 0.4em;
  }
  .page-presse-images img {
    max-width: 98vw;
  }
  .vertical-timeline::before { left: 18px; }
  .timeline-event { margin-bottom: 32px; }
  .timeline-dot { margin-right: 14px; margin-left: 4px; width: 20px; height: 20px; }
  .timeline-content { padding: 1em 0.7em 1em 1em; }
}
@media (max-width: 440px) {
  .idea-card {
    font-size: 0.92em;
    padding: 0.55em 0.22em 0.55em 0.22em;
  }
}

/* février 2026 : test rédction image handicap.png */
.img-centree {
    display: block;
    width: 50%;
    height: auto;
    margin: 0 auto;
}


a.info-card2,
a.info-card2:hover,
a.info-card2:focus,
a.info-card2:active {
  color: #FFFFFF;
  text-decoration: none;
}

a.info-card2,
a.info-card2:hover,
a.info-card2:focus,
a.info-card2:active {
  color: #FFFFFF !important;
}

