/* ==========================================================================
   Aveyron Télécom – feuille de style unique
   Sommaire : 1. Polices  2. Variables  3. Base  4. Bandeau contact
   5. En-tête et menu  6. Diaporama  7. Bandeau des pages  8. Contenu
   9. Composants  10. Pages  11. Pied de page  12. Écrans moyens et petits
   ========================================================================== */

/* 1. Polices (hébergées sur le site) -------------------------------------- */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/nunito-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/nunito-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }

/* 2. Variables ---------------------------------------------------------- */
:root {
  --olive: #949e47;
  --dark: #323232;
  --slate: #54595f;
  --text: #7a7a7a;
  --muted: #9da5a9;
  --light-bg: #f7f6fb;
  --border: #dedede;
  --font-title: "Nunito", sans-serif;
  --font-text: "Roboto", sans-serif;
}

/* 3. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-title);
  font-size: 16px;
  line-height: 1.3333;
  color: var(--muted);
  background: #fff;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--olive); text-decoration: none; transition: color .2s; }
a:hover { color: var(--dark); }
p, ul, h1, h2, h3, h4, blockquote, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 600; color: var(--olive); line-height: 1; }
h1 { font-size: 39px; }
h2 { font-size: 29px; }
h3 { font-size: 25px; color: var(--slate); }
h4 { font-size: 19px; font-weight: 400; color: var(--slate); }
.center { text-align: center; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }

/* 4. Bandeau contact (en haut) ------------------------------------------ */
.topbar { background: var(--light-bg); color: var(--dark); position: relative; z-index: 1; }
.topbar__inner { display: flex; align-items: center; padding: 9px 15px; }
.topbar__item { display: inline-flex; align-items: center; color: var(--dark); line-height: 1; }
.topbar__item:hover { color: var(--olive); }
.topbar__item + .topbar__item { margin-left: 39px; }
.topbar__item--phone { font-size: 24px; }
.topbar__icon {
  display: flex; align-items: center; justify-content: center;
  width: 35.19px; height: 35.19px; margin-right: 15px;
  border-radius: 50%; background: var(--olive);
}
.topbar__icon svg { width: 16px; height: 16px; fill: #fff; }

/* 5. En-tête et menu ---------------------------------------------------- */
.header-holder { height: 90px; }
.site-header { position: relative; z-index: 1000; background: #fff; }
.site-header.is-fixed {
  position: fixed; top: 0; left: 0; right: 0;
  box-shadow: 0 0 20px 0 rgba(100, 100, 100, .1);
}
.site-header__inner { display: flex; align-items: center; min-height: 60px; padding: 0 15px; }
.site-header__logo { display: flex; align-items: center; margin-right: 30px; padding: 16px 0; }
.site-header__logo img { height: 45px; width: auto; }
.main-nav { flex: 1; display: flex; justify-content: flex-end; align-items: center; padding-left: 15px; }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0 20px; line-height: 24px; }
.main-nav li:first-child { margin-left: 0; }
.main-nav li:last-child { margin-right: 0; }
.main-nav a {
  display: inline-block; padding: 37px 0;
  font-size: 16px; font-weight: 700; line-height: 1; text-transform: uppercase;
  color: var(--dark); transition-duration: .15s;
}
.site-header.is-fixed .main-nav a { padding: 33px 0; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--olive); }

/* Bouton « hamburger » (affiché sous 1200 px) */
.menu-button { display: none; width: 60px; height: 60px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.menu-button span, .menu-button span::before, .menu-button span::after {
  position: relative; display: block; width: 30px; height: 2px; margin: auto;
  background: var(--dark); content: ""; transition: .25s all ease-in-out;
}
.menu-button span::before { top: -8px; }
.menu-button span::after { top: 6px; }
.menu-button--close span { background: transparent; }
.menu-button--close span::before { top: 1px; transform: rotate(45deg); background: #fff; }
.menu-button--close span::after { top: -1px; transform: rotate(-45deg); background: #fff; }

/* 6. Diaporama d'accueil ------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: #1d2225; color: #fff; }
.hero__track { display: flex; transition: transform .6s ease; }
.hero__slide { position: relative; flex: 0 0 100%; min-height: 750px; overflow: hidden; }
.hero__slide img { width: 100%; height: 750px; object-fit: cover; }
.hero__caption {
  position: absolute; inset: 0; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; padding: 30px 30px;
}
.hero__slide--center .hero__caption { justify-content: center; text-align: center; }
.hero__kicker, .hero__title { max-width: 600px; }
.hero__caption > * { position: relative; }
.hero__caption { flex-wrap: wrap; align-content: center; }
.hero__kicker { flex: 0 0 100%; font-size: 16px; line-height: 1; font-weight: 600; text-transform: uppercase; }
.hero__slide--center .hero__kicker { flex-basis: 600px; }
.hero__title { flex: 0 0 100%; margin: 30px 0 40px; font-size: 72px; line-height: 72px; font-weight: 600; letter-spacing: -2px; }
.hero__slide--center .hero__title { flex-basis: 600px; }
.hero__slide:not(.hero__slide--center) .hero__kicker,
.hero__slide:not(.hero__slide--center) .hero__title { flex-basis: 600px; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 50px; display: flex; justify-content: center; gap: 15px; z-index: 2; }
.hero__dots button {
  width: 10px; height: 10px; padding: 0; border: 2px solid #000; border-radius: 50%;
  background: transparent; cursor: pointer;
}
.hero__dots button[aria-current="true"] { background: #000; }
.hero .is-entering .hero__kicker, .hero .is-entering .hero__title { animation: hero-in .9s both; }
.hero .is-entering .hero__title { animation-delay: .25s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* 7. Bandeau des pages intérieures -------------------------------------- */
.page-banner {
  background: var(--olive) url("../../images/bandeau-pages.jpg") center / cover no-repeat;
  color: rgba(255, 255, 255, .8); font-size: 24px; line-height: 32px;
}
.page-banner .container { padding: 96px 15px; }
.page-banner__title { margin: 0; }
.breadcrumb { line-height: 24px; }
.breadcrumb a, .breadcrumb span { color: #fff; font-weight: 300; text-transform: capitalize; }
.breadcrumb a { display: inline-block; margin-right: 26px; }
.breadcrumb span { margin-left: 26px; }
.breadcrumb a:hover { color: var(--dark); }

/* 8. Contenu ------------------------------------------------------------ */
.container { max-width: 1200px; margin: 0 auto; padding-left: 15px; padding-right: 15px; }
.flow { max-width: 1170px; margin: 0 auto; padding: 90px 25px 170px; }
.flow > *, .stack > * { display: flow-root; }
.flow > * + *, .stack > * + * { margin-top: 20px; }

/* Texte courant */
.text { font-family: var(--font-text); font-size: 18px; line-height: 24px; color: var(--text); }
.text p + p, .text ul + p, .text p + ul, .text blockquote + p { margin-top: 16px; }
.text ul { margin-bottom: 36px; padding-left: 20px; color: var(--dark); }
.text li { padding: 9px 0; }
.text li:last-child { padding-bottom: 0; }
.text strong { color: var(--dark); }
.text--spaced { padding-bottom: 20px; }
.text--loose { padding-bottom: 40px; }
.small { font-size: 16px; }

/* Lien-bouton */
.button {
  display: inline-block; padding: 12px 24px; border-radius: 3px;
  font-family: var(--font-text); font-size: 15px; font-weight: 500; line-height: 1;
  color: #fff; background: var(--olive);
}
.button:hover { color: #fff; opacity: .9; }
.button-row { display: flex; justify-content: center; }

/* 9. Composants --------------------------------------------------------- */
.heading-podcast { font-size: 48px; line-height: 48px; }

/* Lecteur audio (même apparence que le lecteur WordPress) */
.audio-player {
  display: flex; align-items: center; height: 40px; padding: 0 10px 0 6px;
  background: #222; color: #fff; font-family: Helvetica, Arial, sans-serif; font-size: 11px;
}
.audio-player button { display: flex; align-items: center; justify-content: center; width: 32px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.audio-player button svg { width: 15px; height: 15px; fill: #fff; }
.audio-player .icon-pause, .audio-player .icon-muted,
.audio-player.is-playing .icon-play, .audio-player.is-muted .icon-volume { display: none; }
.audio-player.is-playing .icon-pause, .audio-player.is-muted .icon-muted { display: block; }
.audio-player__play svg { width: 13px !important; height: 17px !important; }
.audio-player__time { padding: 0 6px; line-height: 10px; }
.audio-player__rail { position: relative; flex: 1; height: 10px; margin: 0 10px; background: rgba(255, 255, 255, .33); cursor: pointer; }
.audio-player__progress { position: absolute; inset: 0 auto 0 0; width: 0; background: #fff; }
.audio-player__volume { position: relative; width: 50px; height: 8px; margin-left: 4px; background: rgba(255, 255, 255, .33); cursor: pointer; }
.audio-player__volume-level { position: absolute; inset: 0 auto 0 0; width: 100%; background: #fff; }

/* Logo + filet de l'accueil */
.logo-block img { margin: 0 auto; }
.logo-block hr { margin: 15px 0; border: 0; border-top: 1px solid #000; }

/* Encadré d'alerte */
.alert { padding: 15px; border-left: 5px solid #f9f0c3; background: #fcf8e3; color: #8a6d3b; font-family: var(--font-text); }
.alert__title { font-size: 18px; line-height: 24px; font-weight: 600; }
.alert__text { font-size: 13px; line-height: 24px; }

/* Bloc vert « fibre optique » */
.flow > .fibre-box { margin-top: 30px; margin-bottom: 10px; }
.fibre-box {
  position: relative; isolation: isolate;
  padding: 150px; margin-left: -25px; margin-right: -25px; border-radius: 30px;
  background: var(--olive) url("../../images/fond-fibre.jpg") center / 100% auto no-repeat;
  font-family: var(--font-text); font-size: 25px; line-height: 33.33px; font-weight: 700; color: #fff; text-align: center;
}
.fibre-box::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(5, 3, 3, .5); }
.fibre-box p + p { margin-top: 33.33px; }
.fibre-box p:first-child { padding-bottom: 16px; }

/* 10. Pages ------------------------------------------------------------- */
/* Nos services : introduction avec la photo du téléphone */
.services-intro { display: flex; margin: 80px 0 50px; }
.services-intro__image { flex: 0 0 24.547%; padding: 10px; }
.services-intro__image img { width: 231px; }
.services-intro__content { flex: 1; padding: 10px; }
.services-intro__subtitle { padding-bottom: 6px; }

/* Nos services : bandeau « Contactez nous » */
.contact-banner {
  display: flex; min-height: 400px; padding: 0 max(10px, calc((100% - 1140px) / 2 + 10px));
  background: url("../../images/fond-contact.jpg") left top;
}
.contact-banner__link { display: flex; align-items: flex-start; gap: 15px; margin: 125px 50px 60px 55px; align-self: flex-start; }
.contact-banner__icon { width: 100px; height: 100px; fill: var(--olive); transform: rotate(180deg); }
.contact-banner__link span {
  font-family: var(--font-text); font-size: 74px; line-height: 91.02px; font-weight: 600;
  color: #fff; -webkit-text-stroke: 1px #000;
}
.contact-banner__link:hover .contact-banner__icon { fill: var(--dark); }

/* Nos services : deux atouts avec pictogramme */
.features { max-width: 1140px; margin: 50px auto 210px; padding: 10px; }
.feature { text-align: center; }
.feature + .feature { margin-top: 22px; }
.feature__icon { width: 100px; height: 100px; fill: var(--olive); display: block; margin: 0 auto 28px; }
.feature__title { margin-bottom: 15px; font-size: 25px; line-height: 30.75px; color: var(--olive); }
.feature p { font-family: var(--font-text); font-size: 18px; line-height: 24px; color: var(--text); }

/* Notre équipe : portrait */
.profile { text-align: center; }
.profile__photo { width: 30%; margin: 0 auto 20px; border-radius: 70px; }
.profile__name { margin-bottom: 13.75px; line-height: 30.75px; color: var(--olive); }
.profile p { font-family: var(--font-text); font-size: 18px; line-height: 24px; color: var(--text); }
.profile p + p { margin-top: 24px; }
.profile p:last-child { padding-bottom: 24px; }
blockquote { max-width: 630px; margin: 16px auto 50px; font-family: var(--font-text); font-size: 20px; line-height: 26.67px; text-align: center; }

/* FAQ */
.faq-lead { padding-bottom: 20px; }
.faq-intro { margin-bottom: 30px; }
.faq { margin: 1px -9px -9px; border: 1px solid var(--olive); border-radius: 18px; }
.faq__item summary {
  display: block; padding: 20px; cursor: pointer; list-style: none;
  font-family: var(--font-text); font-size: 22px; line-height: 25px; font-weight: 600; color: var(--olive);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { float: left; width: 22px; height: 27px; margin-right: 16px; fill: var(--olive); }
.faq__opened, .faq__item[open] .faq__closed { display: none; }
.faq__item[open] .faq__opened { display: block; }
@media (max-width: 767px) { .faq__item summary svg { margin-right: 8px; } }
.faq__answer { padding: 20px; font-family: var(--font-text); font-size: 18px; line-height: 24px; color: var(--slate); }

/* Contact */
.contact { display: flex; align-items: flex-start; }
.contact__details { flex: 0 0 43.383%; padding-top: 10px; font-size: 19.8px; line-height: 31.68px; }
.contact__details p + p { margin-top: 0; }
.contact__label { font-weight: 600; }
.contact__details a { font-size: 24.75px; line-height: 39.6px; }
.contact__visual { flex: 0 0 56.071%; }
.contact__visual img { width: 512px; margin: 0 auto; }

/* Pages légales */
.legal { max-width: 800px; padding: 80px 0 160px; font-size: 16px; line-height: 1.5; }
.legal h2 { margin: 1.5em 0 .7em; font-size: 26px; color: var(--dark); }
.legal p, .legal ul { margin-bottom: 1em; }
.legal ul { padding-left: 20px; color: var(--dark); }
.legal li { padding: 6px 0; }
.legal a { text-decoration: underline; }
.legal__subtitle { margin-top: 1.5em; font-weight: 700; }
.cookie-service { margin-bottom: 10px; background: #f2f2f2; }
.cookie-service summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 15px; cursor: pointer; list-style: none; }
.cookie-service summary::-webkit-details-marker { display: none; }
.cookie-service__name { font-size: 26px; font-weight: 700; color: var(--dark); }
.cookie-service__type { font-size: 13px; }
.cookie-service__body { padding: 0 15px 15px; }
.cookie-service h4 { margin: 1em 0 .3em; font-size: 16px; font-weight: 700; color: var(--dark); }
.cookie-service table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cookie-service th, .cookie-service td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }

/* 11. Pied de page ------------------------------------------------------ */
.site-footer {
  padding: 18px 15px 24px; box-shadow: inset 0 1px var(--border);
  background: var(--light-bg); font-size: 18px; line-height: 24px; text-align: center;
}
.site-footer hr { margin: 9px 0; border: 0; height: 1px; background: var(--border); }
.site-footer__links { list-style: none; margin: 0; padding: 0; line-height: 18px; }
.site-footer__links li + li { margin-top: 24px; }
.site-footer__links a { color: var(--muted); }
.site-footer__links a:hover { color: var(--olive); }
.site-footer__links a[aria-current="page"] { font-weight: 700; }
.copyright { background: var(--olive); color: rgba(255, 255, 255, .8); font-size: 14px; line-height: 18.67px; }
.copyright p { max-width: 1200px; margin: 0 auto; padding: 12px 15px; }

.to-top {
  position: fixed; right: 0; bottom: -60px; z-index: 2; display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; background: var(--olive); opacity: .7; transition: all .25s ease-in-out;
}
.to-top svg { width: 14px; height: 22px; fill: #fff; }
.to-top.is-visible { bottom: 0; }
.to-top:hover { opacity: 1; bottom: 10px; }

/* 12. Écrans moyens et petits ------------------------------------------- */
@media (max-width: 1199px) {
  .topbar__inner { flex-wrap: wrap; justify-content: center; }
  .topbar__item { margin: 5px; }
  .topbar__item + .topbar__item { margin-left: 9px; }
  .header-holder { height: 75px; }
  .site-header__logo { padding: 15px 0; }
  .page-banner .container { padding-top: 48px; padding-bottom: 48px; }
  .flow { padding-top: 50px; padding-bottom: 90px; }
  .services-intro { margin-top: 40px; }
  .features { margin-bottom: 239px; }
  .faq { margin-bottom: -17px; }
  .site-header__inner { position: relative; }
  .menu-button--open { display: block; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
  .main-nav {
    position: fixed; top: 0; bottom: 0; right: -100%; z-index: 10000;
    display: block; width: 100%; height: 100vh; overflow: auto;
    padding: 80px 20px 3em; background: #fff; transition: right .3s ease;
  }
  .main-nav.is-open { right: 0; box-shadow: 0 0 20px 0 rgba(100, 100, 100, .15); }
  .main-nav ul { display: block; }
  .main-nav li { margin: 0; }
  .main-nav a { padding: 10px 15px; font-weight: 600; line-height: 22px; text-transform: none; }
  .main-nav a[aria-current="page"] { color: var(--dark); }
  .main-nav a:hover { color: var(--olive); }
  .menu-button--close { display: block; position: absolute; top: 0; left: 0; width: 100%; background: var(--olive); }
  .menu-button--close span { margin-right: 10px; }
  body.menu-is-open { height: 100%; overflow: hidden; }
}
@media (max-width: 767px) {
  .topbar__item, .topbar__item + .topbar__item { width: 100%; justify-content: center; margin: 5px 0 5px 5px; }
  .alert { padding: 10px; }
  .hero__slide { min-height: 600px; }
  .hero__slide img { height: 600px; }
  .hero__caption { justify-content: center; text-align: center; padding: 30px 15px; }
  .hero__kicker, .hero__title, .hero__slide--center .hero__kicker, .hero__slide--center .hero__title,
  .hero__slide:not(.hero__slide--center) .hero__kicker, .hero__slide:not(.hero__slide--center) .hero__title { flex-basis: 100%; }
  .hero__kicker { margin-bottom: 20px; }
  .hero__title { margin: 20px 0 30px; font-size: 42px; line-height: 1; }
  .hero__dots { bottom: 15px; }
  .heading-podcast { font-size: 32px; line-height: 32px; }
  .fibre-box { padding: 40px 20px; margin-left: -10px; margin-right: -10px; }
  .services-intro { display: block; }
  .services-intro__image img { margin: 0; }
  .contact-banner__link { margin: 60px 20px 40px; }
  .contact-banner__link span { font-size: 44px; line-height: 1.2; }
  .contact-banner__icon { width: 60px; height: 60px; }
  .profile__photo { width: 100%; max-width: 360px; }
  .contact { display: block; }
  .contact__visual img { width: 100%; margin-top: 20px; }
}
@media (max-width: 600px) {
  .header-holder { height: 60px; }
  .site-header__logo { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
